Julia dataeye not working

I watched help with a YouTube video on "Analyzing Data in Julia with Data Frames (John Myles White)"

I ended up in the section of convenience constructors, dataeye, etc. However, I got the following in Julia 0.3.3:

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

Where is the function dataeye()that is located / defined?

By the way: where are the RDatasets that is used in the video?

+4
source share
1 answer

I think dataeye was used in DataArrays (and therefore DataFrames), it looks like it is no longer in use, and I cannot find it on github for any of these projects. It looks like it was shorthand / 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

, , , , (, )...

+5

Source: https://habr.com/ru/post/1568474/


All Articles