Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Julia dataeye not working

Tags:

julia

I was following allow with the YouTube Video on "Data Analysis in Julia with Data Frames (John Myles White)"

I got to the Convenience constructors section, dataeye, etc... however, I get the following in Julia 0.3.3:

julia> dm = dataeye(2)  
ERROR: dataeye not defined  

Where is the dataeye() function located/defined?

BTW: where is the RDatasets, that is used in the video?

like image 273
pedi cables pedicables Avatar asked Dec 20 '14 19:12

pedi cables pedicables


1 Answers

I think dataeye used to be in DataArrays (and hence DataFrames), it doesn't seem to be used anymore and I can't find it on github for either of these projects. It looks like it was a shorthand/is not written:

@data eye(2)

julia> @data eye(4)
4x4 DataArray{Float64,2}:
 1.0  0.0  0.0  0.0
 0.0  1.0  0.0  0.0
 0.0  0.0  1.0  0.0
 0.0  0.0  0.0  1.0

All I could find was this discussion saying they're not very useful (presumably they were then removed)...

like image 97
Andy Hayden Avatar answered Sep 20 '22 20:09

Andy Hayden