When I copy and paste the example from the help page, this works fine:
dplyr::frame_data(
~Club, ~Compensation,
"a", 1,
"b", 2
)
But when I try to enter my own data, I get the error message "Columns are not the same."
dplyr::frame_data(
~A, ~B,
"NY", "ABc"
)
What the hell am I doing wrong? Here is another example with two rows of data:
soccer <- dplyr::frame_data(
~A, ~B, ~C, ~D, ~E, ~E2,
"NY", "ABc", "Anatole", "BB", 50000, 50000,
"NY", "CDe", "Saad", "D", 60000, 73750
)
source
share