check_args: check_args

Description Usage Arguments Examples

View source: R/misc_funcs.R

Description

Checks whether 'x', a vector, is of a specific type. Useful for figuring out whether something is a factor / numeric for plotting.

Usage

1

Arguments

x

a vector

type

the type you want to ensure the vector is

Examples

1
check_args(c(1,3,4),"numeric")

lukereding/redinglib documentation built on May 25, 2019, 9:32 p.m.