R

The R programming questions and answers in this lesson will help you understand the types of R questions you can expect in data science interviews.

We'll cover the following...

What are the limitations of R?

R has many limitations, but some directly affect data analysis. These limitations are as follows:

  • It needs to load all data into memory (RAM), so it is not appropriate for big data analysis.

  • Processing in R is slower than in other programming tools, and if the package's maintainer no longer sustains its package, then some R scripts do not work with the newer version of R.

What is the difference between Inf and NaN?

The Inf keyword represents the infinity value. For example, if we divide 1 by 0, we get infinity. If we add infinity to infinity, we get infinity. But if we subtract infinity from infinity, we don't get infinity. There is no value defined for this subtraction. That means if a number can't represent a ...