R/BRCAOV.survInfo.R

#'Breast and Ovarian Cancers Survival Information
#'
#'@description Breat and Ovarian cancers survival information from the
#'  RTCGA.clinical R/Bioconductor package.http://rtcga.github.io/RTCGA/.
#'@name BRCAOV.survInfo
#'@docType data
#'@usage data("BRCAOV.survInfo")
#'@format A data frame with 1674 rows and 4 columns.
#'\preformatted{
#'  - times: follow-up time;
#'  - bcr_patient_barcode: Patient bar code;
#'  - patient.vital_status = survival status. 0 = alive, 1 = dead;
#'  - admin.disease_code: disease code. brca = breast cancer, ov = ovarian
#'  cancer.
#'  }
#'@source
#'From the RTCGA.clinical R/Bioconductor package. The data is generated as follow:
#'
#'\preformatted{
#'# Installing RTCGA.clinical
#'source("https://bioconductor.org/biocLite.R")
#'biocLite("RTCGA.clinical")
#'
#'# Generating the BRCAOV survival information
#'library(RTCGA.clinical)
#'survivalTCGA(BRCA.clinical, OV.clinical,
#'extract.cols = "admin.disease_code") -> BRCAOV.survInfo
#'}
#'
#' @examples
#' data(BRCAOV.survInfo)
#' library(survival)
#' fit <- survfit(Surv(times, patient.vital_status) ~ admin.disease_code,
#'            data = BRCAOV.survInfo)
#' ggsurvplot(fit, data = BRCAOV.survInfo, risk.table = TRUE)
NULL

Try the survminer package in your browser

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

survminer documentation built on March 9, 2021, 5:07 p.m.