Articles by Yu-Sung Su

speed issue in R computing: apply() vs a loop

April 23, 2008 | Yu-Sung Su

In R, apply() is NOT faster than a loop!!I don't know where I pick up this perception about apply() being faster than a loop in R. For a long time, I always think that apply() runs a function (for example, mean()) on a data structure (row or column) i... [Read more...]

R package: codetools

February 4, 2008 | Yu-Sung Su

Since the release of R_2.6.0, R package developers were advised to use the ``codetools" package to check potential bugs. However, as I am not familiar with computer language, I found the warning messages a bit confusing. For example:__ checkUsage(glm.fit): no visible binding for global variable ‘n’I don't ... [Read more...]

Shading overlapping area of curves in R

January 28, 2008 | Yu-Sung Su

I was trying to plot figure in R like the one below, which is basically the veto player model of Tsebelis. Based on my knowledge of R now, I encountered 2 major problems:I don't know if there is a function that can draw archs, or at least partial curves from ... [Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)