Monthly Archives: July 2019

Testing whether a list contains an element

In the past I have always used is.null() in R to test whether a list contains a specified element. E.g., if I wanted to know whether a list, mylist contained the element x I would have used This failed me … Continue reading

Posted in Programming, R | Comments Off on Testing whether a list contains an element