splitDFByRow: Split a data frame into a list by rows

View source: R/createModels.R

splitDFByRowR Documentation

Split a data frame into a list by rows

Description

Takes a data frame and returns a list with an element for each row of the data frame. This is an internal function.

Usage

splitDFByRow(df)

Arguments

df

An object inheriting from class data.frame

Value

A list where each element is a one row data frame

Examples

# small example using built in data
MplusAutomation:::splitDFByRow(mtcars)

MplusAutomation documentation built on May 29, 2024, 5:29 a.m.