mean_growth = by (chickwts$feed, chickwts$weight, mean)
There were 50 or more warnings (use warnings() to see the first 50)
mean_growth=by(chickwts$feed, chickwts$weight, mean)
There were 50 or more warnings (use warnings() to see the first 50)
sd_growth =by (chickwts$feed, chickwts$weight, sd)
Error in var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm) :
Calling var(x) on a factor x is defunct.
Use something like 'all(duplicated(x)[-1L])' to test for a constant vector.
(warn=1) mean_growth=by (chickwts$feed,chickwts$weight, mean)
Error: unexpected symbol in "(warn=1) mean_growth"
warn =1, mean_growth =by (chickwts$feed,chickwts$weight,mean)
Error: unexpected ',' in "warn =1,"
warn=1 mean_growth = by)chickwts$feed,chickwts$weight,mean)
Error: unexpected symbol in "warn=1 mean_growth"