I am trying to add a column to a dataframe but get a weird error-message:
Error in if (m < n * p && (m == 0L || (n * p)%%m)) stop(sprintf(ngettext(m, : missing value where TRUE/FALSE needed In addition: Warning messages: 1: In n * p : NAs produced by integer overflow 2: In n * p : NAs produced by integer overflow
I am executing the line: data[ ,extra_columns] <- 0
Where 'extra_columns' is a character vector. This worked before.
Does anybody knows this problem?
Thanks!