Learn R Programming

phenology (version 3.40)

remove_site: Removes site information from a set of parameters.

Description

This function is used to remove the information of the site from a set of parameters. It can be used to other timeseries after.

Usage

remove_site(parameters = NULL, help = FALSE)

Arguments

parameters
Set of parameters
help
If TRUE, an help is displayed

Value

  • Return a set of modified parameters

Details

remove_site removes beach information from a set of parameters.

Examples

Run this code
library(phenology)
# Read a file with data
# Gratiot<-read.delim("http://max2.ese.u-psud.fr/epc/conservation/BI/Complete.txt", , header=FALSE)
data(Gratiot)
# Generate a formatted list nammed data_Gratiot
data_Gratiot<-add_format(origin=NULL, add=Gratiot, name="Complete", reference=as.Date("2001-01-01"), format="%d/%m/%Y")
# Generate initial points for the optimisation
parg<-par_init(data_Gratiot, parametersfixed=NULL)
# Run the optimisation
# result_Gratiot<-fit_phenology(data=data_Gratiot, parametersfit=parg, parametersfixed=NULL, trace=1)
data(result_Gratiot)
# Extract parameters form result
parg<-extract_result(result_Gratiot)
# Remove site information
parg1<-remove_site(parg)

Run the code above in your browser using DataLab