Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/rosar.rb

Overview

Adds a to_r method to standara Arrays, which returns a String representation

of the equivalent R array object.

Instance Method Summary collapse

Instance Method Details

#to_rObject



15
16
17
# File 'lib/rosar.rb', line 15

def to_r
  "c(#{self * ','})"
end