Package 'bboudata'

Title: Data for bbou Project
Description: This package contains boreal caribou demographic data which can be used as validation for the associated shiny-app and analysis. The overall goal of the bbou packages is to develop a more standardized and consistent method for the comparison of boreal caribou survival rates, recruitment and population dynamics across Canada.
Authors: Troy Hegel [aut], Dave Hervieux [aut], Barry Nobert [aut], John Boulanger [aut] , Ayla Pearson [aut, cre] , Joe Thorley [ctb] , Seb Dalgarno [ctb] , Alan Constant [ctb] , Province of Alberta [cph]
Maintainer: Ayla Pearson <[email protected]>
License: Apache License (>= 2)
Version: 0.3.1
Built: 2024-09-17 19:12:45 UTC
Source: https://github.com/poissonconsulting/bboudata

Help Index


Check recruitment data structure

Description

The data must follow all requirements to not error. This format is required for usage of the bbou suite of tools.

Usage

bbd_chk_data_recruitment(data, x_name = deparse(substitute(data)))

Arguments

data

The data frame check.

x_name

Name of data frame.

Format

The data must follow the requirements:

PopulationName

Name of the herd or population

Year

The calendar year the observation occurred. Must be a positive integer.

Month

The calendar month the observation occurred. Must be an integer between 1 and 12.

Day

The day the observation occurred. Must be an integer between 1 and 31.

Cows

The total number of cows counted in each group in a survey/year. Must be a positive integer.

Bulls

The total number of bulls counted in each group in a survey/year. Must be a positive integer

UnknownAdults

The total number of adults counted that the sex could not be identified in each group in a survey/year. Must be a positive integer.

Yearlings

The total number of yearlings that did not have the sex identified in each group in a survey/year. Must be a positive integer.

Calves

The total number of calves counted in each group in a survey/year. Must be a positive integer.

Value

An invisible copy of the original data frame.

Examples

bbd_chk_data_recruitment(bbourecruit_a)
bbd_chk_data_recruitment(bbourecruit_b)
bbd_chk_data_recruitment(bbourecruit_c)
# this example will error as it doesn't follow the requirements
x <- bbourecruit_a
x[1, 4] <- 32L
try(bbd_chk_data_recruitment(x))

Check survival data structure

Description

The data must follow all requirements to not error. This format is required for usage of the bbou suite of tools.

Usage

bbd_chk_data_survival(data, x_name = deparse(substitute(data)))

Arguments

data

The data frame check.

x_name

Name of data frame.

Format

The data must follow the requirements:

PopulationName

Name of the herd or population

Year

The calendar year the observation occurred. Must be a positive integer.

Month

The calendar month the observation occurred. Must be an integer between 1 and 12.

StartTotal

The total number of collared caribou at the start of the month. Must be a positive integer.

MortalitiesCertain

The total number of confirmed mortalities in that month. Must be a positive integer.

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month. Must be a positive integer.

Value

An invisible copy of the original data frame.

Examples

bbd_chk_data_survival(bbousurv_a)
bbd_chk_data_survival(bbousurv_b)
bbd_chk_data_survival(bbousurv_c)

# this example will error as it doesn't follow the requirements
x <- bbousurv_c
x[1, 3] <- 14L
try(bbd_chk_data_survival(x))

Sample Data for Population A

Description

The data contains recruitment information for boreal caribou population B which spans 27 years.

Usage

bbourecruit_a

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

Day

The day the observation occurred

Cows

The number of cows counted in the group

Bulls

The number of bulls counted in the group

UnknownAdults

The number of adults which could not be sexed in the group

Yearlings

The number of yearlings counted in the group

Calves

The number of calves counted in the group

Details

The data is released under the Open Government Licence - Alberta


Sample Data for Population B

Description

The data contains recruitment information for boreal caribou population B which spans 15 years.

Usage

bbourecruit_b

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

Day

The day the observation occurred

Cows

The number of cows counted in the group

Bulls

The number of bulls counted in the group

UnknownAdults

The number of adults which could not be sexed in the group

Yearlings

The number of yearlings counted in the group

Calves

The number of calves counted in the group

Details

The data is released under the Open Government Licence - Alberta


Sample Data for Population C

Description

The data contains recruitment information for boreal caribou population C which spans 9 years.

Usage

bbourecruit_c

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

Day

The day the observation occurred

Cows

The number of cows counted in the group

Bulls

The number of bulls counted in the group

UnknownAdults

The number of adults which could not be sexed in the group

Yearlings

The number of yearlings counted in the group

Calves

The number of calves counted in the group

Details

The data is released under the Open Government Licence - Alberta


Simulated Data for Scenario 1

Description

Data are simulated with bbousims package. This is a stable population spanning 20 years with annual variation on female adult survival and female calf survival. Coverage is low, with 20% of groups observed and 10 collars.

Usage

bbourecruit_sim1

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

Day

The day the observation occurred

Cows

The number of cows counted in the group

Bulls

The number of bulls counted in the group

UnknownAdults

The number of adults which could not be sexed in the group

Yearlings

The number of yearlings counted in the group

Calves

The number of calves counted in the group


Simulated Data for Scenario 2

Description

Data are simulated with bbousims package. This is a stable population spanning 20 years with annual variation on female adult survival and female calf survival. Coverage is high, with 70% of groups observed and 40 collars.

Usage

bbourecruit_sim2

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

Day

The day the observation occurred

Cows

The number of cows counted in the group

Bulls

The number of bulls counted in the group

UnknownAdults

The number of adults which could not be sexed in the group

Yearlings

The number of yearlings counted in the group

Calves

The number of calves counted in the group


Simulated Data for Scenario 3

Description

Data are simulated with bbousims package. This is a population spanning 20 years with negative trend on female adult survival and additional annual variation on female adult survival and female calf survival. Coverage is medium, with 50% of groups observed and 25 collars.

Usage

bbourecruit_sim3

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

Day

The day the observation occurred

Cows

The number of cows counted in the group

Bulls

The number of bulls counted in the group

UnknownAdults

The number of adults which could not be sexed in the group

Yearlings

The number of yearlings counted in the group

Calves

The number of calves counted in the group


Simulated Data for Scenario 4

Description

Data are simulated with bbousims package. This is a stable population spanning 20 years with small population size (50 initial adult females) and annual variation on female adult survival and female calf survival. Coverage is medium, with 40% of groups observed and 20 collars.

Usage

bbourecruit_sim4

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

Day

The day the observation occurred

Cows

The number of cows counted in the group

Bulls

The number of bulls counted in the group

UnknownAdults

The number of adults which could not be sexed in the group

Yearlings

The number of yearlings counted in the group

Calves

The number of calves counted in the group


Sample Data for Population A

Description

The data contains survival information for boreal caribou population A which spans 31 years.

Usage

bbousurv_a

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

StartTotal

The total number of collared caribou at the start of the month

MortalitiesCertain

The number of confirmed caribou mortalities in the month

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month

Details

The data is released under the Open Government Licence - Alberta


Sample Data for Population B

Description

The data contains survival information for boreal caribou population B which spans 18 years.

Usage

bbousurv_b

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

StartTotal

The total number of collared caribou at the start of the month

MortalitiesCertain

The number of confirmed caribou mortalities in the month

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month

Details

The data is released under the Open Government Licence - Alberta


Sample Data for Population C

Description

The data contains survival information for boreal caribou population C which spans 11 years.

Usage

bbousurv_c

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

StartTotal

The total number of collared caribou at the start of the month

MortalitiesCertain

The number of confirmed caribou mortalities in the month

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month

Details

The data is released under the Open Government Licence - Alberta


Simulated Data for Scenario 1

Description

Data are simulated with bbousims package. This is a stable population spanning 20 years with annual variation on female adult survival and female calf survival. Coverage is low, with 20% of groups observed and 10 collars.

Usage

bbousurv_sim1

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

StartTotal

The total number of collared caribou at the start of the month

MortalitiesCertain

The number of confirmed caribou mortalities in the month

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month


Simulated Data for Scenario 2

Description

Data are simulated with bbousims package. This is a stable population spanning 20 years with annual variation on female adult survival and female calf survival. Coverage is high, with 70% of groups observed and 40 collars.

Usage

bbousurv_sim2

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

StartTotal

The total number of collared caribou at the start of the month

MortalitiesCertain

The number of confirmed caribou mortalities in the month

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month


Simulated Data for Scenario 3

Description

Data are simulated with bbousims package. This is a population spanning 20 years with negative trend on female adult survival and additional annual variation on female adult survival and female calf survival. Coverage is medium, with 50% of groups observed and 25 collars.

Usage

bbousurv_sim3

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

StartTotal

The total number of collared caribou at the start of the month

MortalitiesCertain

The number of confirmed caribou mortalities in the month

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month


Simulated Data for Scenario 4

Description

Data are simulated with bbousims package. This is a stable population spanning 20 years with small population size (50 initial adult females) and annual variation on female adult survival and female calf survival. Coverage is medium, with 40% of groups observed and 20 collars.

Usage

bbousurv_sim4

Format

A tibble with columns:

PopulationName

Name of the population

Year

The year the observation occurred

Month

The month the observation occurred

StartTotal

The total number of collared caribou at the start of the month

MortalitiesCertain

The number of confirmed caribou mortalities in the month

MortalitiesUncertain

The total number of mortalities that were not confirmed in that month