Tagloss_format: Format a CMR dataset into a file that Tagloss_L can use.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Tagloss_format.R

Description

This function formats a CMR dataset to a file that Tagloss_L can use.
The format of data is a data.frame with 4 columns:
ID is the column with the permanent identification code
L is the column with the non-permanent code located at left
R is the column with the non-permanent code located at right
Date is the column with the date of observation
Note that R and L columns can be exchanged if 21 model is used.

Usage

1
Tagloss_format(data, model = "21", progressbar = TRUE)

Arguments

data

CMR file

model

Can be "21" or "LR"

progressbar

Is a progressbar been shown?

Details

Tagloss_format formats a CMR dataset into a file that Tagloss_L can use.

Value

Return the maximum number of days an individual has been observed in a dataset.

Author(s)

Marc Girondot

See Also

Other Model of Tag-loss: Tagloss_LengthObs, Tagloss_L, Tagloss_daymax, Tagloss_fit, Tagloss_model, Tagloss_simulate, logLik.Tagloss, plot.Tagloss

Examples

1
2
3
4
5
6
## Not run: 
library(phenology)
# Example
data_f_21 <- Tagloss_format(outLR, model="21")

## End(Not run)

phenology documentation built on Nov. 25, 2017, 9:03 a.m.