I am new to Julia and I am struggling to compare the values stored in a vector with a integer (which is a threshold I want to use to determine if a certain condition is true or false). The actual values are stored as columns in a dataframe but the example below reproduces the same error.
using DataFrames
a= [1:50]
b= ByRow(a<25 ? "True" : "False")
I think the problem is that I am comparing an array with an integer. I thought applying the comparison row by row would give another vector with "True" or "False" values but it does not. If I broadcast the comparison I get the same error:
a= [1:50]
b= a.<25 ? "True" : "False")
ERROR: MethodError: no method matching isless(::UnitRange{Int64}, ::Int64)