If I have a Float64 vector Y and an integer vector x, for instance x=rand(1:1000, 500), is there an elegant way to pull the elements of Y at non-x entries? So far I have tried Y[findall([i ∉ x for i in 1:1000])]. This works, but coming from R, I was hoping to do something like Y[.!x] or Y[!x], which both throw errors. I would like to refrain from a package like DataFrames, but if this is not possible I understand.
Thanks in advance.