Skip to content
Prev 360643 / 398503 Next

R column assignment fails for lists

Dear R developers and users,

Consider the object :
Re-assignment works fine for columns 1 and 2, but fails for column 3. If a
is a valid object, the assignment should work.
Warning message:
In `[<-.data.frame`(`*tmp*`, , 3, value = list(c("a", "b"), c("c",  :
  provided 2 variables to replace 1 variables