search for: specifich

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

Did you mean: specific
2009 Sep 19
3
Creating histograms from factors using a for loop
# I have a dataframe with data and factors similar to the following: a <- rep(c("a", "b"), c(6,6)) df <- data.frame(f=a, d=rnorm(12)) df # I am trying to write a 'for' loop which will produce a jpeg histogram for each factor. I can individually isolate the data from a factor and produce a jpeg histogram like so: fnc <- function(x){ x <-