readLiteral: Read a file literally (all columns as character)

Description Usage Arguments Value Author(s) Examples

Description

Read a file literally (all columns as character)

Usage

1
readLiteral(filename, ...)

Arguments

filename

Path of file to be read

...

Passed to read.table

Value

data.frame

Author(s)

Kaiyin Zhong, Fan Liu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
df = data.frame(x = c("T", "%T", "10341"), 
		y = c("F", "f%t", "431"), 
		z = c("T", "TRUE", "FALSE"))
tmpf = tempfile()
write.table(df, file = tmpf, quote = FALSE, 
		row.names = FALSE, col.names = FALSE)
df1 = readLiteral(file = tmpf)
all(df1 == df)

## End(Not run)

CollapsABEL documentation built on May 1, 2019, 7:28 p.m.