is.survival: Test character describes survival object

is.survivalR Documentation

Test character describes survival object

Description

Test character describes survival object

Usage

is.survival(.name)

Arguments

.name

Character string to test

Value

Logical

Examples

var_s = "Surv(mort, time)"
is.survival(var_s) #TRUE
var_s = "Sur(mort, time)"
is.survival(var_s) #FALSE

finalfit documentation built on Sept. 11, 2024, 9:01 p.m.