The r-faq tag is created to group a limited number of questions discussing problems that come up regularly on the R tag.
The following code is obviously wrong. What's the problem? i <- 0.1 i <- i + 0.05 i ## [1] 0.15 if(i==0.15) cat("…
r floating-point floating-accuracy r-faqHow can I set a specific CRAN mirror permanently in R? I want to set it permanently in my laptop …
r cran r-faqHere is a vector a <- c(TRUE, FALSE, FALSE, NA, FALSE, TRUE, NA, FALSE, TRUE) I'd like a …
r boolean logical-operators na r-faqI get an error when using an R function that I wrote: Warning messages: 1: glm.fit: algorithm did not converge 2: …
r debugging r-faqI have a data set of stock prices that have already been rounded to 2 decimal places (1234.56). I am now trying …
r rounding r-faqI'm trying to write a function in R to batch-analyse a number of files in a similar manner. The files …
r r-faqWhat are the restrictions as to what characters (and maybe other restrictions) can be used for a variable name in …
r r-faqI have two vectors: vars <- c("SR", "PL") vis <- c(1,2,3) Based on these vectors I would …
r r-faq