Description Usage Arguments Value Examples
Function to mimic the _N function in Stata
1 |
df |
Your dataframe |
idvar |
A string containing the name of the group variable |
counter_name |
The name of the counter variable. Defaults to "N". |
Your dataframe but with at counter with the name according to counter_name
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.