View source: R/create-manifest-explore-univariate.R
create_manifest_explore_univariate | R Documentation |
This function creates a meta-dataset (from the data.frame
passed as a parameter)
and optionally saves the meta-dataset as a CSV. The meta-dataset specifies how the variables
should be plotted.
create_manifest_explore_univariate(
d_observed,
write_to_disk = TRUE,
path_out = getwd(),
overwrite_file = FALSE,
default_class_graph = c(numeric = "histogram_continuous", integer =
"histogram_continuous", factor = "histogram_discrete", character =
"histogram_discrete", notMatched = "histogram_generic"),
default_format = c(numeric = "scales::comma", notMatched = "scales::comma"),
bin_count_suggestion = 30L
)
d_observed |
The |
write_to_disk |
Indicates if the meta-dataset should be saved as a CSV. |
path_out |
The file path to save the meta-dataset. |
overwrite_file |
Indicates if the CSV of the meta-dataset should be overwritten if a file already exists at the location. |
default_class_graph |
A |
default_format |
A |
bin_count_suggestion |
An |
Returns a data.frame
where each row in the metadata represents a column in d_observed
.
The metadata contains the following columns
variable_name
The variable name (in d_observed
). character
.
remark
A blank field that allows theuser to enter notes in the CSV for later reference.
class
The variable's class
(eg, numeric, Date, factor). character
.
should_graph
A boolean value indicating if the variable should be graphed. logical
.
graph_function
The name of the function used to graph the variable. character
.
x_label_format
The name of the function used to format the x-axis. character
.
bin_width
The uniform width of the bins. numeric
.
bin_start
The location of the left boundary of the first bin. numeric
.
create_manifest_explore_univariate(datasets::InsectSprays, write_to_disk=FALSE)
#Careful, the first column is a `ts` class.
create_manifest_explore_univariate(datasets::freeny, write_to_disk=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.