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]
}

Try the metrumrg package in your browser

Any scripts or data that you put into this service are public.

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