addCol | R Documentation |
Add a constant column to data.frame or matrix.
addCol(x, ..., value)
x |
|
... |
constants |
value |
|
a data.frame
or matrix
contains all columns
in x and those constant columns.
TszKin Julian Chan ctszkin@gmail.com
d=data.frame(x=1:5,y=11:15) addCol(d,a=1,b=2,c=3) addCol(d,value=c(a=100,b=200,c=300))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.