Displaying 1 result from an estimated 1 matches for "cb_unirr_st".
2012 Jun 11
6
Why is my data always imported as a list?
...ame.default(formula = CB_un["Value"] ~
CB_un["State.Fips"]) :
invalid type (list) for variable 'CB_un["Value"]'
# Because these variables are all stored as lists.
#So, I have to unpack them.
CB_unirr_rent<-as.numeric(unlist(CB_un["Value"]))
CB_unirr_State<-as.factor(unlist(CB_un["State.Fips"]))
#before I can do anything with them
boxplot(CB_unirr_rent~CB_unirr_State)
Is there a reason my data is always imported as lists? Is there a way to
skip this upacking step?
Thanks,
Sam
[[alternative HTML version deleted]]