Questions tagged as 'r'

4
answers

Strategies for analyzing very large databases in R (that do not fit in RAM)

Suppose I have a huge database that does not fit into RAM. What strategies to analyze this database in R, since I can not fully load it into memory? PS: The question is not just about how to make R talk to a relational / non-relational databa...
asked by 28.08.2014 / 06:44
1
answer

R is an object-oriented language?

A theoretical question of who uses (and does not use) r is whether this programming language is (or is not) object oriented. I've seen comments in SOen that said the following: r is not object oriented, but a functional languag...
asked by 05.12.2018 / 01:38
2
answers

Apply, sapply, mapply, lapply, vapply, rapply, tapply, replicate, aggregate, by and correlates in R. When and how to use?

What is the difference between the functions apply , sapply , mapply , lapply , vapply , rapply , tapply , replicate , aggregate , by and correlates no R? When and how to use each o...
asked by 04.03.2014 / 23:52
6
answers

Remove accents

I need to know how to remove the accents of a data in a column. # Eu tentei > library(stringr) > a <- dados$Municipio[2] > a [1] "Arapeí" > str_replace_all(a, "[í]", "i") [1] "Arapeí" # outra tentativa > iconv(a, to="ASCI...
asked by 11.01.2015 / 01:16
2
answers

Error converting numbers. How to convert factors to numbers?

In the following example: dados <- data.frame(x=c("11", "10", "20", "15"), y=c("25", "30", "35", "40")) dados x y 1 11 25 2 10 30 3 20 35 4 15 40 When trying to transform the variable x into number, instead of 11, 10, 20 15 ap...
asked by 14.03.2014 / 06:32
4
answers

Equivalent to SOMASES of Excel, in R

I'm digging into R and looking for a function that is equivalent to the excel somases. I have this following DF: Day.of.Week Hour Quantidade 5 21 5044 3 12 5024 1 11 4725 0...
asked by 29.03.2016 / 22:35
1
answer

How to recognize and change the encoding of Latin characters in R?

Is there any efficient way to recognize the encoding of texts downloaded from the internet? I did a scraping of any site (see code below) and I can not find the correct encoding. In the source code META tag the specification is "iso-8859-1" (...
asked by 01.05.2016 / 19:34
2
answers

Object orientation in R: S3, S4 and Reference Class

The R has, among others, three main forms of object orientation: S3; S4; e, Reference Classes. What are the main differences between the three methods? And how to implement them (preferably provide a minimal and simple example with...
asked by 12.09.2014 / 15:34
1
answer

Call functions in C from R

I need to optimize some functions that are in the C language, but using the genetic algorithm packages in R. Is there any way to call C functions in R? In matlab I know there is this possibility through mex . Does not R have somethin...
asked by 01.07.2015 / 14:16
1
answer

How to make a bubble chart, each filled in according to a ratio

I'm trying to make a chart look like this in R : Thechartisavailableat link . I do not need it to be dynamic like the link, but if it is, that's fine. In it, each bubble is divided between the colors blue and red according to the pr...
asked by 15.12.2015 / 16:26