View source: R/Tagloss_format.R
Tagloss_format | R Documentation |
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.
Tagloss_format(
data,
model = "21",
progressbar = TRUE,
column.Date = "Date",
column.ID = "ID",
column.left = "L",
column.right = "R",
keeponly2 = TRUE
)
data |
CMR file |
model |
Can be "21" or "LR" |
progressbar |
Is a progressbar been shown? |
column.Date |
Name of the column with Date |
column.ID |
Name of the column with ID |
column.left |
Name of the column with left tag |
column.right |
Name of the column with right tag |
keeponly2 |
If TRUE, keep only individuals tagged with 2 tags |
Tagloss_format formats a CMR dataset into a file that Tagloss_L can use.
Return the maximum number of days an individual has been observed in a dataset.
Marc Girondot
Other Model of Tag-loss:
Tagloss_L()
,
Tagloss_LengthObs()
,
Tagloss_cumul()
,
Tagloss_daymax()
,
Tagloss_fit()
,
Tagloss_mcmc()
,
Tagloss_mcmc_p()
,
Tagloss_model()
,
Tagloss_simulate()
,
logLik.Tagloss()
,
o_4p_p1p2
,
plot.Tagloss()
,
plot.TaglossData()
## Not run:
library(phenology)
# Example
head(outLR)
data_f_21 <- Tagloss_format(outLR, model="21")
data_f_LR <- Tagloss_format(outLR, model="LR")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.