Learn R Programming

treeplyr (version 0.1.7)

forceNames: Force names for rows, columns, or both

Description

Force names for rows, columns, or both

Usage

forceNames(dat, nameType = "row")

Arguments

dat

A vector of data

nameType,

either:

"row"

Rows

"col"

Columns

"rowcol"

Both rows and columns

Examples

Run this code
# NOT RUN {
data(anolis)
forceNames(anolis$dat, "row")
# }

Run the code above in your browser using DataLab