gen.report {cleanTS} | R Documentation |
gen.report()
generates a report of the entire process, the changes made
to the original data and details about the impurities found in the data.
gen.report(obj)
obj |
A cleanTS object. |
Does not return any value.
# Convert sunspots.month to dataframe
data <- timetk::tk_tbl(sunspot.month)
# Randomly insert missing values to simulate missing value imputation
set.seed(10)
ind <- sample(nrow(data), 100)
data$value[ind] <- NA
# Perform cleaning
cts <- cleanTS(data, date_format = "my", time = "index", value = "value")
gen.report(cts)