exportClassificationResults: Export results to prefix||variType table and to...

View source: R/utils.R

exportClassificationResultsR Documentation

Export results to prefix||variType table and to cumulativeTable classification table and other means with a given name. Contrary to SOS version, It completely replaces cumulativeTable with the selection given in the data frame.

Description

Export results to prefix||variType table and to cumulativeTable classification table and other means with a given name. Contrary to SOS version, It completely replaces cumulativeTable with the selection given in the data frame.

Usage

exportClassificationResults(
  conn = conn,
  schema,
  dbTableNameExport,
  inData,
  scoreName = "score",
  cumulativeTable = "dr3_classification_export",
  prefix = "dr3_validated_"
)

Arguments

conn

DB connection

schema

DB schema to create table in

dbTableNameExport

name of the table

inData

dataframe with results: must include sourceid, varitype and score fields.

scoreName

name of the score field in the data frame provided

cumulativeTable

name of the cumulative table, where we append sourceid and variType.

prefix

prefix of the name of the snapshot table

Value

TRUE if ok.

Examples

## Not run: 
exportClassificationResults(dbTableNameExport, classSet, scoreName = "scoreColumn")

## End(Not run)

yazun/dpcgR documentation built on Feb. 2, 2024, 7:12 p.m.