Learn R Programming

embryogrowth (version 10.2)

UpdateNests: Create a dataset of class Nests2 from an object of class Nests

Description

Will create a dataset of class Nests2 to be used with searchR
This function is used to convert Nests or Nests2 format into the new one, Nests2, and add information.

Usage

UpdateNests(
  data = stop("An object with nests must be provided !"),
  weight = NULL,
  LayingTime = NULL,
  UnitTime = NULL,
  Longitude = NULL,
  Latitude = NULL,
  Informations = NULL,
  Males = NULL,
  Females = NULL,
  hatchling.metric.mean = NULL,
  hatchling.metric.sd = NULL
)

Value

A list with all the nests formated to be used with searchR.

Arguments

data

An object of class Nests or Nests2.

weight

The weight of different nests for likelihood estimation.

LayingTime

Named POSIXct or POSIXlt time for each nest in data.

UnitTime

The units for time as a named list or vector

Longitude

The longitude of the nests as a named list or vector

Latitude

The latitude of the nests as a named list or vector

Informations

Some textual information about the nests as a named list or vector

Males

Number of sexed eggs being males.

Females

Number of sexed eggs being females.

hatchling.metric.mean

The average size of hatchlings.

hatchling.metric.sd

The standard deviation of size of hatchlings.

Author

Marc Girondot marc.girondot@gmail.com

Details

UpdateNests creates a dataset of class "Nests2" to be used with searchR

Examples

Run this code
if (FALSE) {
library(embryogrowth)
data(nest)
nest <- FormatNests(nest)
nest2 <- UpdateNests(data=nest)
nest2 <- UpdateNests(data=nest2, Males=c(DY.1=10), Females=c(DY.1=20))
}

Run the code above in your browser using DataLab