lib/rbbt/util/R.rb in rbbt-util-5.7.0 vs lib/rbbt/util/R.rb in rbbt-util-5.8.0

- old
+ new

@@ -51,10 +51,9 @@ def self.ruby2R(object) case object when nil "NULL" when TSV - #"as.matrix(data.frame(c(#{object.transpose("Field").collect{|k,v| "#{k}=" << R.ruby2R(v)}.flatten * ", "}), row.names=#{R.ruby2R object.keys}))" "matrix(#{R.ruby2R object.values},dimnames=list(#{R.ruby2R object.keys}, #{R.ruby2R object.fields}))" when Symbol "#{ object }" when String "'#{ object }'"