R 语言 生信分析

[读书笔记r4ds]III.Program 编程技巧

2019-11-20  本文已影响0人  茶思饭

Programming is a cross-cutting skill needed for all data science work.
Over time, you want your code to become not just easier to write, but easier for others to read.

18 Pipes 管道符 %>%

%>%来自于magrittr package
%>%管道符能够让代码更容易阅读和理解。

管道符在2类公式中不起作用:

-- use the current environment. e. g. assign() ,get() , load().
-- use lazy evaluation. tryCatch(),try(), suppressMessages(),suppressWarnings().

Other tools from magrittr

上一篇下一篇

猜你喜欢

热点阅读