create_report_data

0th

Percentile

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

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

Aliases
  • create_report_data
Examples
# 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')

} 

# }
Documentation reproduced from package bdclean, version 0.1.15, License: GPL-3

Community examples

Looks like there are no examples yet.