Takes the given result, formats and prints it
survival_essentials(
  result,
  label = NULL,
  p_precision = 3,
  hr_precision = 2,
  time_precision = 1,
  include_end_separator = TRUE,
  timespan_unit = "days",
  print = TRUE
)The formatted string, invisibly. Ready for output with cat or saving to a file.
The result generated by analyse_survival
Optional label to include
Precision with which to print floating point values
Append "\n---\n"? Comes handy if printing multiple results following each other
Unit for time spans: "days", "months" or "years".
Print string to console