Learn R Programming

Reol (version 1.55)

PageProcessing: 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
MyFiles
A vector of filenames or R objects for EOL or Hier pages
...
further arguments to be passed to PageProcessing

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

Run this code
	#Reads in a file
	#PageProcessing("eol1.xml") 
	
	#or reads in an R object
	data(MyEOLs)
	PageProcessing(MyEOLs[1])

Run the code above in your browser using DataLab