mirror of
https://github.com/MillironX/beefblup.git
synced 2024-11-14 11:33:10 +00:00
Update deprecated column deletion syntax
This commit is contained in:
parent
610c80e7c9
commit
9b181d251c
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ fixedfx = select(data, Not([:id, :birthdate, :sire, :dam]))[:,1:end-1]
|
||||||
# Find any columns that need to be deleted
|
# Find any columns that need to be deleted
|
||||||
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")
|
||||||
deletecols!(fixedfx,i)
|
select!(fixedfx,Not(i))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue