strip_prefix: Remove a prefix from a vector of variable names

View source: R/misc.R

strip_prefixR Documentation

Remove a prefix from a vector of variable names

Description

Remove a prefix from a vector of variable names

Usage

strip_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"
)

Arguments

x

character vector of variable names

prefix

character, what to strip

Value

character vector of same length as x but with prefix stripped


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