daru
https://github.com/sciruby/daru
Ruby
Data Analysis in RUby
Daru::Vector#only_valid
Creates a new vector consisting only of non-nil data == Arguments as an Array. Otherwise will return a Daru::Vector. vector, setting this to false will return the same vector. Otherwise, a duplicate will be returned irrespective of presence of missing data.
Edit
git clone [email protected]:sciruby/daru.git
cd daru
open lib/daru/vector.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Daru--Vector-only_valid-for-pr
# Commit to gitgit add lib/daru/vector.rbgit commit -m "better docs for Daru::Vector#only_valid"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Daru--Vector-only_valid-for-pr
hub pull-request
# Celebrate!