strip_prefix | R Documentation |
Remove a prefix from a vector of variable names
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"
)
x |
character vector of variable names |
prefix |
character, what to strip |
character vector of same length as x
but with prefix stripped
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.