Questions tagged as 'r'

1
answer

How to create a plot with 2 superimposed histograms?

Suppose I have the following data from 2 distinct groups. set.seed(1) grupo1<-rnorm(400,6,2) grupo2<-rnorm(200,8,2) How do I make a histogram of the two groups on the same screen, identifying each of the groups with a distinct color a...
asked by 21.02.2014 / 01:11
1
answer

How to do webscrapping from an https using rvest?

I'd like to scrape a page that is on https using the rvest package. However, this is a site with security certificate issues. In these cases, you need to turn off SSL verification - but I do not know how to do this in that package. No...
asked by 16.12.2015 / 17:00
1
answer

R - download CVM data via POST method (package httr)

I'm trying to build a function in R to download multiple documents directly from the system made available by the CVM. The general instructions given by the CVM for the multiple download are described in: link p> In short, access to the...
asked by 17.04.2015 / 18:23
1
answer

Working with errors inside the loop in R

I inserted the non-linear adjustment function gnls into a loop for so that I could test a series of start values automatically. The issue is that eventually any of these start values generate error in the gnls...
asked by 02.03.2015 / 15:46
1
answer

Plot 3D figures for list data

I have a a list with three arrays and a v vector with three frequencies (any positive real ones), these arrays form triangles through a function that created pplot . I want to add the information of v to build prisms,...
asked by 15.11.2016 / 05:12
2
answers

Edit the 'style' of the external 'div' tag of a box in Shiny

I'm developing an app in Shiny of R, and I'm having trouble editing the tag outside of a box. When I run the command: box( title = 'Teste', width = 4 ) The corresponding HTML it creates is: <div class="col-sm-4"> <div cl...
asked by 23.01.2017 / 22:04
4
answers

Change the name of a variable in an R dataframe

I have a dataframe with 34846 observations and 15 variables, I would like to know how I have to do to change the name of a variable. Example: I have the "Country" variable and would like to rename it to "Country"     
asked by 11.09.2018 / 22:53
2
answers

Generate sequence in R

My logic is failing. But could you help me create a vector of numbers in R with this rule here? Vetor=1,222,2,223,3,224,4,.......,221,442 Many thanks.     
asked by 20.09.2018 / 03:14
2
answers

Calculation of Difference between Dates

I have the following DF: MATRICULA <- c('111','222','333','444','555') DATA_INICIO <- c('10/12/2017','31/12/2014', '30/06/2015','20/11/2016','01/04/2014') DATA_FIM <- c('10/12/2017', '01/01/2015', '02/07/2016', '03/12/2016', '13/04/...
asked by 26.12.2018 / 15:45
1
answer

How to calculate the median when the data is in chunks?

Suppose my data is divided into 2 vectors: x <- c(100, 400, 120) y <- c(500, 112) I could calculate the median, joining the two vectors and then using the median function. median(c(x,y)) [1] 120 Suppose for some reason I c...
asked by 30.12.2016 / 02:08