0
I would like to create a conditional for average and standard deviation of a given group. I usually do this by dividing subsets
, but as there are many categories I thought would be better with a parole. I put together a code to test. It runs but does not print the results on the screen.
if( males[,2]<=22.11 && 18<=males) {
print(mean(estatura))
print(mean(CVF))
print(mean(VEF1))
}
Can you please, edit the question with the departure of
dput(males)
or, if the base is too large,dput(head(males, 20))
? And tell how groups are defined.– Rui Barradas