Dataset.Csv
Comma separated values.
val encode :
?var_names:bool ->
?quote:Stdlib.Char.t ->
?sep:Stdlib.Char.t ->
'o t ->
string
encode ~var_names ~quote ~sep d
encodes the observations of d
as comma separated values. If var_names
is true
(default), the variable names are written on the first line. quote
is the character used for quoting values (defaults to '\"'
). sep
is the character used for separating values (defaults to ','
).
val output :
?var_names:bool ->
?quote:Stdlib.Char.t ->
?sep:Stdlib.Char.t ->
Stdlib.Out_channel.t ->
'o t ->
unit
output oc d
is like encode
but writes the result on oc
.
val write :
?var_names:bool ->
?quote:Stdlib.Char.t ->
?sep:Stdlib.Char.t ->
fpath ->
'o t ->
(unit, string) Stdlib.result
write
is like output
but writes the result in file
.
type 'a schema = 'a Var.v list
val schema_to_ocaml : 'a schema -> string