Learn R Programming

do (version 2.0.0.1)

has_children: Wether children nodes exist

Description

Wether children nodes exist

Usage

has_children(...)

Value

logical value

Arguments

...

one or more documents, nodes, or node sets.

Examples

Run this code
txt='
        
            (22)
            where?
        
      
        stays 
        disappears
        disappearsD
        disappears
        stays
      
    '
 library(xml2)
 html=read_html(txt)
 has_children(html)

Run the code above in your browser using DataLab