remap_data_names: Use a data map to combine several data sources into one data...

View source: R/remap_data_names.R

remap_data_namesR Documentation

Use a data map to combine several data sources into one data frame

Description

Includes code from the stack exchange network post by Dan.

Usage

remap_data_names(
  this_name,
  df_to_remap,
  names_map,
  exclude_names = c("data_name", "order", "days", "desc", "epsg")
)

Arguments

this_name

Character. Name of the data source.

df_to_remap

Dataframe containing the columns to select and (potentially) rename

names_map

Dataframe mapping old names to new names

exclude_names

Character. column names in namesmap to exclude from the combined data

Value

Tibble with select and renamed columns

See Also

Other Help with combining data sources: get_data(), make_data()


Acanthiza/envImport documentation built on July 26, 2024, 11:18 p.m.