Learn R Programming

DescTools (version 0.99.19)

SetRowNames: Set the Row Names and Column Names in an Object

Description

This is a convenience function that sets the row names and column names on an object and returns the object.

Usage

SetRowNames(object = nm, nm) SetColNames(object = nm, nm)

Arguments

object
an object for which a names attribute will be meaningful

nm
a character vector of names to assign to the object

Value

See Also

setNames

Examples

Run this code
tab <- table(d.pizza$driver, d.pizza$wine_delivered)
SetRowNames(BinomCI(tab[,1], rowSums(tab)), rownames(tab))

Run the code above in your browser using DataLab