add_prefix: Add a prefix to a vector of variable names

View source: R/misc.R

add_prefixR Documentation

Add a prefix to a vector of variable names

Description

Add a prefix to a vector of variable names

Usage

add_prefix(
  x = c("nav_lon", "nav_lat", "Bathy_depth", "land_mask", "dXbtm", "dXbtm_ann", "dMLD",
    "dMLD_ann", "dSST", "dSST_ann", "dSSS", "dSSS_ann", "dTbtm", "dTbtm_ann", "dSbtm",
    "dSbtm_ann", "dU", "dU_ann", "dV", "dV_ann"),
  prefix = "d",
  except = c("nav_lon", "nav_lat", "Bathy_depth", "land_mask")
)

Arguments

x

character vector of variable names

prefix

character the prefix to add

except

character vector of names to *not* modify

Value

character vector of same length as x but with prefix added


BigelowLab/brickman documentation built on April 22, 2024, 9:26 p.m.