rename_data: rename recovery data with default column names

View source: R/rename_data.R

rename_dataR Documentation

rename recovery data with default column names

Description

This function renames the recovery data with default column names.

Usage

rename_data(recovery_data, xname, yname = NULL, timename, mark_area_name)

Arguments

recovery_data

data.frame with dead recoveries, containing information on the area of origin, geographical coordinates of recovery and age at death

xname

character, name of column containing information on longitude, specify this in one-dimensional case

yname

character, name of column containing information on latitude, defaults to NULL, do not specify in one-dimensional case, but use xname instead

timename

character, name of column containing information on age at death

mark_area_name

character, name of column containing information on the area of origin

Value

recovery_data with default column names

Examples

{
    rename_data(recovery_data = robins_init$recovery_data,
               xname        = "recLon",
               yname        = "recLat",
               timename     = "age",
               mark_area_name = "mark_area")
}

SaskiaSchirmer/CONSURE documentation built on Sept. 3, 2023, 8:52 a.m.