bdclean (version 0.1.15)

create_report_data: Generate data required to create report, function required in bdclean internal usage.

Description

NOTE: This is an package internal function. Do not use for external uses. Exported to make it available for shiny app.

Usage

create_report_data(input_data, flagged_data, cleaned_data, responses,
  cleaning_true, format)

Arguments

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

Examples

Run this code
# NOT RUN {
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')

} 

# }

Run the code above in your browser using DataLab