Description Usage Arguments Details Value Examples
expandDF takes a dataframe and replicates the chosen observations n times
1 2 3 4 5 |
df |
Data.frame to be manipulated |
obs |
Vector to select rows of df (e.g. vector of row numbers or a boolean of length nrow(df) ) |
numtimes |
Number of times to replicate |
splitvar |
Name of variable which defines groups on which df will be split |
splitdfs |
List of data.frames to recombine (generally created by splitDF) |
splitDF takes a dataframe and splits it into a bunch of data.frames held in a list, according to one variable
unsplitDF takes a list of data.frames produced by splitDF and returns them as one appended data.frame
expandDF and unsplitDF return a data.frame splitDF returns a list of data.frames
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.