Module: Daru
- Defined in:
- lib/daru/extensions/rserve.rb,
lib/daru.rb,
lib/daru/index.rb,
lib/daru/io/io.rb,
lib/daru/vector.rb,
lib/daru/version.rb,
lib/daru/dataframe.rb,
lib/daru/multi_index.rb,
lib/daru/core/group_by.rb,
lib/daru/plotting/vector.rb,
lib/daru/plotting/dataframe.rb,
lib/daru/accessors/gsl_wrapper.rb,
lib/daru/accessors/array_wrapper.rb,
lib/daru/maths/arithmetic/vector.rb,
lib/daru/maths/statistics/vector.rb,
lib/daru/accessors/mdarray_wrapper.rb,
lib/daru/accessors/nmatrix_wrapper.rb,
lib/daru/accessors/dataframe_by_row.rb,
lib/daru/maths/arithmetic/dataframe.rb,
lib/daru/maths/statistics/dataframe.rb,
lib/daru/accessors/dataframe_by_vector.rb
Overview
Support for converting data to R data structures to support rserve-client
Defined Under Namespace
Modules: Accessors, Core, IO, IOHelpers, Maths, Plotting Classes: DataFrame, Index, MultiIndex, Vector
Constant Summary collapse
- SPLIT_TOKEN =
','
- VERSION =
"0.1.0"
- @@lazy_update =
false
Class Attribute Summary collapse
-
.lazy_update ⇒ Object
A variable which will set whether Vector metadata is updated immediately or lazily.
Class Method Summary collapse
Class Attribute Details
.lazy_update ⇒ Object
A variable which will set whether Vector metadata is updated immediately or lazily. Call the #update method every time a values are set or removed in order to update metadata like positions of missing values.
13 14 15 |
# File 'lib/daru.rb', line 13 def lazy_update @lazy_update end |
Class Method Details
.create_has_library(library) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/daru.rb', line 15 def create_has_library(library) define_singleton_method("has_#{library}?") do cv = "@@#{library}" unless class_variable_defined? cv begin require library.to_s class_variable_set(cv, true) rescue LoadError class_variable_set(cv, false) end end class_variable_get(cv) end end |