Hello,
I am trying to complete a response function analysis using the command dcc
in the package 'bootRes'.
Here is my code:
DC<-read.table("Dalton.txt", header=T)
climate<-read.table("climate.txt", header=T)
dcc.DC<-dcc(DC, climate, method ="response", start = -4, end =9)
My data is formatted correctly for this analysis, with 'DC' being a data
frame that contains tree-ring chronologies and 'climate' being a data
frame
with year, month, and climate parameters in columns.
I continue to get the following error:
Error in (start.year + offset):end.year : argument of length 0
Any feedback would be greatly appreciated.
Thanks,
Xanthe
[[alternative HTML version deleted]]
I just ran into the same problem. When you read in the DC data, set the year
column as the row names instead of the first column. For whatever reason
this worked for me. I hope if works for you.
DC<-read.table("Dalton.txt", header=T, row.names = 1)
climate<-read.table("climate.txt", header=T)
dcc.DC<-dcc(DC, climate, method ="response", start = -4, end =9)
--
View this message in context:
http://r.789695.n4.nabble.com/dcc-in-bootRes-package-tp3899990p4174194.html
Sent from the R help mailing list archive at Nabble.com.
Hi Xanthe, I'm running in the exact same issue. Were you able to solve it? Could you please give me a hand? Thanks! Andres -- View this message in context: http://r.789695.n4.nabble.com/dcc-in-bootRes-package-tp3899990p4635017.html Sent from the R help mailing list archive at Nabble.com.