Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rsed (version 0.1.2)

as.stream: Converts a character vector to an object of class "stream"

Description

Converts a character vector to an object of class "stream"

Usage

as.stream(obj)

# S3 method for stream print(x, ...)

Arguments

obj

The character vector to be converted to a "stream" object

x

The "stream" object to be printed.

Ignored

Value

The same character vector, only it now inherits from class "stream"

Methods (by generic)

  • print: Prints an object of class "stream" by removing quotes from the strings and printing each element of the character vector on its own line.

Examples

Run this code
# NOT RUN {
aStream <- c("string1", "string2", "string3")
aStream

# Note how it prints after we convert it to a stream object:
as.stream(aStream)
# }

Run the code above in your browser using DataLab