Description Usage Format Value Fields Public methods Examples
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.
1 |
An object of class R6ClassGenerator
of length 24.
Object of R6Class
R6ClassGenericRecord
recordType
name of record type
recordDate
date of recording
recordValue
value of the record
recordUnit
unit associated to record value
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.