all_are: all_are

View source: R/utils.R

all_areR Documentation

all_are

Description

Checks if all elements of a list or List are of a (single) particular type typechar

Usage

all_are(inplist, typechar)

Arguments

inplist

list or List to be checked

typechar

char of the type to check for

Value

boolean, for whether the elements of inplist are all typechar

Examples

x <- list(1,2)
all_are(x,'numeric')
all_are(x,'char')

y <- list(1,2,'c')
all_are(y,'numeric')
all_are(y,'char')

laurenhsu1/corral documentation built on Feb. 19, 2023, 10:37 p.m.