[R] Object not Found Error on a .csv file
    Sarah Goslee 
    sarah.goslee at gmail.com
       
    Thu Jan 16 23:26:06 CET 2014
    
    
  
Hi Valerie,
Assuming GfullUA is a column of your data frame task2analyses, you
need to tell R where to look. It's trying to find an object called
GfullUA, and there isn't one.
Here are two ways:
with(task2analyses, cor(GfullUA, GFullUA))
cor(task2analyses$GfullUA, task2analyses$GFullUA)
You might want to read the Introduction to R that came with your
software installation.
Sarah
On Thu, Jan 16, 2014 at 1:32 PM, Valerie Shalin <valerie at knoesis.org> wrote:
> Hello:
>
> I am a new user, running the latest version of R on my Mac.  I have started by reading a file with the read.csv command:
> task2analyses <- read.csv(file="GroupsWithRTsEqualN.csv",head=TRUE,sep=",")
>
> When I print it out in R, the file appears to be intact, with the proper headers.  Yet, when I run test commands like the following:
>> cor(GfullUA,GFullUA)
>
> I get back a message Error in is.data.frame(y) : object 'GFullUA' not found
>
> This is not the case for all of the variables in the file.  Some can be tested with is.numeric (or character). And some are read
> properly when I test the summary command.
>
> I have looked on Google, and have been unsuccessful in searching documentation.
>
> Thanks for any help,
>
> Valerie Shalin
-- 
Sarah Goslee
http://www.functionaldiversity.org
    
    
More information about the R-help
mailing list