search for: fatperc

Displaying 2 results from an estimated 2 matches for "fatperc".

Did you mean: father
2010 Nov 29
2
drop levels problem
....9131, 44.385, 42.7811, 44.1963, 40.8088, 43.9634, 38.7079, 38.0791, 44.3136, 39.5333)), .Names = c("first", "second", "third"), class = "data.frame", row.names = c(NA, -14L)) ?head(x);str(x) xmelt <- melt(x) ?names(xmelt) <- c("year","fatPerc") ? # Year variable is a factor with three levels ?# Subset to plot only 'first' year firstyear <- subset(xmelt,year=='first');str(firstyear) #?Plot showing three levels still after I?made the subset ??ggplot(firstyear,aes(year,fatPerc)) + geom_boxplot() + geom_jitter() #...
2010 Nov 29
4
subset
...1.9131, 44.385, 42.7811, 44.1963, 40.8088, 43.9634, 38.7079, 38.0791, 44.3136, 39.5333)), .Names = c("first", "second", "third"), class = "data.frame", row.names = c(NA, -14L)) ?head(x);str(x) xmelt <- melt(x) ?names(xmelt) <- c("year","fatPerc") ??str(xmelt);xmelt ?# Subset to plot only the 'first' and third year firstyear <- subset(xmelt,year ==' first');str(firstyear) # works # two variables,,doesn't work firstyear <- subset(xmelt,year ==' first' & year == 'third');str(firstyear) ? Fel...