is.items: Get the types of all items in a list

View source: R/utilities.R

is.itemsR Documentation

Get the types of all items in a list

Description

Get the types of all items in a list

Usage

is.items(list, ..., FUN = is)

Arguments

list

A list to get the types from

...

pairlist Additional arguments to FUN

FUN

function or character Either a function, or the name of a function which returns a single logical value. The default function uses is, specify the desired type in .... You can also use other type checking functions such as is.character, is.numeric, or is.data.frame.

Value

logical A vector indicating if the list item is the specified type.

Examples

list <- list(c(1,2,3), c('a','b','c'))
is.items(list, 'character')


bhklab/CoreGx documentation built on March 14, 2024, 3:04 a.m.