TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

dplyr 0.7.0

44 点作者 yomritoyj将近 8 年前

3 条评论

yomritoyj将近 8 年前
As the article &quot;Tidy Evaluation&quot;[1] says<p>&quot;R makes it easy to create DSLs thanks to three features of the language:<p>* R code is first-class. That is, R code can be manipulated like any other object (see sym(), lang() and node() for creating such objects). We also call expressions these objects containing R code (see is_expr()).<p>* Scope is first-class. Scope is the lexical environment that associates values to symbols in expressions. Environments can be created (see env()) and manipulated as regular objects.<p>* Finally, functions can capture the expressions that were supplied as arguments instead of being passed the value of these expressions (see enquo() and enexpr()). &quot;<p>dplyr is a testament to how these nonstandard features of R can be combined to produce a language for interactive data analysis whose convenience and clarity cannot be matched by traditional languages.<p>[1] <a href="http:&#x2F;&#x2F;rlang.tidyverse.org&#x2F;articles&#x2F;tidy-evaluation.html" rel="nofollow">http:&#x2F;&#x2F;rlang.tidyverse.org&#x2F;articles&#x2F;tidy-evaluation.html</a>
评论 #14553582 未加载
minimaxir将近 8 年前
dplyr <i>is</i> the main reason to use R for tabular data manipulation over things like Python&#x2F;pandas. (see the introduction for more background: <a href="https:&#x2F;&#x2F;cran.r-project.org&#x2F;web&#x2F;packages&#x2F;dplyr&#x2F;vignettes&#x2F;dplyr.html" rel="nofollow">https:&#x2F;&#x2F;cran.r-project.org&#x2F;web&#x2F;packages&#x2F;dplyr&#x2F;vignettes&#x2F;dply...</a> )<p>The key feature in this case is tidy evaluation, which will be slightly different to use since it favors functional programming paradigms. (pull() is neat for certain use cases as well)
评论 #14550869 未加载
et2o将近 8 年前
Slightly off topic, am I the only person who hates the %&gt;% operator? I find it completely obfuscates code.
评论 #14552583 未加载