View source: R/bootstrap_calculations_helpers.R
| count_boot_id | R Documentation |
Counts the number of times an ID appears in a bootstrap sample.
count_boot_id(x, dfb)
x |
ID value. |
dfb |
Data frame of bootstrap sample. |
Integer count of occurrences.
df_boot <- data.frame(id = c(1, 2, 1, 3, 1), id_boot = 1:5)
count_boot_id(1, df_boot) # returns 3
count_boot_id(4, df_boot) # returns 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.