View source: R/widget-workflows.R
| data_profile | R Documentation |
Summarizes numeric/integer, character/factor, logical, Date, and POSIXct
vectors. Numeric summaries use base R type-7 quartiles and sample standard
deviation (stats::sd). Numeric data also gets an eight-bin histogram
rendered with the existing sparkline widget. Without sample, vector
summaries analyze the full in-memory vector. Character top-value counts
cap their frequency table at 100,000 analyzed non-missing values. Supplying
sample analyzes deterministic, evenly spaced positions. A table_source
is rejected to prevent an implicit full scan; fetch or sample data
explicitly first. data may also be a reactive function.
data_profile(
data,
name = NULL,
sample = NULL,
top_n = 5L,
id = NULL,
classes = NULL,
style = NULL,
disabled = FALSE
)
data |
An atomic vector, factor, Date, or POSIXct vector. |
name |
Heading for the profile. |
sample |
Optional positive number of evenly spaced values to analyze. |
top_n |
Number of frequent character/factor values to display. |
id |
Optional identifier. |
classes |
Optional classes. |
style |
A |
disabled |
Disable the widget? |
A DataProfile widget with reactive $data and $summary.
data_profile(mtcars$mpg, name = "mpg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.