From the R Mailing list:
unlist(list(facs[1 : 3], facs[4 : 5]))
To ‘cbind’ factors, do
data.frame(facs[1 : 3], facs[4 : 5])
More Related Contents:
- Concatenate rows of a data frame
- Drop unused factor levels in a subsetted data frame
- Aggregating by unique identifier and concatenating related values into a string [duplicate]
- Cleaning up factor levels (collapsing multiple levels/labels)
- Coerce multiple columns to factors at once
- R – Concatenate two dataframes?
- Confusion between factor levels and factor labels
- Replacing numbers within a range with a factor [duplicate]
- Colouring plot by factor in R
- Plotting with ggplot2: “Error: Discrete value supplied to continuous scale” on categorical y-axis
- Why does as.factor return a character when used inside apply?
- How to change order of boxplots when using ggplot2?
- R error “sum not meaningful for factors”
- Factors in R: more than an annoyance?
- Idiom for ifelse-style recoding for multiple categories
- Directly creating dummy variable set in a sparse matrix in R
- Create frequency tables for multiple factor columns in R
- Imported a csv-dataset to R but the values becomes factors
- Why use as.factor() instead of just factor()
- Paste/Collapse in R
- Convert Factor to Date/Time in R
- Function to concatenate paths?
- how to apply a function on a data set?
- Replacing character values with NA in a data frame
- How do I install a package that has been archived from CRAN?
- Efficiently convert backslash to forward slash in R
- Why am I getting “algorithm did not converge” and “fitted prob numerically 0 or 1” warnings with glm?
- Extract p-value from aov
- Why is enquo + !! preferable to substitute + eval
- Print “pretty” tables for h2o models in R