Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Df.RThe R module contains an applicative used for maps from rows to values. These can be used with the filter and map functions below. For example, filtering all rows where column "col" has a value 42 and column "col'" has value 3.14 can be done via the following (after opening R.Let_syntax):
Df.filter df
[%map_open
let c1 = Df.R.int "col"
and c2 = Df.R.int "col'" in
c1 = 42 && c2 =. 3.14]
|}include Base.Applicative.S with type 'a t := 'a tval return : 'a -> 'a tmodule Applicative_infix : sig ... endinclude Base.Applicative.Let_syntax with type 'a t := 'a tmodule Open_on_rhs_intf : sig ... endmodule Let_syntax : sig ... endval column : ('a, 'b) Array_intf.t -> Base.string -> 'a tcolumn array_intf column_name extracts the values from the column named column_name if it matches array_intf.
val int : Base.string -> Base.int tval float : Base.string -> Base.float tval string : Base.string -> Base.string t