R6ClassGenericRecord: R6 Class for Generic Data Records

Description Usage Format Value Fields Public methods Examples

Description

The R6 class R6ClassGenericRecord represents objects of generic data records. These generic objects can be used derive more specific data records such as milk yield records, fat percentage records, etc.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Value

Object of R6Class R6ClassGenericRecord

Fields

recordType

name of record type

recordDate

date of recording

recordValue

value of the record

recordUnit

unit associated to record value

Public methods

new()

Instantiation of an R6ClassGenericRecord object

sampleUnifValue(minValue = 0, maxValue = 1)

Sample a value from a uniform distribution between minValue and maxValue

toTsvString()

Conversion of a generic record to a string using TABs as field separators. The order in which the fields are pasted together is fixed to Type Date Value Unit.

Examples

1
2
3
4
5
6
7
8
r6objGenRec <-  R6ClassGenericRecord$new()
r6objGenRec$setRecordType(recordType = "MilkYield")
r6objGenRec$setRecordValue(recordValue = 32.6)
r6objGenRec$setRecordUnit(recordUnit = "kg")
## Not run: 
r6objGenRec$toTsvString()

## End(Not run)

pvrqualitasag/ImsDataTransferSimulation documentation built on May 26, 2019, 11:34 a.m.