Questions tagged as 'r'

0
answers

Data normalization in R

I'm trying to normalize the data and give the following error: Error in if (colSd != 0) res[, i] <- (x[, i] - colMean)/colSd else res[, : missing value where TRUE/FALSE needed The code in R is this: # Modelo de Trinamento de uma Re...
asked by 05.07.2018 / 17:40
0
answers

Importing data type 1,000 (thousands) of html

I'm importing data from the public database: link with the following code: library(rvest) for (i in 1:8){ url_BF <- sprintf('http://bolsafamilia.datasus.gov.br/w3c/consol_uf_cobertura_bfa.asp?gru=5&vigencia=%02d&vigatua...
asked by 04.07.2018 / 20:58
0
answers

Error when querying api created in R with plumber

I have created a ppi in plumber, when I query this api directly in the browser I can see the data, but when I use the GET () function I get the following error:    Error in prettyNum (.Internal (format (x, trim, digits, nsmall, width,   3L,:...
asked by 30.07.2018 / 14:06
0
answers

Turning a double variable into a factor

Hello, I'm trying to convert a variable from type double to factor ppar$abor <- as.factor(ppar$abor) But I'm getting the following error: Error in '$<-.data.frame'('*tmp*', abor, value = integer(0)) :     
asked by 23.07.2018 / 01:52
0
answers

I can not understand why you are returning this error

   Error in round (transform (x), digits):     non-numeric argument to mathematical function My code: leaflet(br_munic) %>% addProviderTiles(providers$OpenStreetMap) %>% addPolygons( fill = T, stroke = F, fillColor = pal(br_mun...
asked by 30.06.2018 / 04:48
0
answers

How to perform a GLM of a variable with lognormal distribution in R?

I have the problem defining a "generalized linear model" with the lognormal distribution. Simply the glm function does not accept this distribution and I saw the suggestion to use the following command: glm(y ~ a+b+c, family=gaussian(l...
asked by 04.06.2018 / 23:49
0
answers

Issue in shinyapp publication

Theapp(ui+server)runsnormallybutatthetimeofpublishingin link is giving the error of the image how to proceed to solve . If necessary I can post the codes.     
asked by 05.05.2018 / 22:05
1
answer

system is computationally singular: reciprocal condition number

I'm dealing with time series in R. My data are homocedastic, have no autocorrelation, have no unit root at lag = 0, trend or seasonality. I still have a problem with this specific error: VAR_S <- summary(VAR(Base_Dados,p = 1, type =...
asked by 03.05.2018 / 13:31
0
answers

Doubt logistic regression analysis in R

Analyze R, possible logistic analysis, I am having difficulty analyzing a data where several species of frogs vocalize, during the data collection the vocalization was present or absent between intervals every 5 minutes for 12 hours (Data of 5 c...
asked by 27.04.2018 / 04:31
1
answer

Difficulty in decomposing time series in r

I'm trying to use R for the first time. I am trying to evaluate possible shocks in a VAR model, so I can not develop the decomposition test. being my main questioning the message "time series has no period, or has less than 2" At first I u...
asked by 28.03.2018 / 22:14