load_dataset: Loads a csv dataset exported from Gamebirds

View source: R/prepare_data.R

load_datasetR Documentation

Loads a csv dataset exported from Gamebirds

Description

This functions loads a csv dataset exported from Gamebirds and cleans it to be used by the gblincoiln package. This is the recommended way to import data for use by the package.

Usage

load_dataset(
  path,
  rename_columns = TRUE,
  colnames = NULL,
  add_age_classes = TRUE,
  age_classes = NULL,
  add_sex_classes = TRUE,
  sex_classes = NULL,
  correct_recovery_years = TRUE,
  ...
)

Arguments

path

Path to the data file. Should point to a csv file.

rename_columns

Should the columns be renamed? Default: TRUE

colnames

Data frame. The columns to rename. Will be passed as the columns argument to the rename_columns function, Default: NULL

add_age_classes

Should the function add age classes? Default: TRUE

age_classes

The age classes that will be passed as the age_classes argument of the (see set_age_classes) function. Default: NULL

add_sex_classes

Should the function add sex classes? Default: TRUE

sex_classes

The sex classes that will be passed as the sex_classes argument of the (see set_sex_classes) function. Default: NULL

correct_recovery_years

Should the recovery years be corrected? Default: TRUE

...

Additional arguments passed to the read.csv function

Value

A dataframe formatted to use in the gblincoln package

See Also

clean_dataset


Vin985/gblincoln documentation built on April 21, 2022, 1:49 a.m.