[R] Question about random Forest function in R

2012-05-29 Thread Kelly Cool
Hello,  I am trying to run the random Forest function on a data.frame using the following code.. myrf <- randomForest (y=sample_data_metal, x=Train, importance=TRUE, proximity=TRUE) However, an error occurs saying, "can not handle categorical predictors with more than 32 categories".  My

[R] Question about extracting certain rows from one column in a data.frame

2012-05-28 Thread Kelly Cool
I was wondering if there was a quick way to extract out certain rows from a data set in R?  I have a data.frame, LOG,  where in one column, sample_data_tx, there is a list of 62 different types of treatment. I've sub-selected the rows that contain the names, "PLO" and "NOY" to make a new vector

[R] Plot

2012-05-14 Thread Kelly Cool
Hello, I am trying to make a plot of the rates of an enzyme against three different protein concentrations (there are 45 rates in total and split up into 3 groups of 15, each receiving one of the 3 protein concentrations). When I enter the following code I instead get 3 separate boxplots for ea

[R] Question about expand.grid function in R

2012-05-01 Thread Kelly Cool
Hi, I am extremely new to R, and was wondering if someone would be able to help me with a question regarding the expand.grid function. When I input expand.grid.rep <- function(x, n=1) do.call(expand.grid, rep(list(x),n)) expand.grid.rep(c("a", "b", "c"), 3) my output is as follows, Var1 Var2 V