Any table makes some assumptions about the data, but they are mostly not explicitly recorded in the commonly available table format. This concerns, for example, the symbol(s) that signal "not available" values or the symbol that is used as decimal sign.
setFormat(
schema = NULL,
decimal = NULL,
thousand = NULL,
na_values = NULL,
flags = NULL
)
An object of class schema
.
[schema(1)
]
In case this information is added to an
already existing schema, provide that schema here (overwrites previous
information).
[character(1)
]
The symbols that should be
interpreted as decimal separator.
[character(1)
]
The symbols that should be
interpreted as thousand separator.
[character(.)
]
The symbols that should be
interpreted as NA
.
[data.frame(2)
]
The typically character based flags
that should be shaved off of observed variables to make them identifiable
as numeric values. This must be a data.frame with two columns with names
flag
and value
.
Please also take a look at the currently suggested strategy to set up a schema description.
Other functions to describe table arrangement:
setCluster()
,
setFilter()
,
setGroups()
,
setIDVar()
,
setObsVar()
# please check the vignette for examples
Run the code above in your browser using DataLab