setColNames | R Documentation |
These are convenience functions that return an object with its column or row names changed. Use it in pipes.
setColNames(x, names)
setRowNames(x, names)
x |
an object. |
names |
column or row names to be assigned to the object. |
Sercan Kahveci
setColNames(ToothGrowth,c("length","supplement","dosage"))
setRowNames(BOD,BOD$Time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.