5.8 Compare the package name length with download counts

Here, we still focused on all R-packages on CRAN and made comparison between the name length with the last half a year’s total downloads.

Finding 1: The name length of R-packages has no significant effect on the number of total downloads for last half a year.

We could see from Figure 5.19 that, in general, the influence of name length on download volume is not very obvious. But we could still observe that the number of downloads decreases slightly with the length of the name. And the names with more than 6,000,000 downloads are between 5 and 9 characters long. Also, the most downloaded is R-package rlang whose name length is 5, with 1.5572507^{7} download counts.

The names of R-packages with more than 6,000,000 downloads are between 5 and 9 characters long.

Figure 5.19: The names of R-packages with more than 6,000,000 downloads are between 5 and 9 characters long.

Finding 2: The average name length of R-packages is about 7.8 characters, and over half of the R-packages tend to have shorter names, which may make it more easier to be remembered by users.

Table 5.17 shows that the average name length all R-packages is 7.8472034. And over half of the R-packages are more likely to have names shorter than average. That means, to a certain extent, R-packages with shorter names are easier to get relatively higher downloads. And that may because shorter named packages are easier for users to remember.

Table 5.17: Percentage of packages whose name length are less than average
number of short names percentage of short names total average name length
9289 52.58718 7.847203

Finding 3: The 95% confidence interval of the name length is between 7.80 and 7.90 characters.

Table 5.17 shows the 95% confidence interval of name length for all packages. We could know that the 95% suitable name length is between 7.7947032 and 7.8997035 characters.

Table 5.18: 95% Confidence Interval of name length for random packages
lower.bound upper.bound
7.794703 7.899704

After we found that there is no obvious relationship between the name length of the package and the download volume, a new question came up : Is the name length of the package affected by the time of initial release date?

Finding 4: For taskview R-packages, the length of the package name increases with the initial release date, especially for Bayesian packages.

We have such an experience in life, that is, for the same type of goods, such as detective novels, the later they are released, the narrower the choice of naming is, because there are certain restrictions on the name of a particular type, but many names have been occupied by the books published earlier. Therefore, these later published books often have to lengthen their names to distinguish themselves from the existing books in the same type or even the same name. Coincidentally, we assumed the naming of R-packages from the same topic would also be affected by the initial release time, to a certain extent. So, here, we looked back to the CRAN task view R-packages for constructing comparison among R-packages from the same topic. Figure 5.20 shows the name length of CRAN task view R-packages against the initial release date. It is obvious that the length of the R-package name increases with the initial release date, especially for Bayesian R-packages.

The name length of taskview R-packages slightly increase with the initial release date.

Figure 5.20: The name length of taskview R-packages slightly increase with the initial release date.

Finding 5: For all R-packages on CRAN, the average name length tends to generally increase with the initial release date.

Although we’d better explore this question among the same topic of R-packages, we could also have a view on the annual change in the average name length of all R-packages on CRAN.

Figure 5.21 shows the average name length of all R-packages on CRAN released in each year. It is obvious that the name length of these R-package generally increases year by year.

(ref:avgnamelth-year)

Figure 5.21: (ref:avgnamelth-year)