It’s as simple as data.frame(as.list(testVect))
. Or if you want sensible data types for your columns, data.frame(lapply(testVect, type.convert), stringsAsFactors=FALSE)
.
More Related Contents:
- Convert data.frame column to a vector?
- How to convert a list consisting of vector of different lengths to a usable data frame in R?
- How to convert a data frame column to numeric type?
- Converting two columns of a data frame to a named vector
- How to access the last value in a vector?
- Replace logical values (TRUE / FALSE) with numeric (1 / 0)
- Convert a dataframe to a vector (by rows)
- Unlist a data frame by rows, not columns
- Filter data.frame rows by a logical condition
- Split column at delimiter in data frame [duplicate]
- Pass a data.frame column name to a function
- How to find common elements from multiple vectors?
- Select groups based on number of unique / distinct values
- Assign multiple columns using := in data.table, by group
- Remove an entire column from a data.frame in R
- Selecting multiple odd or even columns/rows for dataframe
- Deleting reversed duplicates with R
- How to use a string variable to select a data frame column using $ notation [duplicate]
- R list of lists to data.frame
- Remove columns from dataframe where some of values are NA
- Check whether values in one data frame column exist in a second data frame
- How do you remove columns from a data.frame?
- Insert blanks into a vector for, e.g., minor tick labels in R
- Deleting columns from a data.frame where NA is more than 15% of the column length [duplicate]
- Convert hours:minutes:seconds to minutes
- Return df with a columns values that occur more than once [duplicate]
- Replicate each row of data.frame and specify the number of replications for each row?
- Divide each value by the sum of values by group
- Convert all data frame character columns to factors
- What you can do with a data.frame that you can’t with a data.table?