View source: R/ineq_function.R
ineq | R Documentation |
This function allows the user to count the number of values/rows that match the inequality.
ineq(x, val, eq)
x |
Data to pass through function. Vector with multiple values |
val |
Value to evaluate with inequality |
eq |
inequality symbol as a character. Options are ">", "<", ">=", "<=", or "=". |
Value of observations that fit the condition given.
### Create Test data a<-seq(1,5,by=1) b<-seq(1,10,by=2) c<-seq(1,15,by=3) data<-data.frame(a,b,c) #for vector: ineq(a,val=3,eq="<") #for dataframe: apply(data,2,function(x) ineq(x,val=4,eq=">"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.