Module: R::ExpBinOp
Instance Method Summary collapse
- #assign(other_object) ⇒ Object
- #coerce(numeric) ⇒ Object
- #exec_bin_oper(operator, other_object) ⇒ Object
- #inter(other_object) ⇒ Object
Instance Method Details
#assign(other_object) ⇒ Object
32 33 34 |
# File 'lib/R_interface/ruby_extensions.rb', line 32 def assign(other_object) exec_bin_oper("`<-`", other_object) end |
#coerce(numeric) ⇒ Object
26 27 28 |
# File 'lib/R_interface/ruby_extensions.rb', line 26 def coerce(numeric) [R::Language.new(numeric.to_s), self] end |
#exec_bin_oper(operator, other_object) ⇒ Object
23 24 25 |
# File 'lib/R_interface/ruby_extensions.rb', line 23 def exec_bin_oper(operator, other_object) R::Language.build(operator, self, other_object) end |
#inter(other_object) ⇒ Object
29 30 31 |
# File 'lib/R_interface/ruby_extensions.rb', line 29 def inter(other_object) exec_bin_oper("`:`", other_object) end |