1
0
Fork 0
mirror of https://github.com/MillironX/beefblup.git synced 2024-12-22 09:08:16 +00:00

Qualify column deletion function

This commit is contained in:
Thomas A. Christensen II 2021-06-19 11:07:13 -05:00
parent 9b181d251c
commit 530258a2c8
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -75,7 +75,7 @@ fixedfx = select(data, Not([:id, :birthdate, :sire, :dam]))[:,1:end-1]
for i in 1:ncol(fixedfx) for i in 1:ncol(fixedfx)
if length(unique(fixedfx[:,i])) <= 1 if length(unique(fixedfx[:,i])) <= 1
@warn string("column '", names(fixedfx)[i], "' does not have any unique animals and will be removed from this analysis") @warn string("column '", names(fixedfx)[i], "' does not have any unique animals and will be removed from this analysis")
select!(fixedfx,Not(i)) DataFrames.select!(fixedfx,Not(i))
end end
end end