Questions tagged as 'r'

1
answer

Set coordinate axes in ggplot2

It turns out that I have a function written in R to print a box and whisker plot. What I do in question is this: mytitle2 <- "Contenido = 1.0" a <-subset(global_data,Contenido==1.0 & Rango==3) ggplot(d, aes(fase)) + labs(title=myti...
asked by 09.11.2017 / 22:44
1
answer

How to interpret complex values in ANOVA

I am wanting to interpret the results I obtained by applying ANOVA, but I get a complex and very small value (Pr(>F) , I am seeing if I can conclude something or it is not significant at all. Go the results I got: Df Sum Sq...
asked by 06.03.2018 / 14:21
1
answer

Download yahoo finance data in R

How can I download data from yahoo finance at Rstudio? I get the following error:    Error in download.file (paste (yahoo.URL, "s=", Symbols.name, "& amp = a",   from.m,: can not open URL   ' link ' library(quantmod) library(xts) library...
asked by 17.05.2017 / 20:18
1
answer

Error applying the EM algorithm to generate a Phase Type

From some data I am generating (weibull) I am trying to make a Phase Type fitting using the MS algorithm in R. However, when generating the density function (matrixp) I get the following error: "matrizp[j,i]= pmf(data[j],lambds[i],rs[i]) repl...
asked by 11.05.2017 / 04:53
1
answer

Vegan for R 3.3.3

I am trying to install Vegan and bioconductor in R 3.3.3 but the program shows me that those packages are not available for the version I have install.packages("vegan") Installing package into ‘C:R/win-library/3.3’ (as ‘lib’ is unspecified) W...
asked by 30.03.2017 / 12:54
1
answer

Extract text from a file in R

I have a .txt file with a fixed-length DNA string and I want you to return an array of text with different fragments. I read the file with the following code: dades<- read.table("DnaSeq.txt") Example: I have the string: tgcaggctt...
asked by 09.03.2017 / 10:27
1
answer

How to change a value of a dataTable when it is clicked?

I'm doing some tests with shiny and I've created a data.frame for the messages as if it were an inbox . I show the messages both in notifications and in a library table DT . I would like that when you click on them in the tabl...
asked by 01.03.2017 / 08:51
1
answer

Unify files in a data frame in r

I try to unify files (whose names are 001.csv , ..., 332.csv ) with the following for: files.together<- function(directory,id=1:332) { files<-list.files(path = directory,full.names = T) values<-numeric()...
asked by 30.09.2016 / 20:23
1
answer

resize data frame

How could two dataframes be "resized" or cut by the value of one of their columns? My objective is to operate with them, that is to make the difference of the values for the coinciding dates. I do not know if it could be done in an efficient...
asked by 05.09.2016 / 11:38
1
answer

get the parameters when using auto.arima

How to get the parameters when using auto.arima package in R? ie: somehow call ARIMA4 and give me a string argument of this style:   ARIMA (2,1,0) (2,0,0) [12] A manual way to check it is: train<-ts(data,start=c(2010,1),frequency=365...
asked by 22.08.2016 / 14:37