0
체인에서 group_by
을 가져 와서 팬드 룩은 테이블을 잘 표시합니다. group_by
을 입력하고 부동 소수점 숫자의 소수점 이하 자리수를 표시하려면 크게하십시오.
# test dataframe
dat <- data.frame(matrix(rnorm(10 * 10), 10))
group <- rbinom(10,20,.1)
df1 <- cbind(group, dat)
library(pander)
pander(df1, digits = 2, keep.line.breaks = TRUE, split.table = Inf,
caption = "Not Grouped, correct format")
library(dplyr)
df2 <- df1 %>%
group_by(group)
pander(df2, digits = 2, keep.line.breaks = TRUE, split.table = Inf,
caption = "Grouped, incorrect format")
이 주위에 방법이 있나요?
신난다! @ Sven Hohenstein에게 감사드립니다. 그 일은 훌륭했습니다. – Clay