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

2013-01-14 Thread Irucka Embry
s= NA, sep = ",") write.table(yield, file=paste(i , "/home/ie/IE2/Documents/USGS-2012-Work/SPARROW-Summer-2012-Work/EGRET/ca libration/Calibration_Results/.AnnualResults"), append=T,col.names= NA, sep = ",") AnnualResults<- setupYears(paLong = 3, paStart = 7, localD

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

2013-01-14 Thread David Winsemius
Nothing attached. Please read the Webpage link and the Posting Guide more thoroughly. -- David. 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 functio

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

2013-01-14 Thread Irucka Embry
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 r

Re: [R] Error in for-loop

2012-08-01 Thread Domi
Thank you for the answer, but I did´n find the solution. I'm a bit lost, cos I am a beginner in R. I hope you can give me a little bit more help. 2012/7/29 jholtman [via R] > Try this: You had some 'indexing' problems. You were accessing the > columns of the dataframe incorrectly. You are

Re: [R] Error in for-loop

2012-08-01 Thread Jean V Adams
Domi wrote on 08/01/2012 Jul 29, 2012; 8:59am: > > Hello erverybody, > > I have a problem with my second for-loop. > > 1. First i read the tables. > > datos.mx1 <- read.table('PETmx1.csv',head=TRUE,sep=';') > datos.min <- read.table('PETmin.csv',head=TRUE,sep=';') You are most likely to g

Re: [R] Error in for-loop

2012-07-29 Thread jim holtman
Try this: You had some 'indexing' problems. You were accessing the columns of the dataframe incorrectly. You are also accessing 'list' so you might want to review the Intro to R on indexing: > datos.mx1 <- > read.table('http://r.789695.n4.nabble.com/file/n4638257/PETmx1.csv',head=TRUE,sep=';')

[R] Error in for-loop

2012-07-29 Thread Domi
Hello erverybody, I have a problem with my second for-loop. 1. First i read the tables. datos.mx1 <- read.table('PETmx1.csv',head=TRUE,sep=';') datos.min <- read.table('PETmin.csv',head=TRUE,sep=';') http://r.789695.n4.nabble.com/file/n4638257/PETmx1.csv PETmx1.csv http://r.789695.n4.nabble.