R/as.data.frame.STARbarlist.R

Defines functions as.data.frame.STARbarlist

#'@method as.data.frame STARbarlist
#'@S3method as.data.frame STARbarlist
as.data.frame.STARbarlist <- function(x, ...){
	res <- lapply(x, function(x)unlist(x[1:5]))
	m <- do.call("rbind",res)
	dfr <- as.data.frame(m)
	dfr$pfile <- sapply(x, "[[", "pfile")
	dfr$lfile <- sapply(x, "[[", "lfile")

	return(dfr)
}

Try the YplantQMC package in your browser

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

YplantQMC documentation built on May 29, 2017, 7:02 p.m.