daru
https://github.com/sciruby/daru
Ruby
Data Analysis in RUby
Daru::Vector#clone_structure
Copies the structure of the vector (i.e the index, size, etc.) and fills all all values with nils.
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-clone_structure-for-pr
# Commit to gitgit add lib/daru/vector.rbgit commit -m "better docs for Daru::Vector#clone_structure"
# 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-clone_structure-for-pr
hub pull-request
# Celebrate!