format_attempts: Format data for nesting outcome estimation

View source: R/dataformat_funs.R

format_attemptsR Documentation

Format data for nesting outcome estimation

Description

format_attempts takes as input the output of find_nests and formats it for input in estimate_outcomes.

Usage

format_attempts(nest_info, nest_cycle)

Arguments

nest_info

Output of find_nests

nest_cycle

Duration of nesting cycle

Details

The history of nest revisitation in the 'visits' data frame in output from find_nests gets formatted as a matrix indicating, for each day, the number of GPS points at the nest. This is the 'visits' matrix that format_attempts will output. Concurrently, another matrix is created, 'fixes', indicating the number of GPS points available on each day.

Value

A list with two matrices: 'fixes', a matrix of GPS fixes available on each day of the attempt; and 'visits', a matrix of nest visits on each day of the attempt.


picardis/nestR documentation built on July 2, 2024, 6:35 p.m.