Questions tagged as 'r'

2
answers

How to display comments in the RStudio console?

When I write a comment (preceded by the "#" symbol) in an RStudio script, and I press the 'Control + Enter' command, my comment is not displayed on the console screen. Would anyone know how to make the script comments appear on the RStudio conso...
asked by 12.10.2017 / 23:18
1
answer

R: Overlapping subtitles [ggplot2]

Hello, I have a subtitle overlay problem in ggplot. The following error message appears. Scale for 'fill' is already present. Adding another scale for 'fill', which will replace the existing scale. I used two overlapping data.frames whose s...
asked by 02.02.2018 / 14:56
2
answers

Percentage Frequency in R with dplyr

I was looking to use the dplyr package to calculate the Relative Frequency per group. I have a database like the first three columns below and I would like the last column to be the response variable: CNPJ Central depositos Re...
asked by 22.06.2017 / 23:19
1
answer

Multiple Regression with R [closed]

I have a table with a few columns of factors that vary over time. With multiple regression I can evaluate the influence of a group of factors on the variation of 1. How can I do this in R?     
asked by 11.07.2017 / 04:41
2
answers

How to create column from data contained in other columns

Hello, I'm new to R and I'm getting caught up in solving this problem. I have a spreadsheet I called base and it has 2573 observations of 103 variables. I've created an auxiliary column named reclamacoes.titulo . I need to...
asked by 25.10.2017 / 19:29
2
answers

Presentation of disproportionate rmarkdown graph

Hello, I have the following problem: when I print the chart in Rmarkdown it gets the numbers one above the others, besides the month / year indication in the coordinates also get the wrong view .. Isthereanycodetoincreasethesizeofthegraphsot...
asked by 18.08.2017 / 14:19
3
answers

Calculate the average temperature in R

I have: Data Sala.1 Sala.2 Sala.3 Horas 1 02/08/2013 20.5 19.7 21.6 15:00 2 02/08/2013 19.7 18.9 20.2 15:30 3 02/08/2013 19.7 19.1 20.0 16:00 4 02/08/2013 19.7 18.8 19.8 16:30 5 02/08/2013 19.8 18.8 19.9...
asked by 27.03.2018 / 19:31
1
answer

Python / R Check for density peaks in ggplot2

I have two sets of data formed as follows: A = {id1: 0.3, id2: 0.1, id3: 0.3 ... idn: 0.2} B = {id1: 0.01, id2: 0.04, id3: 0.75 ... idn: 0.9} I used the ggplot function of R to plot the density values in the same graph, thus:...
asked by 26.05.2017 / 23:11
1
answer

Nesting error

I need to make a graph in concatenated R, it's 4177 iterations, I'm using ggplot2, but it's giving the error below: Error: evaluation nested too deeply: infinite recursion / options(expressions=)? Error during wrapup: evaluation nested too dee...
asked by 10.05.2016 / 06:12
1
answer

Error in optimum function

I'm trying to maximize the likelihood of logistic distribution with a regression structure. The code is: cov1 <- rep(1,115) cov2 <- rnorm(115,0,1) e <- rlogis(115, 0,1) yy <- 1*cov1 + 0*cov2 + 2*e n <- 115 logL <- funct...
asked by 17.09.2016 / 21:25