Attaching Columns to a data frame
In the last part of this class we attached two new columns via the following command:
rogueOne <- data.frame(Title = "Rogue One", Year = 2016, Length = 133, Gross = 1051 MarkScreenTime = 0, CarrieScreeTime = 0.25)
rbind(my.data, rogueOne)
However, when I execute the command I receive the following error message:
Error in rbind(deparse.level, ...) :
numbers of columns of arguments do not match
Can someone please assist.
Thank you
0 answers ( 0 marked as helpful)