Displaying 1 result from an estimated 1 matches for "corn_belt_unirr".
2012 Jun 11
6
Why is my data always imported as a list?
Hi,
I am a relatively new to R. So, this is probably a really basic issue that
I keep hitting.
I read my data into R using the read.csv command:
x = rep("numeric", 3)
CB_un=read.csv("Corn_Belt_unirr.csv", header=TRUE, colClasses=c("factor",
x))
# I have clearly told R that I have one factor variable and 3 numeric
variables in this table.
#but if I try to do anything with them, I get an error
boxplot(CB_un["Value"]~CB_un["State.Fips"])
Error in model.fram...