search for: tallstubbyta

Displaying 1 result from an estimated 1 matches for "tallstubbyta".

2003 Jan 02
1
aggregate: "sum" not meaningful for factors
...ategory using aggregate, but for some reason I get the error message "sum" not meaningful for factors even though my vector is numeric. The data set is shown below. Could someone please give a hint. Thanks in advance! Sincerely, Tord > names(test) [1] "ObjektID" "tallstubbyta" > is.factor(test$ObjektID); is.factor(test$tallstubbyta) [1] TRUE [1] FALSE > is.numeric(test$ObjektID); is.numeric(test$tallstubbyta) [1] FALSE [1] TRUE > mean(test$tallstubbyta) [1] 0.01142584 > aggregate(test, list(test$ObjektID), length)[, c("Group.1", "tall...