explorer | R Documentation |
Explores data from a data frame in wide format.
explorer(data, x, y, id, metadata)
data |
A |
x |
The name of the column in |
y |
The names of the columns in |
id |
The names of the columns in |
metadata |
The names of the columns in |
This function helps to explore the dataset before being analyzed with modeler()
.
An object of class explorer
, which is a list containing the following elements:
summ_vars
A data.frame containing summary statistics for each trait at each x point, including minimum, mean, median, maximum, standard deviation, coefficient of variation, number of non-missing values, percentage of missing values, and percentage of negative values.
summ_metadata
A data.frame summarizing the metadata.
locals_min_max
A data.frame containing the local minima and maxima of the mean y values over x.
dt_long
A data.frame in long format, with columns for uid, metadata, var, x, and y
metadata
A character vector with the names of the variables to keep across.
library(flexFitR)
data(dt_potato)
results <- dt_potato |>
explorer(
x = DAP,
y = c(Canopy, GLI),
id = Plot,
metadata = c(gid, Row, Range)
)
names(results)
head(results$summ_vars)
plot(results, label_size = 4, signif = TRUE, n_row = 2)
# New data format
head(results$dt_long)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.