Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

书内184页内的代码可能有误 #8

Open
kongjianyang opened this issue Dec 5, 2022 · 1 comment
Open

书内184页内的代码可能有误 #8

kongjianyang opened this issue Dec 5, 2022 · 1 comment

Comments

@kongjianyang
Copy link

同时修改列名的方法:

my_summarise = function(data, mean_var, sd_var) { data %>% summarise("mean_{{mean_var}}" := mean({{mean_var}}), "sd_{{sd_var}}" := mean({{sd_var}})) }

应该是

my_summarise = function(data, mean_var, sd_var) { data %>% summarise("mean_{{mean_var}}" := mean({{mean_var}}), "sd_{{sd_var}}" := sd({{sd_var}})) }

第二列应该想求的是SD

@Crosshairs1638
Copy link

Crosshairs1638 commented Dec 5, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants