PageProcessing: Process XML Data into tree format

View source: R/PageProcessing.R View source: R/CollectDataforWeb.R

PageProcessingR Documentation

Process XML Data into tree format

Description

This function will read in the XML data and parse it into a tree structure for R to read.

Usage

PageProcessing(MyEOL, ...)

RemoveNAFiles(MyFiles)

Arguments

MyEOL

A filename or R object for downloaded EOL pages

...

Parameters passed on to xmlRoot

MyFiles

A vector of filenames or R objects for EOL or Hier pages

Value

PageProcessing returns XML tree as an R object. RemoveNAFiles is an internal function that will take a vector of filenames and check to make sure they all have data associated (sometimes requested pages will be empty and contain no information). If they are empty, they are cleaved from the analysis.

Examples

## Not run: 
# Reads in a file
# PageProcessing("eol1.xml")

# or reads in an R object
data(MyEOLs)
PageProcessing(MyEOLs[1])

## End(Not run)

ropensci/reol documentation built on May 18, 2022, 6:33 p.m.