package biotk

  1. Overview
  2. Docs

Table parsing

type t
type column =
  1. | Ints of int array
  2. | Int_opts of int option array
  3. | Floats of float array
  4. | Float_opts of float option array
  5. | Strings of string array
  6. | String_opts of string option array
val nrows : t -> int
val ncols : t -> int
val get_col : t -> int -> column option
val get_col_by_name : t -> string -> column option
val columns : t -> (string * column) list
val make : (string * column) list -> (t, [> `Msg of string ]) Stdlib.result
val from_file : ?header: [ `Read_in_file | `Expect of string list | `Use of string list | `None ] -> string -> (t, [> `Msg of string ]) Stdlib.result
module Parser : sig ... end
val from_file_parse : header:bool -> string -> 'a Parser.t -> ('a, Parser.error) Stdlib.result
exception Error of string
module Ez : sig ... end
type html_formatter = int -> string -> Html_types.td_content Tyxml.Html.elt
val to_html : ?formatters:(string * html_formatter) list -> t -> [> Html_types.table ] Tyxml.Html.elt
OCaml

Innovation. Community. Security.