Reputation: 39
Has anyone seen this error before? -
Error in colnames<-(tmp, value = 1:59) : 'names' attribute [59] must be the same length as the vector [0]
If yes, how can I fix with it?
Upvotes: 0
Views: 44
Reputation: 132706
This error would occur, if you try to assign column names to an empty data.frame:
d <- data.frame()
colnames(d) <- 1:59
Upvotes: 1