Learn R Programming

easyr (version 0.5-11)

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)

Value

Vector represented as a character.

Arguments

x

Vector to represent as text.

Examples

Run this code
astext( c( 1, 2, 4 ) )
astext( c( 'a', 'b', 'c' ) )

Run the code above in your browser using DataLab