x_y_something: Given a string x_y_something_time extract the 'something'

Description Usage Arguments Value

View source: R/misc.R

Description

Given a string x_y_something_time extract the 'something'

Usage

1
2
3
4
x_y_something(
  x = c("x_y_layer_between_two_depths_below_surface_time", "x_y_time2",
    "bounds_foo_bar", "x_y_lev_time", "x_y_time")
)

Arguments

x

the string to parse

Value

the 'something' string if x doesn't start with x_y_ or starts with x_y_time then "" is returned


BigelowLab/namanl documentation built on Nov. 15, 2021, 3:11 p.m.