Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.avector

Test for an Atomic Vector


Description

is.avector returns whether an object is an atomic vector with typeof character, logical, integer, or double.

Usage

is.avector(x)

Arguments

x

= object whose structure is desired to be tested.

Details

is.avector is simply a logical "and" of is.atomic and is.vector.

Value

logical vector with length 1 specifying whether 'x' is an atomic vector.

Examples

is.avector(x = c(1,2,3))
is.avector(x = array(c(1,2,3))) # returns false for arrays
is.avector(x = list(1,2,3)) # returns false for lists

str2str

Convert R Objects from One Structure to Another

v0.1.1
GPL (>= 2)
Authors
David Disabato [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.