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

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.