PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/working/auteur.extended/man/intercalate.samples.Rd

http://github.com/eastman/auteur
Unknown | 21 lines | 20 code | 1 blank | 0 comment | 0 complexity | 494d9b5d71fd20f1ea439335b145d17d MD5 | raw file
 1\name{intercalate.samples}
 2\alias{intercalate.samples}
 3\title{pool data}
 4\description{
 5Combines datasets respecting indices of each}
 6\usage{intercalate.samples(list.obj)}
 7\arguments{
 8  \item{list.obj}{a list of vectors or dataframes}
 9}
10\value{A dataframe of pooled values, whose elements are ordered as given by the order of objects in \code{list.obj}}
11\author{JM Eastman}
12\examples{
13# with character vectors
14a=letters[1:10]
15A=toupper(letters[1:10])
16intercalate.samples(list(a,A))
17
18# with multi-column dataframes
19list.obj=lapply(1:5, function(x) {y=data.frame(matrix(data=runif(9)+x, nrow=3)); names(y)=letters[1:3]; return(y)})
20intercalate.samples(list.obj)
21}