You can try as.vector(t(test))
. Please note that, if you want to do it by columns you should use unlist(test)
.
More Related Contents:
- Reshaping data.frame from wide to long format
- How to sum a variable by group
- How do I make a list of data frames?
- Aggregate / summarize multiple variables per group (e.g. sum, mean)
- Sort (order) data frame rows by multiple columns
- Split data frame string column into multiple columns
- Select the row with the maximum value in each group
- Filter data.frame rows by a logical condition
- Quickly reading very large tables as dataframes
- R memory management / cannot allocate vector of size n Mb
- Subset data frame based on number of rows per group
- Combine two data frames by rows (rbind) when they have different sets of columns
- Counting unique / distinct values by group in a data frame
- Pass a data.frame column name to a function
- Drop data frame columns by name
- How to find common elements from multiple vectors?
- How to convert a list consisting of vector of different lengths to a usable data frame in R?
- Sample random rows in dataframe
- Extracting specific columns from a data frame
- Subset / filter rows in a data frame based on a condition in a column
- How does one reorder columns in a data frame?
- Convert data.frame column format from character to factor
- Combine two or more columns in a dataframe into a new column with a new name
- Finding All Positions for Multiple Elements in a Vector
- Convert data.frame column to a vector?
- Converting two columns of a data frame to a named vector
- List distinct values in a vector in R
- Unlist a data frame by rows, not columns
- Should I use a data.frame or a matrix?
- Convert list to data frame while keeping list-element names