Strategy:

  1. Is value or (all) column present? If so, use that

  2. Otherwise, guess that last column is the value column

guess_value(df)

Arguments

df

data frame to guess value column from