as.data.frame.block: Convert a Block of Lines to Data Frame

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

Description

A block is a character vector where each element represents a line of text from a table. This function converts the character vector to a data.frame. The first line must be a header, and names will not be checked.

Usage

1
2
## S3 method for class 'block'
as.data.frame(x, ...)

Arguments

x

character

...

extra arguments passed to read.table

Details

The function calls read.table with header=TRUE, as.is=TRUE, and check.names=FALSE. It is an error to specify these arguments.

Value

data.frame

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

Examples

1
2
3
4
5
6
7
8
9
as.data.frame.block(
	c(
		'just an example',
		'run param estimate',
		'1 CL 45',
		'1 V2 70',
		'1 Ka 3.14'
	)
)

metrumrg documentation built on May 2, 2019, 5:55 p.m.