Description Usage Arguments Details Value See Also Examples
extract()는 "bins", "optimal_bins" 클래스 객체에서 비닝된 변수를 추출합니다.
1 2 3 4 |
x |
bins 클래스나(or) optimal_bins 클래스 |
"bins"와 "optimal_bins" 클래스 객체는 summary(), plot() 함수를 사용하여 비닝된 결과의 성능을 진단합니다. 이 함수는 비닝된 결과를 추출하는데 사용됩니다.
factor.
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(dplyr)
# 예제를 위한 데이터 생성
heartfailure2 <- heartfailure
heartfailure2[sample(seq(NROW(heartfailure2)), 5), "creatinine"] <- NA
# binning_by()을 이용한 최적 비닝
bin <- binning_by(heartfailure2, "death_event", "creatinine")
bin
# 비닝된 결과의 추출
extract(bin) %>%
head(20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.