Extract one row or column of a data frame as a vector

Description

Extract one row or column of a data frame as a vector

Usage

1
datToVec(dat, i, row = TRUE)

Arguments

dat

data.frame

i

row or column number

row

Logical. If TRUE, then i is the row number, otherwise i is the column number

Value

A vector.

Author(s)

kaiyin


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.