Questions tagged as 'r'

0
answers

Convert string to date in SparkR - Databricks

Speak up, all right? I am trying a dataframe in the prophet algorithm in my work, so in Rstudio I used the following code to convert the "Data" data that is as string to Date, because the algorithm needs this format to make its predictions. p...
asked by 10.12.2018 / 20:44
1
answer

Temporary matching of financial market data downloaded by the Batchgetsymbols package in R

By using the following code, I import data from the stock exchange, the Petrobras Ibovespa Index and the US S & P 500 Index. However, the dates of the observations are not exactly matched # Carregar pacote de importação de dados da bolsa libra...
asked by 09.12.2018 / 21:15
0
answers

Data import error in R [closed]

Hello! I minded a base I ordered via LAI for R. I was sent in excel, but I converted to csv by work facilities. I know that by transforming all the data from the columns of "character" to "numeric", one of them gets the values multiplied by 1000...
asked by 01.12.2018 / 19:09
0
answers

Doubt in using data.table

Good morning! People, I need some help. I worked out the routine below to update a data.table (dt). The execution was very slow so I suppressed the innermost loop and associated the variable Resul directly in the data. table but did not wo...
asked by 19.10.2018 / 14:38
0
answers

Gene ontology and Gene Interaction Network in R

Hello, I have a dataset of gene expression organized as follows: Gene FC12h QV12H FC10d QV10d Rp1 -0,371 0,797 2,647 0,718 Sox17 15,200 0...
asked by 13.10.2018 / 06:07
0
answers

Problems in while -R condition

Hello! I have a problem in my condition in the while loop. It does not recognize when it should stop and it is in an infinite loop. The purpose of the function is to tell what is between "a" "t" "g" and "t" "a" "g" or "t" "g" "a "or" t "" a "" a...
asked by 27.10.2018 / 10:19
0
answers

Confidence Interval

I would like to generate the confidence interval values for some explanatory variables of the HUNTED response variable. The data is distributed in 3 different time periods. However, when I use the code: library (MASS) confint (allspecies4) I onl...
asked by 07.09.2018 / 14:50
0
answers

Estimates of ordinal regression with signal switched

I am trying to reproduce the results that are in the book An introduction to Generalized Linear Models third edition of Dobson and Barnett, page 161. The fit is an ordinal regression applied to dataset (download link) . My big confusion is that...
asked by 08.10.2018 / 07:02
0
answers

Extract only numbers from a list

I'm using the package in R fbRads to collect Facebook Ads data. However, when I transform it into a data frame, I get a list with the values, rather than the numeric value. How can I separate only this value? library(fbRads) library(tid...
asked by 17.09.2018 / 15:43
0
answers

How to fix error "can not coerce class" "group" "to a data.frame"

When running script below, specifically in the playback part of data.frames , the error was returned:    Error in as.data.frame.default (x [[i]], optional = TRUE,   stringsAsFactors = stringsAsFactors):         can not coerce c...
asked by 17.09.2018 / 21:43