Names of R's available packages

前端 未结 4 1099
抹茶落季
抹茶落季 2020-12-05 19:06

I\'m eager to know,

  • how many package names on CRAN have two, three, N characters?
  • which combinations have not yet been used (\"unpoppler\")
  • h
4条回答
  •  悲&欢浪女
    2020-12-05 19:32

    Here is a short piece of code to answer some questions. I will keep adding to my answer when I find time.

    library(XML); library(ggplot2);
    
    url = 'http://cran.r-project.org/web/packages/available_packages_by_name.html'
    packages = readHTMLTable(url, stringsAsFactors = F)[[1]][-1,]
    
    # histogram of number of characters in package name
    qplot(nchar(V1), data = packages)
    

提交回复
热议问题