본문 바로가기
반응형

R32

[R] unpaired two-samples t-test in r #0. sample data #1. t.test #0. sample data boxplot(sample_a, sample_b) #1. t.test t.test(sample_a, sample_b) ref : http://www.sthda.com/english/wiki/unpaired-two-samples-t-test-in-r Unpaired Two-Samples T-test in R - Easy Guides - Wiki - STHDA Statistical tools for data analysis and visualization www.sthda.com 2021. 10. 5.
[R] one hot encoding in r One-hot encoding in r # 0. sample data # 1. mltools, data.table # 2. reshape2 # 0. sample data set.seed(42) data 2021. 10. 5.
[R] 두 집단 통계표 코드 한 줄로 끝내기 두 집단 기본 통계량을 코드 한 줄로 끝내는 방법 Package : arsenal #1. source data glimpse(df_summary) #2. arsenal로 통계표 구하기 library(arsenal) stat_tbl 2021. 1. 26.
[R] function 사용하여 반복작업 쉽게 하기 반복작업할때 function 기능 사용하면 코드를 간결화 할 수 있음. 기본 function(x, y) { any_command(x, y) } select_col 기능을 생성 select(), mutate(), filter() 세가지 명령을 한번에 함. #10 -5th.1 col2 = c("id","psu","kstrata","wt_itvex","age","sex", "he_crea", "he_uph", "he_unitr", "he_usg", "he_upro", "he_uglu", "he_uket", "he_ubil", "he_ubld", "he_uro") select_col % select(col2) %>% mutate(wt=wt_itvex*1/9.5) %>% select(-wt_itvex) %>% f.. 2020. 12. 17.
[R] RStudio Cheatsheets R 특정 function이 생각안날떄 유용한 cheat sheets ref; rstudio.com/resources/cheatsheets/4 RStudio Cheatsheets Open source and enterprise-ready professional software for data science rstudio.com 2020. 12. 16.
[R] missing value 확인하기 결측치 한눈에 보기 R에서 결측치 한눈에 살펴보기 step1 load dataset and using summary function step2 heatmaply stpe3 visdat(vis_dat, vis_miss) step1 load dataset and using summary function df_v4 2020. 11. 2.

TOP

Designed by 티스토리