Learn R Programming

pepr (version 0.5.0)

.checkSection: Check for a section existence in a nested list

Description

Check for a section existence in a nested list

Usage

.checkSection(object, sectionNames)

Value

logical indicating whether the sections where found in the list

Arguments

object

list to inspect

sectionNames

vector or characters with sectio names to check for

Examples

Run this code
l = list(a=list(b="test"))
.checkSection(l,c("a","b"))
.checkSection(l,c("c","b"))

Run the code above in your browser using DataLab