About me | pbdR Tech | HPSC | Phyloclustering | R_note |

R_note -- The Exploration of Statistical Software R (統計軟體 R 深度歷險)
About R_note
Reference
MS Windows

Batch jobs
Function
Data/MySQL
Plot
String/Parse

Remark Lines
Classes/S3
S4 Methods
Batch more
Environment

Good Coding
Fast Loop
LAM/MPI/Rmpi
Recursion

PHP Call R
Basic C
R Call Fortran/C
R Call GSL
C Call R API
C Call R Objects
Standalone

Make Packages
C Pointer
Debug




Section: Good Coding

The following topics are selected from the "chapter 22" in S-Plus 2000 Programer's Guide (or my mirror here). Some of them are very useful to improve your code to make it short and more efficient.


  • Use Vectorized Arithmetic
  • Avoid for Loops
  • Avoid Growing Data Sets
  • Avoid Looping Over Named Objects
  • Keep It Simple!
  • Reuse Computations
  • Reuse Code
  • Avoid Recursion

[ Go to top ]

Maintained: Wei-Chen Chen
E-Mail: wccsnow @ gmail.com
Last Revised: Dec 12 2016, 09:44 (CST Taipei, Taiwan)
Created: Oct 06 2003
free counters Best Resolution
IE6.0
1280x1024
small font