SyntaxFix
Write A Post
Hire A Developer
Questions
dat <- dat[-1, ] worked but it killed my dataframe, changing it into another type. Had to instead use dat <- data.frame(dat[-1, ]) but this is possibly a special case as this dataframe initially had only one column.
dat <- dat[-1, ]
dat <- data.frame(dat[-1, ])