Class: Array
- Inherits:
-
Object
- Object
- Array
- 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_r ⇒ Object
15 16 17 |
# File 'lib/rosar.rb', line 15 def to_r "c(#{self * ','})" end |