combine {textshape} | R Documentation |
Combine Elements
Description
Combine (paste
) elements (vector
s,
list
s, or data.frame
s) together
with collapse = TRUE
.
Usage
combine(x, ...)
## Default S3 method:
combine(x, fix.punctuation = TRUE, ...)
## S3 method for class 'data.frame'
combine(x, text.var = TRUE, ...)
Arguments
x |
A |
fix.punctuation |
logical If |
text.var |
The name of the text variable. |
... |
Ignored. |
Value
Returns a vector (if given a list/vector) or an expanded
data.table
with elements pasted together.
Examples
(x <- split_token(DATA[["state"]][1], FALSE))
combine(x)
(x2 <- split_token(DATA[["state"]], FALSE))
combine(x2)
(x3 <- split_sentence(DATA))
## without dropping the non-group variable column
combine(x3)
## Dropping the non-group variable column
combine(x3[, 1:5, with=FALSE])
[Package textshape version 1.7.5 Index]