Number of observations by two variables in R -


how find number of observation meeting both criteria bf between 10-15 , p between 20-24?

bf = rnorm(50,10,2) p = rnorm(50,20,4) es = rnorm(50,40,8) evidence = data.frame(bf,p,es) 

nrow(evidence[with(evidence,bf > 10 & bf < 15 & p > 20 & p < 24),]) 

Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -