# NOT RUN {
data(covid19_data)
head(data <- preprocess.data(covid19_data))
# }
# NOT RUN {
## This is how the wuhan_exported data frame is created
data <- subset(data, Symptom < Inf)
data <- subset(data, Arrived <= 54)
data$Location <- do.call(rbind, strsplit(as.character(data$Case), "-"))[, 1]
wuhan_exported <- data.frame(Location = data$Location,
B = data$Begin_Wuhan,
E = data$End_Wuhan,
S = data$Symptom)
## devtools::use_data(wuhan_exported)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab