Hello, I am trying to split my dataframe into two different ones. I would like to create one with "high score" and the other with "low score". The cutoff value should be based one the median of a continuous variable.
Can someone help me with the code?
data_high <- split(data,data$variable)
but how can I define the cutoff value?
Thanks in advance.