Questions tagged as 'r'

1
answer

RamDrive with video card ram

I use the R language for heavy matrix calculations. I'm using gpu for performance gain, which is fantastic indeed. However, I would like to take another step and dump the 2gb matrix of data directly into the ram of the video card Or maybe,...
asked by 03.04.2015 / 01:40
1
answer

Pattern recognition [closed]

I have hundreds of digital images of dogs and cats, I need to make an algorithm to recognize when it is the dog and when it is the cat. What steps should I take?     
asked by 08.07.2016 / 15:38
3
answers

How to format a table (data.frame) with publication quality in pdf (latex) in R?

Suppose the following table: tabela <- structure(list(Sexo = structure(c(1L, 1L, 2L, 2L), .Label = c("Homem", "Mulher"), class = "factor"), Grupo = structure(c(1L, 2L, 1L, 2L), .Label = c("A", "B"), class = "factor"), Média = c(0.26550866...
asked by 08.03.2014 / 02:13
2
answers

Modifying colors in graphics in ggplot2

How do I change the colors of the graph in ggplot? Type, I'm not able to put a continuous color scale between white and red, I've tried a variety of things but have not yet answered. library('ggplot2') Tipo = c("Casa", "Rua", "Bairro", "M...
asked by 13.06.2018 / 06:11
2
answers

What is the difference between [] and [[]] in R?

I just used [ ] to define the position of an element in a vector or array ( [ ] , [,] , [, ,] ...), but how does [[ ]] work?     
asked by 06.12.2018 / 18:28
3
answers

How do I assign the results of a function that returns a list of objects?

In R we can make a function return more than one object through a list. But how do you assign these objects to two different variables? Example: f<-function(){ primeiro<-1:10 segundo<-11:21 return (list(primeiro,segundo)) }...
asked by 07.03.2014 / 05:02
3
answers

Less data in a data set

I have a dataset and would like to select only the smallest date between each primary key ( MATRICULA column). Here is the example of my DF: MATRICULA <- c(1,1,3,3,3,4,5,5,5,5,6) DATA <- c('15/01/2018', '10/12/2017', '20/11/2017',...
asked by 19.12.2018 / 13:44
2
answers

What does it mean - in R?

What does the <<- operator in R mean, what are their differences from <- , and under what circumstances can it be useful?     
asked by 22.09.2014 / 04:01
2
answers

Builder and inheritance in R

It's a theoretical question, but it might help to understand the programming logic in r . What is a constructor in the r language? What is its use? What is and how inheritance works in r ? How to identify the inhe...
asked by 08.11.2018 / 14:56
4
answers

How to remove line that has missing?

I have a database that has some missings (NA's) but only one variable (a column), and I need to remove the entire line that has the missing.     
asked by 18.09.2015 / 17:11