Skip to contents

Drop the name of the 'location' column from a vector of names

Usage

drop_locn(str_nms, nm_to_drop = NULL)

Arguments

str_nms

A character vector of names.

nm_to_drop

A character string: the name to drop from str_nms.

Value

The supplied character vector excluding nm_to_drop.

Examples

drop_locn(c("age", "type", "activity", "location"))
#> [1] "age"      "type"     "activity"
# => c("age", "type", "activity")

drop_locn(c("age", "type", "activity", "locn"), nm_to_drop = "locn")
#> [1] "age"      "type"     "activity"
# => c("age", "type", "activity")