Eyal Eliakim
Eyal Eliakim

Reputation: 39

R language - Unrecognized Error relating rbind

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

Answers (1)

Roland
Roland

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

Related Questions