Learn R Programming

ThomasJeffersonUniv (version 0.1.3)

splitDF: Split data.frame by Row

Description

split.data.frame into individual rows.

Usage

splitDF(x)

Value

Function splitDF returns a list of nrow-1 data.frames.

Arguments

x

data.frame

Examples

Run this code
splitDF(head(mtcars)) # data.frame with rownames
splitDF(head(warpbreaks)) # data.frame without rownames
splitDF(data.frame()) # exception

Run the code above in your browser using DataLab