R/IsObjectInList.R

IsObjectInList <-
function(TheList, TheObject)
{
    fObjectInList <- FALSE
    
    if (length(TheList) > 0)
        for (i in 1:length(TheList))
            if (TheList[i] == TheObject)
                fObjectInList <- TRUE
  
    fObjectInList
}

Try the VTrack package in your browser

Any scripts or data that you put into this service are public.

VTrack documentation built on May 2, 2019, 9:16 a.m.