class RType::Vector

Public Class Methods

match?(robj, type) click to toggle source
# 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