Ok I get one:

julia> df = DataFrame(A = 1:4, B = ["M", "F", "F", "M"])

4x2 DataFrame:

        A   B

[1,]    1 "M"

[2,]    2 "F"

[3,]    3 "F"

[4,]    4 "M"


julia> pool!(df)


julia> ModelMatrix(ModelFrame(Formula(:A,:B), df))

ModelMatrix{Float64}(4x2 Array{Float64,2}:

 1.0  1.0

 1.0  0.0

 1.0  0.0

 1.0  1.0,[0,1])



Le jeudi 3 avril 2014 23:53:46 UTC+2, Stéphane Laurent a écrit :
>
> Hello, 
> Please, does someone have an example of a dataframe with a "factor" 
> variable ?
>

Reply via email to