rename_base: Tidy Data.Frame

View source: R/helpers_func.R

rename_baseR Documentation

Tidy Data.Frame

Description

'tidy_df()' is a function used to transform a data.frame into its tidy version (one variable per column)

Usage

rename_base(df, old_colname, new_colname)

Arguments

df

an untidy data.frame

untidy_col

a vector of column names that are not tidy (e.g. "wild boars")

new_col

a string indicating the new column names corresponding to the untidy columns (e.g. "species")

new_value

a string indicating the name of the value corresponding to the untidy columns (e.g. "individualCount")

Details

Used in func: tidy_data

Value

a tidy data.frame of data, with new column names


fja062/WLDM.standardisation documentation built on Jan. 3, 2023, 11:23 a.m.