View source: R/vctrs-panel_data.R
| is_panel_sorted | R Documentation |
Internal function that checks if a data frame is sorted by id (grouped), then by wave within each id. This is O(n) - just one pass through the data, much cheaper than O(n log n) sorting.
is_panel_sorted(x, id, wave)
x |
A data frame |
id |
Name of the id column (string) |
wave |
Name of the wave column (string) |
TRUE if properly sorted, FALSE otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.