insertRows | R Documentation |
Inserts a matrix or data frame into another matrix or data frame. The new rows are placed together at the row index specified.
insertRows(existing, insert, r)
existing |
table to insert into |
insert |
rows to insert |
r |
index at which to insert |
df1<-data.frame(a=c(1,2,3),b=c(1,2,3),c=c(1,2,3))
insertRows(df1,data.frame(list('a','a','a')),5)
insertRows(df1,data.frame(list('a','a','a')),4)
insertRows(df1,data.frame(list('a','a','a')),3)
insertRows(df1,data.frame(list('a','a','a')),2)
insertRows(df1,data.frame(list('a','a','a')),1)
insertRows(df1,df1,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.