Learn R Programming

swirl (version 2.2.6)

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

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

Examples

Run this code
# Test that the user has created a varible of length 10
#
val_has_length(10)

Run the code above in your browser using DataLab