DataTemporalMap
objects from raw dataEstimates a DataTemporalMap
from a data.frame
containing individuals in rows and the
variables in columns, being one of these columns the analysis date (typically the acquisition date).
Will return a DataTemporalMap
object or a list
of DataTemporalMap
objects
depending on the number of analysis variables.
estimateDataTemporalMap(
data = NULL,
dateColumnName = NULL,
period = "month",
startDate = NULL,
endDate = NULL,
supports = NULL,
numericVariablesBins = 100,
numericSmoothing = TRUE,
dateGapsSmoothing = FALSE,
verbose = FALSE
)
A DataTemporalMap
object.
a data.frame
containing as many rows as individuals, and as many columns as the
analysis variables plus the individual acquisition date.
a string indicating the name of the column in data
containing the
analysis date variable.
the period at which to batch data for the analysis from "week", "month" and "year", with "month" as default.
a Date object indicating the date at which to start the analysis, in case of being different from the first chronological date in the date column (the default).
a Date object indicating the date at which to end the analysis, in case of being different from the last chronological date in the date column (the default).
a List of objects containing the support of the data distributions for each variable,
in classes numeric
, integer
, character
, or factor
(accordingly to the
variable type), and where the name of the list element must correspond to the column name of its
variable. If not provided it is automatically estimated from data.
the number of bins at which to define the frequency/density histogram for numerical variables when their support is not provided, 100 as default.
a logical value indicating whether a Kernel Density Estimation smoothing (Gaussian kernel, default bandwidth) is to be applied on numerical variables (the default) or a traditional histogram instead. See ?density for further details.
a logical value indicating whether a linear smoothing is applied to those time batches without data, by default gaps are filled with NAs.
By default FALSE
. Change it to TRUE
to get an on-time log from the
function.