0

写 R 程序的规则

 3 years ago
source link: https://yihui.org/cn/2008/11/golden-rules-in-r-programming/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

写 R 程序的规则

谢益辉 / 2008-11-05


当你在写 R 程序时,如果你蓦然回首发现你用的循环代码行数超过了总的代码行数的一半时,那么一般来说,这段程序说明了你的三种可能:

  1. 你在糟蹋 R。

  2. 你是故意的。

  3. 参见第 1 条。

本规则供没有领会 “向量化操作” 的代码编写者参考。

利用 Google 可视化 API 展示布朗运动 秋游记

Disqus Utterances Preferences

© Yihui Xie 2005 - 2020

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK