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

Description Usage Arguments Examples

Description

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

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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')

} 

bdclean documentation built on May 1, 2019, 10:54 p.m.