Learn R Programming

splitstackshape (version 1.0)

read.concat: Read concatenated character vectors into a data.frame

Description

A helper function for the concat.split.compact function.

Usage

read.concat(data, col.prefix, sep)

Arguments

data
The input data.
col.prefix
The desired column prefix for the output data.frame.
sep
The character that acts as a delimiter.

Value

  • A data.frame

See Also

read.table

Examples

Run this code
vec <- c("a,b", "c,d,e", "f, g", "h, i, j,k")
splitstackshape:::read.concat(vec, "var", ",")

rm(vec)

Run the code above in your browser using DataLab