save_n | R Documentation |
Simply a convenient function to save the number of cases of a data frame. This function primarily serves to provide values for the wrapper function sample_sizes
.
save_n(data)
data |
A data frame. |
A numeric value.
d <- mtcars
save_n(d)
save_n(d[1:4,])
# In combination with the function "sample_sizes"
sample_sizes(save_n(d),
save_n(d[1:4,]),
sample = c("Sample 1", "Sample 2",
print = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.