daru

https://github.com/sciruby/daru

Ruby

Data Analysis in RUby

Daru::Vector#type

The type of data contained in the vector. Can be :object or :numeric. If
the underlying dtype is an NMatrix, this method will return the data type
of the NMatrix object.

Running through the data to figure out the kind of data is delayed to the
last possible moment.

Source | Google | Stack overflow

Edit

git clone [email protected]:sciruby/daru.git

cd daru

open lib/daru/vector.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Daru--Vector-type-for-pr


# Commit to git

git add lib/daru/vector.rbgit commit -m "better docs for Daru::Vector#type"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Daru--Vector-type-for-pr

hub pull-request


# Celebrate!