R Function Usage Frequencies, Take 2

December 8, 2009
By

(This article was first published on John Myles White: Die Sudelbücher » Statistics, and kindly contributed to R-bloggers)

Yesterday, Hadley Wickham commented on my post on the frequency of calling various R functions that it would be helpful to have the number of packages that call a function in addition to the number of times that the function is called. I compiled the relevant data last night: you can grab it here This data set includes a row for every function I found, indexed by each of the packages and files in which it was used. At this higher level of resolution, I record the number of times each function was called.

To get a sense of the correspondence between these measures, below I’ve plotted the number of packages using each function in my data set against the log number of times each function is called:

package_function_frequencies.png

And here’s a new top 25 most called functions table:

FunctionPackages Using Function
function1903
if1846
c1795
length1791
list1679
for1656
return1559
stop1538
paste1526
rep1512
matrix1419
is.null1413
sum1396
max1368
cat1308
names1297
is.na1241
min1216
cbind1175
nrow1158
sqrt1157
t1134
print1120
class1120
seq1098

To leave a comment for the author, please follow the link and comment on his blog: John Myles White: Die Sudelbücher » Statistics.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags:

Comments are closed.