madeleineudell / LowRankModels.jl

LowRankModels.jl is a julia package for modeling and fitting generalized low rank models.
Other
190 stars 65 forks source link

Fit_rdataset fails #75

Open finmod opened 7 years ago

finmod commented 7 years ago

Trying to run fit_rdataset.jl, which is not included in the Pkg.test("LowRankModels"). this line of code

now we'll try it without type imputation

we'll just fit four of the columns, to try out all four data types

dd = DataFrame([df[s] for s in [:TOD, :Scale, :Vigorous, :Wakeful]]) dd[end] = (dd[end].==1) datatypes = [:real, :cat, :ord, :bool]

gives the following error:

MethodError: Cannot convert an object of type Array{DataArrays.AbstractDataArray{T,1},1} to an object of type DataFrames.DataFrame This may have arisen from a call to the constructor DataFrames.DataFrame(...), since type constructors fall back to convert methods.

in DataFrames.DataFrame(::Array{DataArrays.AbstractDataArray{T,1},1}) at .\sysimg.jl:53

Thank you.