read.testURLs: Read a file produced by testURLs

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/read.testURLs.R

Description

***NOTE: THIS IS A PRELIMINARY VERSION OF THIS FUNCTION; ***NOTE: IT MAY BE CHANGED OR REMOVED IN A FUTURE RELEASE.

read.table(file.) and return the result as an object of class c('testURLs', 'data.frame').

Usage

1
read.testURLs(file.='testURLresults.csv', ...)

Arguments

file.

Name of a CSV file to read

...

optional arguments for read.csv.

Details

dat <- read.csv(file., ...)

class(dat) <- c('testURLsFile', 'data.frame')

Value

a data.frame from the file written by testURLs, of the same format as the testResults attribute of the testURLs object returned by testURLs.

Author(s)

Spencer Graves

See Also

read.csv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Test only 2 web sites, not the default 4,
# and test only twice, not the default 10 times:
tst <- testURLs(c(
 PVI="http://en.wikipedia.org/wiki/Cook_Partisan_Voting_Index",
 house="http://house.gov/representatives"),
    n=2, maxFail=2)

# The above should have created a file 'testURLresults.csv'
# in the working directory.  Read it.

dat <- read.testURLs()

Ecfun documentation built on May 2, 2019, 6:53 p.m.