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

val_has_length

Test that the value of the expression has a particular length.


Description

Test the the length of e$val is that given by the first argument.

Usage

val_has_length(len)

Arguments

len

expected length of the variable created by a user

Value

TRUE or FALSE

See Also

Examples

## Not run: 
# Test that the user has created a varible of length 10
#
val_has_length(10)

## End(Not run)

swirl

Learn R, in R

v2.4.5
MIT + file LICENSE
Authors
Sean Kross [aut, cre], Nick Carchedi [aut], Bill Bauer [aut], Gina Grdina [aut], Filip Schouwenaars [ctb], Wush Wu [ctb]
Initial release

We don't support your browser anymore

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