Class: RObject::Vector

Inherits:
Base
  • Object
show all
Includes:
Helper::MatrixMultiply
Defined in:
lib/robject/type/vector.rb

Instance Attribute Summary

Attributes inherited from Base

#robj

Class Method Summary collapse

Methods included from Helper::MatrixMultiply

#*, #is_robj_matrix_multiply?

Methods inherited from Base

#__getobj__, #as_r, delegate_to_R, #initialize, #is_function?, #method_missing, #to_ruby

Constructor Details

This class inherits a constructor from RObject::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RObject::Base

Class Method Details

.match?(robj, type) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/robject/type/vector.rb', line 5

def self.match? robj, type
  (type == 'numeric' || type == 'integer') &&
    Convert.call_R_without_convert(:length, robj) > 1
end