powered by
It acts similiarly to Excel's MINIF function. It returns the minimum value from an array after testing for certain criterias.
MINIF(range, criteria, min_range)
Which range should it check the criteria against?
What should be checked?
From which range should it return the minimum from?
In this case we get the minimum value of Sepal Length from Species which are virginica. Function will always return numeric class.
# NOT RUN { MINIF(iris$Species,"virginica",iris$Sepal.Length) # }
Run the code above in your browser using DataLab