[R] Not able to find files in working directory
istazahn at gmail.com
Tue Feb 4 18:07:45 CET 2014
You need to read the file in first. More generally, you need to spend
some time with an introductory R tutorial. There are many, including
the Introduction to R shipped with every copy of R, as well as the
ones listed on the R website at
On Tue, Feb 4, 2014 at 11:27 AM, Sschratz87
<samuel.schratz at smail.astate.edu> wrote:
> Hello. I am new to R here and I am coming across a small error in my code I
> am trying to run. I am trying to make a table of some value from a folder on
> my computer. I was able to pull a txt file from the folder and make bar
> graphs etc... however now I cannot do anything from this file and R is
> throwing errors at me from every direction. I will paste what I am trying
> to do.
> Error in table(Squid$YEAR) : object 'Squid' not found
> Error in table(Squid$MONTH, Squid$YEAR) : object 'Squid' not found
>> setwd("/Users/SamSchratz/Desktop/Spring 2014/Taking/Bio Stats/Lab/Lab 2 -
>> Descriptive Statistics")
> Error in setwd("/Users/SamSchratz/Desktop/Spring 2014/Taking/Bio
> Stats/Lab/Lab 2 - Descriptive Statistics") :
> cannot change working directory
> It is confusing because I was able to run this earlier:
> barplot(table(Squid$MONTH,Squid$YEAR),main="Sampling by Year and
> Month",xlab="Year and Month", ylab="Sampling Size")
> and got:
> Thoughts? I appreciate whatever you can tell me...
> View this message in context: http://r.789695.n4.nabble.com/Not-able-to-find-files-in-working-directory-tp4684710.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help