The survDataCheck
function can be used to check if an object
containing survival data is formatted according to the expectations of the
survData
function.
survDataCheck(data, quiet = FALSE)
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.
any object looking as a data.frame.
binary (TRUE, FALSE). If FALSE (default), remove some messages in console.