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

Java 3D LWJGL collision -

methods - python can't use function in submodule -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -