Learn R Programming

phenology (version 7.3)

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
# NOT RUN {
library(phenology)
# Read a file with data
# }
# NOT RUN {
Gratiot<-read.delim("http://max2.ese.u-psud.fr/epc/conservation/BI/Complete.txt", header=FALSE)
# }
# NOT RUN {
data(Gratiot)
# Generate a formatted list nammed data_Gratiot 
data_Gratiot<-add_phenology(Gratiot, name="Complete", 
		reference=as.Date("2001-01-01"), format="%d/%m/%Y")
# Generate initial points for the optimisation
parg<-par_init(data_Gratiot, fixed.parameters=NULL)
# Run the optimisation
# }
# NOT RUN {
result_Gratiot<-fit_phenology(data=data_Gratiot, 
		fitted.parameters=parg, fixed.parameters=NULL)
# }
# NOT RUN {
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