From 9b181d251c7895771c154aaff7785d80f4cb78d9 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 19 Jun 2021 11:05:02 -0500 Subject: [PATCH] Update deprecated column deletion syntax --- src/BeefBLUP.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BeefBLUP.jl b/src/BeefBLUP.jl index 4216ba8..e05c33b 100755 --- a/src/BeefBLUP.jl +++ b/src/BeefBLUP.jl @@ -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