check_start: Do all names start with "it"?

Description Usage Arguments Value Examples

View source: R/aux_funs.R

Description

Check whether the names of a vector all start with a certain string.

Usage

1
2
3

Arguments

x

A vector. The names of the vector will be checked.

start

A character string.

Value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
x <- c(tisch = 1, teller = 2, tafel = 3)
name_start(x, "t")

x <- c(x, 4)
name_start(x, "t")

x <- 1:4
name_start(x, "t")
x <- c(tisch = 1, teller = 2, tafel = 3)
check_names(x, "t")

x <- c(x, 4)
check_names(x, "t")

x <- 1:4
check_names(x, "t")

nielsaka/zeitreihe documentation built on March 17, 2020, 8:38 p.m.