Re: [R] R question

From: Marc Schwartz <>
Date: Fri, 04 May 2007 13:30:11 -0500

On Fri, 2007-05-04 at 12:05 -0500, Bill Vorias wrote:
> I had a question about Random Forests. I have a text file with 10
> dichotomous variables and a bivariate response vector. I read this file
> into R as a data frame, and then used the command "randomForest(Response ~.,
> dataset, etc.." where "Response" is the column header of the response
> variable and "dataset" is the name of the data frame. I get an error that
> says "Response" not found. I was looking at the Iris data example in the R
> help files, and it seems like this is exactly what they did. Do you have
> any suggestions? Thanks.

R you sure that you have correctly specified the column and data frame names in the call to randomForest()?

Be sure to check for typos, including capitalization.

You can use:


to check for the current objects in your working environment and you can then use:




to display information about the detailed structure and/or column names, respectively, in the data frame that you created from the imported data.

HTH, Marc Schwartz mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 04 May 2007 - 18:42:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 May 2007 - 20:33:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.