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
I have no magic answer for you, just some suggestions until you can clarify
your problem.
Your description of loading one column in at a time is a bit odd... It is much
more typical to use one of the read.table variants.
Don't use cbind to make data frames. If you have any non-numeric columns t
Hello All,
I have a data frame called windSFO of four columns, wind speed, wind
direction, station number, and date (mmdd). I downloaded the gz
data from a site online and then unzipped it using readLines. I then
concatenated these four columns from the unzipped data into a
dataframe using cb
3 matches
Mail list logo