Pkg.add("DataFrames")
INFO: Cloning cache of ArrayViews from git://github.com/JuliaLang/ArrayViews.jl.git INFO: Cloning cache of DataArrays from git://github.com/JuliaStats/DataArrays.jl.git INFO: Cloning cache of DataFrames from git://github.com/JuliaStats/DataFrames.jl.git INFO: Cloning cache of Docile from git://github.com/MichaelHatherly/Docile.jl.git INFO: Cloning cache of GZip from git://github.com/JuliaLang/GZip.jl.git INFO: Cloning cache of Reexport from git://github.com/simonster/Reexport.jl.git INFO: Cloning cache of SortingAlgorithms from git://github.com/JuliaLang/SortingAlgorithms.jl.git INFO: Cloning cache of StatsBase from git://github.com/JuliaStats/StatsBase.jl.git INFO: Cloning cache of StatsFuns from git://github.com/JuliaStats/StatsFuns.jl.git INFO: Installing ArrayViews v0.6.4 INFO: Installing DataArrays v0.2.20 INFO: Installing DataFrames v0.6.10 INFO: Installing Docile v0.5.23 INFO: Installing GZip v0.2.18 INFO: Installing Reexport v0.0.3 INFO: Installing SortingAlgorithms v0.0.6 INFO: Installing StatsBase v0.8.0 INFO: Installing StatsFuns v0.2.0 INFO: Package database updated INFO: METADATA is out-of-date — you may not have the latest version of DataFrames INFO: Use `Pkg.update()` to get the latest versions of your packages
using DataFrames
INFO: Precompiling module DataFrames...
DataFrame.ninitialize
2
df = DataFrame()
df
df['a'] = [1,1,2]
LoadError: MethodError: `setindex!` has no method matching setindex!(::DataFrames.DataFrame, ::Array{Int64,1}, ::Char) Closest candidates are: setindex!(::DataFrames.DataFrame, ::Any, ::Any, !Matched::Colon) setindex!(::DataFrames.DataFrame, ::AbstractArray{T,1}, !Matched::Union{Real,Symbol}) setindex!(::DataFrames.DataFrame, ::Any, !Matched::Real, !Matched::Union{Real,Symbol}) ... while loading In[15], in expression starting on line 1
using RDatasets
iris = dataset("datasets", "iris")
WARNING: Base.String is deprecated, use AbstractString instead. likely near /Users/hunterowens/.julia/v0.4/RDatasets/src/dataset.jl:1 WARNING: Base.String is deprecated, use AbstractString instead. likely near /Users/hunterowens/.julia/v0.4/RDatasets/src/dataset.jl:1 WARNING: Base.String is deprecated, use AbstractString instead. likely near /Users/hunterowens/.julia/v0.4/RDatasets/src/datasets.jl:1
SepalLength | SepalWidth | PetalLength | PetalWidth | Species | |
---|---|---|---|---|---|
1 | 5.1 | 3.5 | 1.4 | 0.2 | setosa |
2 | 4.9 | 3.0 | 1.4 | 0.2 | setosa |
3 | 4.7 | 3.2 | 1.3 | 0.2 | setosa |
4 | 4.6 | 3.1 | 1.5 | 0.2 | setosa |
5 | 5.0 | 3.6 | 1.4 | 0.2 | setosa |
6 | 5.4 | 3.9 | 1.7 | 0.4 | setosa |
7 | 4.6 | 3.4 | 1.4 | 0.3 | setosa |
8 | 5.0 | 3.4 | 1.5 | 0.2 | setosa |
9 | 4.4 | 2.9 | 1.4 | 0.2 | setosa |
10 | 4.9 | 3.1 | 1.5 | 0.1 | setosa |
11 | 5.4 | 3.7 | 1.5 | 0.2 | setosa |
12 | 4.8 | 3.4 | 1.6 | 0.2 | setosa |
13 | 4.8 | 3.0 | 1.4 | 0.1 | setosa |
14 | 4.3 | 3.0 | 1.1 | 0.1 | setosa |
15 | 5.8 | 4.0 | 1.2 | 0.2 | setosa |
16 | 5.7 | 4.4 | 1.5 | 0.4 | setosa |
17 | 5.4 | 3.9 | 1.3 | 0.4 | setosa |
18 | 5.1 | 3.5 | 1.4 | 0.3 | setosa |
19 | 5.7 | 3.8 | 1.7 | 0.3 | setosa |
20 | 5.1 | 3.8 | 1.5 | 0.3 | setosa |
21 | 5.4 | 3.4 | 1.7 | 0.2 | setosa |
22 | 5.1 | 3.7 | 1.5 | 0.4 | setosa |
23 | 4.6 | 3.6 | 1.0 | 0.2 | setosa |
24 | 5.1 | 3.3 | 1.7 | 0.5 | setosa |
25 | 4.8 | 3.4 | 1.9 | 0.2 | setosa |
26 | 5.0 | 3.0 | 1.6 | 0.2 | setosa |
27 | 5.0 | 3.4 | 1.6 | 0.4 | setosa |
28 | 5.2 | 3.5 | 1.5 | 0.2 | setosa |
29 | 5.2 | 3.4 | 1.4 | 0.2 | setosa |
30 | 4.7 | 3.2 | 1.6 | 0.2 | setosa |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
using Gadfly
plot(dataset("datasets", "iris"),x="SepalLength", y="SepalWidth", Geom.point)
INFO: Precompiling module Gadfly...