Description Usage Arguments Value Examples
Apply a Function to an Array, For Extract Creation
1 | create_data_tab(df, index, margin, tab.max, fnc, ...)
|
df |
a tibble |
index |
variable name in x to apply the specified function |
margin |
variable name in x to stratify data in index |
tab.max |
for a given extract, largest number of unique stratiying values |
fnc |
the function to be applied |
... |
optional arguments to fun |
An array including results of function specified as fun, on variable specified as index, stratified by margin, first element is for entire array, remaining elements are for stratified
1 | create_data_tab(nycflights13::flights, "air_time", "origin", 3, mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.