1
0
Fork 0
mirror of https://github.com/MillironX/beefblup.git synced 2024-11-13 03:03:08 +00:00

Update deprecated column deletion syntax

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

View file

@ -74,8 +74,8 @@ fixedfx = select(data, Not([:id, :birthdate, :sire, :dam]))[:,1:end-1]
# Find any columns that need to be deleted
for i in 1:ncol(fixedfx)
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")
deletecols!(fixedfx,i)
@warn string("column '", names(fixedfx)[i], "' does not have any unique animals and will be removed from this analysis")
select!(fixedfx,Not(i))
end
end