Podsumowanie wartości w dplyr - Crashes RStudio
Mogądplyr
wykonać przykutysummarise
operacje na adata.frame
?
Moja data.frame ma strukturę:
data_df = tbl_df(data)
data_df %.%
group_by(col_1) %.%
summarise(number_of= length(col_2)) %.%
summarise(sum_of = sum(col_3))
Powoduje to, że RStudio napotka afatal error - R Session Aborted
wiadomość
Zwykle zplyr
Chciałbym je uwzględnićsummarise
działa bez problemów.
AKTUALIZACJA
Dane sątutaj.
Kod to:
library(dplyr)
orth <- read.csv('orth0106.csv')
orth_df = tbl_df(orth)
orth_df %.%
group_by(Hospital) %.%
summarise(Procs = length(Procedure)) %.%
summarise(SSIs = sum(SSI))