Recommended R functions

From Opasnet
Revision as of 06:09, 21 August 2011 by Jouni (talk | contribs) (→‎Answer)
Jump to navigation Jump to search


Recommended R functions describes good practices for writing R code. The code should be short, straightforward to understand, efficient to run, and similar to everyone else's code.

Question

What are good practices for writing R code? The code should be short, straightforward to understand, efficient to run, and similar to everyone else's code.

Answer

data.frame

ggplot2

tapply

merge

rbind

cbind

reshape

op_baseGetData

op_baseGetLocs

op_baseWrite

slicing R objects

This is not a function but rather a list of practical ways of slicing an object.

match

ifelse

is.na

colnames

as.numeric

as.character

as.data.frame

as.table

Rationale

Based on experience and testing.

See also

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>