[R] write.csv fails with $ operator invalid for atomic

2009-12-01 Thread ggraves
I want to export a csv file so I can do other things with it. I issue this command to break down years as to whether it was windy or not: t<-tapply(TURB,list(year,windy),mean,na.rm=T) which results in: > t no yes 1990 21.516514 39.86400 1991 13.580435 28.87500 1992 12.17142

Re: [R] write.csv fails with $ operator invalid for atomic

2009-12-01 Thread ggraves
csv fails with $ operator invalid for atomic Where does the table come from? write.csv(t, file = "t.csv") looks like it would work --- On Tue, 12/1/09, ggraves <[hidden email] <http://n4.nabble.com/user/SendEmail.jtp?type=node&node=932595&i=0> > wrote: > F