expand | R Documentation |
Expand Data by Weight
expand(x, weight)
x |
dataframe or matrix |
weight |
weight column names or index |
expanded data
df=data.frame(v=c(1,2,3),
x=c(7,8,9),
n=c(2,3,4))
expand(x = df,weight = 3)
expand(x = df,weight = 'n')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.