create_report_data {bdclean} | R Documentation |
NOTE: This is an package internal function. Do not use for external uses. Exported to make it available for shiny app.
create_report_data(input_data, flagged_data, cleaned_data, responses,
cleaning_true, format)
input_data |
The input dataframe before cleaning |
flagged_data |
The flagged data for cleaning |
cleaned_data |
The data with flagged records removed |
responses |
The BDQuestions object with user responses |
cleaning_true |
Flag specifying if the cleaning should be done, or just flagging |
format |
The format of the report to be generated |
if(interactive()){
library(rgbif)
occdat <- occ_data(
country = 'AU', # Country code for australia
classKey = 359, # Class code for mammalia
limit = 50 # Get only 50 records
)
myData <- occdat$data
question <- BdQuestion()
responses <- get_user_response(question)
cleaned_data <- create_report_data(myData, myData, myData, responses, T, 'pdf')
}