Rain error: invalid annotation of time points
0
0
Entering edit mode
mpuli011 • 0
@mpuli011-23216
Last seen 7 months ago
United States

Hello,

I have a quick question regarding using the r packages "rain" to analyze my temporal microbiome dataset.However, I keep getting an error stating "invalid annotation of time points."

I am not sure why I keep getting this error, if its a matrix formatting issue or what exactly is happening. If someone can please help me out, I would greatly appreciate it.

My data format

  • Data for 11 years (2012-2022, with no data for 2013 ).
  • Data seasonally (4x/year for 11 years), but some years missing some seasons
  • Replicates vary per season/yr

Data structure for rain = irregular time series (since I am missing data for 2012), and irregular repeats

Data matrix names are are sites x asv ID

  • 2012_Q1_1 (replicate 1 for year 2012)
  • 2012_Q2_2 (replicate 2 for year 2012)
  • 2014_Q1_1 (replicate 1 for year 2014)
  • 2014_Q1_2 (replicate 2 for year 2014)
  • 2014_Q1_3 (replicate 3 for year 2014)

So overall the replicates should be

  • measure.sequence=c(4,0,4,17,7,8,11,30,25,25,35)
  • period= I put 11 since its 11 years but not sure
  • deltat= 1 *sampling int = 1 per year or should it be 4 since we sampled 4x/yr
output_RAIN<-rain(DFdetrend, method="longitudinal", deltat=1, period = 11, measure.sequence=c(4, 0, 4, 17,7,8,11,30,25,25,35), na.rm = TRUE)

Error in rain(DFdetrend, method = "longitudinal", measure.sequence = c(4,  : 
  invalid annotation of time points
rain • 386 views
ADD COMMENT

Login before adding your answer.

Traffic: 699 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6