I have a data with some numbers in a column named radon. I want to find all numbers bigger than 4 and count total.
I do this:
for(i in 1:ncol(data))
{
if(data$radon[i]>=4)
{
data$radon[i]
}
}
but is not working.
how can i changed it?
If I understand you correctly: