R/fixedwidth.R

`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]
}
anniejw6/metrumrg documentation built on May 10, 2019, 11:50 a.m.