as_tibble.sgb_data: Coerce 'sgb_data' to Data Frame.

Description Usage Arguments Value Examples

View source: R/sgboost.R

Description

Coerce sgb_data to Data Frame.

Usage

1

Arguments

x

an sgb_data object

...

Currently not used

Value

a tibble

Examples

1
2
3
4
5
6
7
8
9
library(tibble)

df = data.frame(time=c(1,2,3), status = c(0,0,1), x = c(2,2,1))

df_sgb <- as_sgb_data(df, status = status, time = time)

tbl_sgb <- as_tibble(df_sgb)

tbl_sgb

bcjaeger/xgboost.surv documentation built on Nov. 18, 2019, 6:43 a.m.