mn_recode: Recode the values in the column of a data.frame using a...

Description Usage Arguments Value

View source: R/manual-recode.R

Description

Recode the values in the column of a data.frame using a manual recode table

Usage

1
mn_recode(df, recode_tbl, recode_target = NULL)

Arguments

df

a data.frame in which column values are to be recoded.

recode_tbl

a manual recoding table, as output from mn_recode_tbl()

recode_target

character string. The name of the column to be recoded if it differs from the first named column of recode_tbl

Value

the orgininal df with values in the recode_target column recode using look up vales in recode_tbl


annakrystalli/seabirddiet.devtools documentation built on Nov. 2, 2019, 1:54 p.m.