scan2: Scans Data from Author's Website

Description Usage Arguments Details Author(s) See Also Examples

View source: R/scan2.R

Description

Performs scan of dataset without typing the URL.

Usage

1
 scan2(file.name, course.num=course.number, na.strings=".", comment.char="#", ...) 

Arguments

file.name

The file name in character format without the URL.

course.num

The course number in character or numeric format, where course.number is a global variable.

na.strings

Character vector. Elements of this vector are to be interpreted as missing NA values.

comment.char

Single character or empty string, denoting beginning of comment. Use "" to turn off the interpretation of comments altogether.

...

Optional arguments to be passed to the scan function.

Details

The datasets are available on the author's website, http://educ.jmu.edu/~garrenst. The global variable course.number may be entered as the value of the second argument, course.num, in function scan2.

Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

See Also

read.table2 and scan

Examples

1
2
3
4
5
# The following two commands, when uncommented, are equivalent.

# scan2( "exercise2.7.txt", 324 )

# scan( "http://educ.jmu.edu/~garrenst/math324.dir/datasets/exercise2.7.txt", comment.char="#" )

jmuOutlier documentation built on Aug. 6, 2019, 1:03 a.m.