forked from SophieKoshkareva/RParserForTable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Diabetes.R
36 lines (33 loc) · 1.16 KB
/
Diabetes.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Diabetes <- setClass("Diabetes",
contains = "Column")
setMethod(f = "initialize",
signature = "Diabetes",
definition = function(.Object)
{
.Object@key[["DiabetesType"]] <- list("1 òèï",
"1òèï",
"ïåðâûé",
"2 òèï",
"2òèï",
"âòîðîé",
"2")
.Object@value[["DiabetesType"]] <- list(1)
.Object@key[["NoDiabetes"]] <- list("íåò")
.Object@value[["NoDiabetes"]] <- list(0)
return(.Object)
}
)
setGeneric(name = "FindErrors",
def = function(theObject)
{
standardGeneric("FindErrors")
}
)
setMethod(f = "FindErrors",
signature = "Diabetes",
definition = function(theObject)
{
#FindMisprints(file@table_in, theObject@column_index, theObject@key, theObject@value)
FindMisprints(misprint, file@table_in, theObject@column_index, theObject@key, theObject@value, file@row_header, file@row_table_legend)
}
)