Skip to content

Instantly share code, notes, and snippets.

@henryscala
Last active August 29, 2015 14:17
Show Gist options
  • Save henryscala/544d6aa27d37c547893d to your computer and use it in GitHub Desktop.
Save henryscala/544d6aa27d37c547893d to your computer and use it in GitHub Desktop.
learn julia

#tutorials http://www.scolvin.com/juliabyexample/

http://julialang.org/learning/

http://dataframesjl.readthedocs.org/en/latest/

http://gadflyjl.org/

#init config

show version info versioninfo()

Pkg.status() and Pkg.add() may fails, run Pkg.init("https://github.com/JuliaLang/METADATA.jl"), default value is "git://github.com/JuliaLang/METADATA.jl" that doesn't work

Inside julia shell, type ; will go to external shell, run the following commands, adding packages will succeed. git config --global url."https://".insteadOf git://

Pkg.available() list available packages online

Pkg.status() list installed packages

See more Pkg.installed(), Pkg.update()

using Package: import all functions to the current namespace

import Package: # will enable you to specify which package the function is called from

Package Gadfly or Winston or PyPlot are able to be used to plotting

Package DataFrames are used to operate on tabular data Pkg.add("RDatasets"), have some useful datasets for exercise

functions

mean -- get average median -- get middle item

reshape data(long form to wide form, and the reverse) using "stack" function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment