R/fixedwidth.R

Defines functions `fixedwidth` `fixedwidth.data.frame`

`fixedwidth` <-
function(x,...)UseMethod('fixedwidth')
`fixedwidth.data.frame` <-
function(x,...){
	x <- data.frame(lapply(x,format,justify='right'),stringsAsFactors=FALSE)
	x <- rbind(names(x),x)
	x <- data.frame(lapply(x,format,justify='right'),stringsAsFactors=FALSE)
	names(x) <- x[1,]
	x[-1,,drop=FALSE]
}
metrumresearchgroup/metrumrg documentation built on May 22, 2019, 7:51 p.m.