Get min value of a class reference field from a list of class references in R
===

R Beginner here.

I have a list of class references. Each class has a field, "x". I want to find the class reference which has the lowest "x" in the list.

In python I would do this:

    return min(item.x for item in myList)

I'm not sure if there is specific terminology for the type of statement above (if someone knows I would like to know), but is there are way of doing a similar type of thing in R ?

If not, what would be the best way to achieve this in R ?

Many thanks