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) 888 Bytes
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add.stage.simple.R
\name{add.stage.simple}
\alias{add.stage.simple}
\title{Adds column with simplified tumor stages without subtypes}
\usage{
add.stage.simple(meta_data, tumor_stage = "tumor_stage",
new_name = "stage")
}
\arguments{
\item{meta_data}{A data frame}
\item{tumor_stage}{Character or Integer - Column name or index of tumor stage}
\item{new_name}{Character - Name of new column}
}
\value{
Returns the data frame with an additional column.
}
\description{
This function adds a new column "stage" to the meta data containing the simplified tumor stages (i.e. without subtypes). It uses the function stages.to.number.
As for now 4 subtypes are accepted: a,b,c and 0 - it doesnt compute "stage i/ii NOS", "stage 0" and "stage x"
}
\examples{
lungMeta <- add.stage.simple(lungmeta, "tumor_stage")
}