I'm using spread()
function for the data frame with fields:
Company | FoundYear | AmountTotal |Industry
when I run the spread
command against that data frame, it says an error for the column, which does not even exist in my data frame.
spread(mydata, key = FoundYear, value = AmountTotal)
Error in grouped_df_impl(data, unname(vars), drop) :
Column `Startup` is unknown
Any help about the idea why this anomaly might be happening is appreciated.