Sha256: a96ebff6cfaba18ce81a1b9482a73e897e8c21a88513b0f15d46b3cb2287de94

Contents?: true

Size: 429 Bytes

Versions: 19

Compression:

Stored size: 429 Bytes

Contents

# Several additions to Statsample objects, to support
# rserve-client

module Statsample
  class Vector
    def to_REXP
      Rserve::REXP::Wrapper.wrap(data_with_nils)
    end
  end
  class Dataset
    def to_REXP
      names=@fields
      data=@fields.map {|f|
        Rserve::REXP::Wrapper.wrap(@vectors[f].data_with_nils)
      }
      l=Rserve::Rlist.new(data,names)
      Rserve::REXP.create_data_frame(l)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
statsample-1.5.0 lib/statsample/rserve_extension.rb
statsample-1.4.3 lib/statsample/rserve_extension.rb
statsample-1.4.2 lib/statsample/rserve_extension.rb
statsample-1.4.1 lib/statsample/rserve_extension.rb
statsample-1.4.0 lib/statsample/rserve_extension.rb
statsample-1.3.1 lib/statsample/rserve_extension.rb
statsample-1.3.0 lib/statsample/rserve_extension.rb
statsample-1.2.0 lib/statsample/rserve_extension.rb
statsample-1.1.0 lib/statsample/rserve_extension.rb
statsample-1.0.1 lib/statsample/rserve_extension.rb
statsample-1.0.0 lib/statsample/rserve_extension.rb
statsample-0.18.0 lib/statsample/rserve_extension.rb
statsample-0.17.0 lib/statsample/rserve_extension.rb
statsample-0.16.0 lib/statsample/rserve_extension.rb
statsample-0.15.1 lib/statsample/rserve_extension.rb
statsample-0.15.0 lib/statsample/rserve_extension.rb
statsample-0.14.1 lib/statsample/rserve_extension.rb
statsample-0.14.0 lib/statsample/rserve_extension.rb
statsample-0.13.1 lib/statsample/rserve_extension.rb