class Markdownplus::Julia::DataFrameHandler::DataFrame

Attributes

csv[R]
name[R]

Public Class Methods

new(name, csv) click to toggle source
# File lib/markdownplus/julia.rb, line 35
def initialize(name, csv)
  @name = name
  @csv = csv
end

Public Instance Methods

to_julia() click to toggle source
# File lib/markdownplus/julia.rb, line 40
def to_julia
  file = Tempfile.new(['data','.csv'])
  file.write(csv)
  file.close
  output = "#{name} = readcsv(\"#{file.path}\")\n"
end