add_cp_cols: Add columns relevant to BLE LTER Core Program

View source: R/add_cp_cols.R

add_cp_colsR Documentation

Add columns relevant to BLE LTER Core Program

Description

Add columns: station name, lat/lon, habitat type, given BLE LTER Core Program station code. If there are unmatched station codes, a warning will be thrown but the rows will be preserved.

Usage

add_cp_cols(
  df,
  station_code_col = "station",
  station_source =
    "https://utexas.box.com/shared/static/sjt5phkdpyx9vsvpvcss461562vb5wsw.csv"
)

Arguments

df

(data.frame) Data frame in question with CP data

station_code_col

(character) Name of column containing BLE LTER station codes in supplied df. Defaults to "station".

station_source

(character) URL or file path to Core Program stations coordinates file. I use Box's direct download feature to generate URLs for this. The source file lives at https://utexas.app.box.com/file/1092468994724?s=sjt5phkdpyx9vsvpvcss461562vb5wsw.

Value

Data with new station name, lat/lon, habitat type columns appended


atn38/BLE-LTER-utils documentation built on March 4, 2024, 9:13 p.m.