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)

michaelhallquist/MplusAutomation documentation built on March 14, 2024, 11:03 a.m.