Unlimited learning, half price | 50% off
Get 50% off unlimited learning

easyr (version 0.3-1)

astext: As Text

Description

Prints a vector as text you can copy and paste back into the code. Helpful for copying vectors into code for testing and validation. Author: Bryce Chamberlain.

Usage

astext(x)

Arguments

x

Vector to represent as text.

Value

Vector represented as a character.

Examples

Run this code
# NOT RUN {
astext( c( 1, 2, 4 ) )
astext( c( 'a', 'b', 'c' ) )
# }

Run the code above in your browser using DataLab