Description Usage Arguments Details Value Examples
year_phase_data
is the class used for the creation of all
figures and tables in the made up RAP report (it's a demo for the RAP MOOC).
1 2 | phase_date_data(x, log_level = futile.logger::WARN,
log_appender = "console", eda = FALSE)
|
x |
Input dataframe, see details. |
log_level |
The severity level at which log messages are written from
least to most serious: TRACE, DEBUG, INFO, WARN, ERROR, FATAL. Default is
level is INFO. See |
log_appender |
Defaults to write the log to "console", alternatively you
can provide a character string to specify a filename to also write to. See
for additional details |
eda |
If TRUE an graphical data analysis is conducted for a human to check. |
The year_phase_data
class expects a data.frame
with at
least three columns: phase, date (entry-timestamp), and register name. Each
row represents a unique register.
Once inititated, the class has five slots: df
: the basic
data.frame
, colnames
: a character vector containing the
column names from the df
, phase_levels
: a
factor vector containing levels of df$phase
of the factor sector,
yq
: an date vector containing zoo::as.yearqrt(df$date)
.
If the class is not instantiated correctly, nothing is returned.
1 2 3 | library(regregrap)
df <- phase_date_data(regreg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.