Class: RType::Vector
- Includes:
- Helper::MatrixMultiply
- Defined in:
- lib/r_type/type/vector.rb
Class Method Summary collapse
Methods included from Helper::MatrixMultiply
Methods inherited from Base
Methods included from Helper::RObjDelegatable
#==, #__getobj__, #as_r, included, #inspect, #robj, #robj=, #ruby_obj, #ruby_obj=, #to_ruby
Methods included from Helper::RObjDelegatable::ClassMethods
#delegate_constructor, #delegate_to_R
Methods included from CoreExt::NumericDelegateR
Constructor Details
This class inherits a constructor from RType::Base
Class Method Details
.match?(robj, type) ⇒ Boolean
5 6 7 8 |
# File 'lib/r_type/type/vector.rb', line 5 def self.match? robj, type (type == 'numeric' || type == 'integer') && Convert.call_R_without_convert(:length, robj) > 1 end |