Skip to content
Permalink
c5d03d2a60
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (24 sloc) 1.1 KB
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make.prop.frame.R
\name{make.prop.frame}
\alias{make.prop.frame}
\title{Test of Proportion}
\usage{
make.prop.frame(df_list, factor_one = "group", factor_two)
}
\arguments{
\item{df_list}{A nested list of meta data obtained by >make.nested.list<}
\item{factor_one}{First grouping factor for function >count.column<}
\item{factor_two}{Second grouping factor for function >count.column<}
}
\value{
Returns a data frame containing all pvalues of the proportion test of all genes.
}
\description{
This function applies >count.column< and >use.prop.test< on the whole list of data frames.
}
\examples{
df <- data.frame(case_id = c(1,2,3,4,5,6), group = c("one","one","two","one","two","three"), primary_diagnosis = c("Squamous cell carcinoma, NOS", "Adenocarcinoma, NOS", "Adenocarcinoma with mixed subtypes", "Squamous cell carcinoma, NOS", "Squamous cell carcinoma, NOS", "Squamous cell carcinoma, NOS"))
diagnosis_counts <- count.column(df, factor_one = "group", factor_two = "primary_diagnosis")
pValues <- use.prop.test(diagnosis_counts, FALSE)
}