Top "R-faq" questions

The r-faq tag is created to group a limited number of questions discussing problems that come up regularly on the R tag.

Migrating R libraries

I'd like to move several R libraries (*) from one drive to another, on Linux, and would like to know whether …

r installation administration r-faq
How to search for "R" materials?

"The Google" is very helpful... unless your language is called "R," in which case it spits out tons of irrelevant …

r search r-faq
How can I remove all duplicates so that NONE are left in a data frame?

There is a similar question for PHP, but I'm working with R and am unable to translate the solution to …

r duplicates unique r-faq
One function to detect NaN, NA, Inf, -Inf, etc.?

Is there a single function in R that determines if a value is NA, NaN, Inf, -Inf, or otherwise not …

r nan na r-faq
apply() is slow - how to make it faster or what are my alternatives?

I have a quite large data frame, about 10 millions of rows. It has columns x and y, and what I …

r apply r-faq
A comprehensive survey of the types of things in R; 'mode' and 'class' and 'typeof' are insufficient

The language R confuses me. Entities have modes and classes, but even this is insufficient to fully describe the entity. …

r language-lawyer r-faq
How can I paste 100000 without it being shortened to 1e+05?

Question: How can I use paste without 100000 becoming 1e+05? Sorry in advance if this question seems frivolous (but it has …

r r-faq
How to perform natural (lexicographic) sorting in R?

Is there a natural sort for R? Say I had a character vector like so: seq.names <- c(…

r sorting natural-sort r-faq
Why does summarize or mutate not work with group_by when I load `plyr` after `dplyr`?

Note: The title of this question has been edited to make it the canonical question for issues when plyr functions …

r dplyr plyr r-faq
Row-wise count of values that fulfill a condition

I want to generate a new variable which the number of times some columns satisfy a criterion (like ==, <, >). …

r sum r-faq rowsum