Skip to content

Error not found - for file retrieval with head()

2 messages · Jhope, jim holtman

#
Hi R-listers,

I am in plyr and using the script below and when I try to pull up the .csv
file with head() it does not show up. I am not sure where I am going wrong.
I have also checked the file box for turtlehatch.csv and it still does not
show up when I head(turtlehatch.csv). Am I missing a command?

Please advise, Jean
+   foo <- values*weights
+   return(apply(foo, 1, sum) / apply(values, 1, sum))
+ }
Error in head(turtlehatch.csv) : object 'turtlehatch.csv' not found





--
View this message in context: http://r.789695.n4.nabble.com/Error-not-found-for-file-retrieval-with-head-tp4645091.html
Sent from the R help mailing list archive at Nabble.com.
#
Couple of things:

1. 'head' it to look at objects, not files
2. you specified 'turtlehatch.csv' without quotes which told R to look
for an object by that name
3. you probably want to use 'file.show'
On Thu, Oct 4, 2012 at 5:47 PM, Jhope <jeanwaijang at gmail.com> wrote: