Skip to content
Prev 348500 / 398500 Next

Error with using windRose function from the open air package

Hi Alexandra,
As Jeff mentioned, cbind is probably causing the conversion to factors. One
thing I would suggest is keeping the names:

windSFO<-data.frame(ws=ws,wd=wd,stn=stn,yearSite=yearSite)

as it looks like the windRose function expects the names to be there. If
the error persists after using the above, try:

windSFO$ws<-as.numeric(as.character(windSFO$ws))
windSFO$ww<-as.numeric(as.character(windSFO$ww))

Jim


On Tue, Feb 24, 2015 at 4:38 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote: