Re: [R] R column assignment fails for lists

2016-05-04 Thread Yasir Suhail
e to store vectors, then shouldn't a[,3] <- a[,3] work? Best regards, yasir On Tue, May 3, 2016 at 9:48 PM, David Winsemius wrote: > > > On May 3, 2016, at 4:13 PM, Yasir Suhail wrote: > > > > Dear R developers and users, > > > > Consider the obj

[R] R column assignment fails for lists

2016-05-03 Thread Yasir Suhail
Dear R developers and users, Consider the object : > a <- data.frame(a=c(1,2), b=c(2,3), c=c("a,b","c,d"), stringsAsFactors = F) > a$c <- strsplit(a$c, ",") Re-assignment works fine for columns 1 and 2, but fails for column 3. If a is a valid object, the assignment should work. > a[,1] <- a[,1]

[R] X11 error while plotting in R on OSX

2012-02-01 Thread Yasir Suhail
I installed R 2.14.1 on a OSX 10.7.2 computer using MacPorts. If I fire up R on a terminal, this very simple session gives me errors. I attach sessionInfo() details as well. In addition to the warnings, I also do not get any plots on the X11 window after the warnings. So one cannot just ignore the