[R] error in for loop in function (object not found)

David Winsemius dwinsemius at comcast.net
Tue Jan 15 02:46:52 CET 2013

Nothing attached. Please read the Webpage link and the Posting Guide more thoroughly.

On Jan 14, 2013, at 5:31 PM, Irucka Embry wrote:

> Hi all, I have attached the function file (revisedfunction) and the list
> of station IDs (StationIDs) in .pdf format.
> I have written a function to perform various operations on the station
> IDs in two groups. The first 6 station IDs require one less step than
> the remaining 68 station IDs. The file referenced at the beginning of
> the function is the file containing the StationIDs.
>> file =
> "/home/ie/IE2/Documents/USGS-2012-Work/SPARROW-Summer-2012-Work/EGRET/ca
> libration/example_setofstationsassociatedtosamegage.csv"
>> xynowget <- xygetN(file, hasHeader = TRUE, separator =",")
> Error in is.data.frame(x) : object 'Sample' not found
> Can you assist me in fixing the attached function file?
> Thank-you.
> Irucka Embry
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

More information about the R-help mailing list