Like this:
xy.list <- split(xy.df, seq(nrow(xy.df)))
And if you want the rownames of xy.df
to be the names of the output list, you can do:
xy.list <- setNames(split(xy.df, seq(nrow(xy.df))), rownames(xy.df))
More Related Contents:
- Recombining a list of Data.frames into a single data frame [duplicate]
- What is the most efficient way to cast a list as a data frame?
- Creating an R dataframe row-by-row
- rbind dataframes in a list of lists
- How do I make a list of data frames?
- The difference between bracket [ ] and double bracket [[ ]] for accessing the elements of a list or dataframe
- Simultaneously merge multiple data.frames in a list
- Combine a list of data frames into one data frame by row
- Convert a list to a data frame
- Unlist data frame column preserving information from other column
- Create a data.frame where a column is a list
- Combining (cbind) vectors of different length
- How to convert a matrix to a list of column-vectors in R?
- How to flatten a list to a list without coercion?
- Convert a matrix to a list of column-vectors
- Merge Two Lists in R
- Delete a column in a data frame within a list
- Converting a list of data frames into individual data frames in R [duplicate]
- Python: create a pandas data frame from a list
- What is difference between dataframe and list in R?
- R: Print list to a text file
- Convert list to data frame while keeping list-element names
- Find empty or NaN entry in Pandas Dataframe
- Prevent unlist to drop NULL values
- How to add variable key/value pair to list object?
- What are the differences between vector and list data types in R?
- How to count number of element occurrences in a list in Prolog
- How to transform XML data into a data.frame?
- How I can select rows from a dataframe that do not match?
- Grouping a list into lists of n elements in Haskell