Learn R Programming

morseTKTD (version 0.1.3)

SurvDataCheck: Checks if an object can be used to perform survival analysis

Description

The survDataCheck function can be used to check if an object containing survival data is formatted according to the expectations of the survData function.

Usage

survDataCheck(data, quiet = FALSE)

Value

The function returns a dataframe with message describting the error in the formatting of the data. When no error is detected the object is empty.

Arguments

data

any object looking as a data.frame.

quiet

binary (TRUE, FALSE). If FALSE (default), remove some messages in console.