Questions tagged as 'r'

0
answers

How to transform a rgb color space into hsv in R

How do I read an image from a folder, and convert it from rgb to hsv by extracting an array of pixels for the parameters h, s and v (all by software R) ??     
asked by 12.11.2017 / 06:38
0
answers

How to make a map of Brazil

I'm trying to map the R for the first time. I've done all the necessary process with the data and I'm following the instructions of an available script here but it does not recognize the" longest "object. Can you help? The script looks l...
asked by 12.12.2017 / 23:31
0
answers

I need to calculate the frequency of occurrence of a varivavel [closed]

I have two vectors, one with 387 codes and another with 3,000 occurrences of one or more of these 387 codes. I need to know how many times each of these 387 codes occurred in this vector of 3,000 occurrences. I've done it with "for" loops and it...
asked by 09.11.2017 / 11:56
0
answers

GDP growth rate in R

I'm using the code pib <- BETS.get(22099) To pull PIB , it happens that it pulls from 1995 to 2017 , and I only need 2007.01 in> to 2013,12 . How do I pull only the period I need for the model? Then I need to use the code dpib &...
asked by 07.11.2017 / 22:33
0
answers

How to interpret Johansen test in R? [closed]

Hello. I would like to know how to interpret the Johansen test to know whether or not there is cointegration between the series involved in the model. Thankful.     
asked by 07.11.2017 / 01:36
1
answer

Clustering in R

I need to cluster this database and then make the prediction .... I would like to know how I could do the substitution correctly in this case? Which type of clustering would fit best? I am a beginner in the data area and I am trying to sol...
asked by 19.10.2017 / 14:25
1
answer

How to synchronize git folders to allow me to use R files simultaneously on multiple stations?

I've made an account in Git, and it's supposed to allow me to use the R files simultaneously on multiple stations. But I struggled a lot to be successful in the SSH key that the platform requests. And right now I can not do pull and pu...
asked by 06.10.2017 / 15:26
0
answers

lodown - Error in function: server response timeout

In an attempt to use the lodown package, I get an error: pns_cat <- get_catalog( "pns", output_dir = file.path(path.expand( "~" ), "PNS")) building catalog for pns Error in function (type, msg, asError = TRUE) : se...
asked by 03.10.2017 / 19:39
0
answers

Differences between the brglm and logistf packages

I am working with a panel database that contains information on publicly traded companies on the BOVESPA. Here is a piece of this database: Mydependentvariableisbinary(ROIC.MEDIANA)soIstartedmyestimationvialogisticpanel.Sincemydataisnotnorma...
asked by 18.10.2017 / 21:22
2
answers

How to rotate a template for each data subset of a time series by view

I have a database that has feed consumption information (190 animals) each day (88 days). See below table1 <- read.csv("Data.csv", header = TRUE) table1 Animal Dia Consumo 1 1 245 1 2 256 1 3 300 1 4 450 2 1 245 2 2 256 2 3 3...
asked by 18.09.2017 / 11:57