spline_points: spline_points

Description Usage Arguments Value Examples

View source: R/spline_points.R

Description

Identification of bloom descriptors dates based on smoothing splines

Usage

1
spline_points(value, time, s_param = 0.35)

Arguments

value

a numerical vector of values (abundances...)

time

a numerical vector of temporal units (month, week...)

s_param

the smoothing parameter corresponding to the spar parameters of the smooth.spline function (default 0.35).

Value

a dataframe containing the time vector, the value vector and info a character vector with 'Start', 'Max' and 'End' for the seasonal peak and NA for the other date

Examples

1
2
3
4
5
6
## Not run: 
  time<-1:12
  value<-c(0,0,1,2,5,7,3,0,0,0,0,0)
	  spline_points(value,time,s_param=0.35)

## End(Not run)

ldbk/Rplanktonanalytic documentation built on June 29, 2021, 9:23 p.m.