How do I build a data frame row wise not column wise?

Doug Fir
a <- "dog cat carrot cabbage"
b <- "orange cat chair cabbage"
c <- "dog phone book beach"
x <- data.frame(a,b,c)
> x
                       a                        b                    c
1 dog cat carrot cabbage orange cat chair cabbage dog phone book beach

So that's been built in columns. What I want is a 1 column data frame with each string as a row. How would I do that?

Halil İbrahim Oymacı
d <- c(a,b,c)
data.frame(d)

Output:

                         d
1   dog cat carrot cabbage
2 orange cat chair cabbage
3     dog phone book beach

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to add data column wise dynamic in for a row?

From Dev

How to remove Empty Cell from data frame row wise

From Dev

Calculate ratio row wise in a data frame

From Dev

Merging data frames row-wise and column-wise in R

From Dev

How can I take a percentage-wise subset of a data frame?

From Dev

Column-wise subset of data frame in R

From Dev

How to "melt" row wise instead of column wise in R?

From Dev

How to "melt" row wise instead of column wise in R?

From Dev

How to sum column wise and row-wise in SQL Server?

From Dev

How do I format the output of SQL query row-wise

From Dev

Using row-wise column indices in a vector to extract values from data frame

From Dev

How to get column wise data in SQL Server?

From Dev

How to retrieve data column-wise in Spreadsheets

From Dev

Row-wise sort then concatenate across specific columns of data frame

From Dev

Apply function row wise on pandas data frame on columns with numerical values

From Dev

Data frame/matrix row times vector/list element wise

From Dev

Apply FUN row-wise on data frame with integer and character variables

From Dev

Calculate center of mass row-wise in a pandas data frame

From Dev

How to replace non-zero values as default in data.frame object by row-wise?

From Dev

Insert data row-wise instead of column-wise and 1 blank row after each record

From Dev

How do I get items by category wise

From Dev

transforming XML having column wise data into row wise table form using XSLT

From Dev

Delete column in data.table based on condition (row wise)

From Dev

Delete column in data.table based on condition (row wise)

From Dev

how to get sql select query result as column vs value wise instead of row wise without using PIVOT

From Dev

How do I align path element row-wise in SVG component?

From Dev

how to perform row wise operation on different column in r

From Dev

How to read a csv row wise and convert to a dataframe column using pandas?

From Dev

Subset both column-wise and row-wise?

Related Related

  1. 1

    How to add data column wise dynamic in for a row?

  2. 2

    How to remove Empty Cell from data frame row wise

  3. 3

    Calculate ratio row wise in a data frame

  4. 4

    Merging data frames row-wise and column-wise in R

  5. 5

    How can I take a percentage-wise subset of a data frame?

  6. 6

    Column-wise subset of data frame in R

  7. 7

    How to "melt" row wise instead of column wise in R?

  8. 8

    How to "melt" row wise instead of column wise in R?

  9. 9

    How to sum column wise and row-wise in SQL Server?

  10. 10

    How do I format the output of SQL query row-wise

  11. 11

    Using row-wise column indices in a vector to extract values from data frame

  12. 12

    How to get column wise data in SQL Server?

  13. 13

    How to retrieve data column-wise in Spreadsheets

  14. 14

    Row-wise sort then concatenate across specific columns of data frame

  15. 15

    Apply function row wise on pandas data frame on columns with numerical values

  16. 16

    Data frame/matrix row times vector/list element wise

  17. 17

    Apply FUN row-wise on data frame with integer and character variables

  18. 18

    Calculate center of mass row-wise in a pandas data frame

  19. 19

    How to replace non-zero values as default in data.frame object by row-wise?

  20. 20

    Insert data row-wise instead of column-wise and 1 blank row after each record

  21. 21

    How do I get items by category wise

  22. 22

    transforming XML having column wise data into row wise table form using XSLT

  23. 23

    Delete column in data.table based on condition (row wise)

  24. 24

    Delete column in data.table based on condition (row wise)

  25. 25

    how to get sql select query result as column vs value wise instead of row wise without using PIVOT

  26. 26

    How do I align path element row-wise in SVG component?

  27. 27

    how to perform row wise operation on different column in r

  28. 28

    How to read a csv row wise and convert to a dataframe column using pandas?

  29. 29

    Subset both column-wise and row-wise?

HotTag

Archive