Questions tagged as 'r'

1
answer

Package Management in R, how to export and import packages?

I use my scripts on several computers and then I come across errors regarding the lack of packages and often these computers do not have internet access, which makes it difficult to access the repositories. In addition, when I need to maintai...
asked by 28.09.2015 / 02:57
1
answer

Custom Line Graph - any tool

I need to create a line chart (python, R or even excel), where each row is a category of products, the y-axis is the sale, and x is the time. If the sale is above the goal, the line is one color, if it is below, another color. It would be a way...
asked by 08.06.2018 / 16:37
1
answer

Copying files with the same name to a directory without overwriting (R!)

Hello, I have a problem. I have a dummy directory that contains a set of folders, each folder inside it contains a protocol folder, and inside each folder I have one or more files. Ex: Pasta Protocolo Arquivo(s) A -> 1...
asked by 07.06.2018 / 20:00
2
answers

Inconsistent numeric format

I am an experienced programmer in SAS, but a beginner in R. I am working with RStudio Version 0.99.903 - © 2009-2016 RStudio, Inc. and Windows 8. I have the following question: The file "a_us" has 4 numeric and 2 alphanumeric fields as foll...
asked by 11.10.2016 / 16:56
1
answer

Estimation of parameters via monte carlo and optimum function

I'm doing a bivariate Birnbaum Saunders distribution study. To solve my problem I need to create a code that estimates the parameters of a blend model. I would like to insert the gradient of my likelihood function in the code below via the NumDe...
asked by 12.10.2016 / 02:00
1
answer

Accumulated Interest Quarterly using R

I'm trying to make a rule in the R to accumulate interest rates every three months, as in the time series below: juros <- structure(c(0.423918702462353, 0.235602849515353, -0.162734895728985, 0.432584842873254, 0.692919368945965, 0.8357699...
asked by 25.10.2016 / 15:53
1
answer

use of Sys.sleep

I can not make a peer-to-peer graph, the R% with% of the graph then stays in the count of plot , does anyone help me? n=1 Cn=6.45 x<-3 t<- seq(1,20) for (i in 1:21) { flux = round(Cn*sin(n*pi*x / 5)*exp(-(pi^2*n^2/25)*...
asked by 07.11.2016 / 22:20
1
answer

Problem with xts object

Package 'YieldCurve' Personal, I'm using this package and I'm having a problem. MatrizCurva<-MatrizUmaLinha20colunas[1,1:20] [1] 0.1164000 0.1264816 0.1265631 0.1366446 0.1467260 0.1568073 0.1668885 0.179694 [9] 0.1770501 0.1771306 0...
asked by 26.07.2015 / 02:17
1
answer

How to get columns from XLS files in R

Using the R tool, I was able to open an XLS file as follows: require(xlsx) coln = function(x) { y = rbind(seq(1, ncol(x))) colnames(y) = colnames(x) rownames(y) = "col.number" return(y) } data = read.xlsx2(path, 1) coln(data) x = 3...
asked by 04.09.2015 / 19:30
2
answers

How to read data with variables in rows, in RStudio?

I'm starting with the R language in Rstudio. I am an advanced user of MATLAB but with difficulties in R. My question is: I have a worksheet where each row is a variable and each column is an observation in the time series. I would like to kno...
asked by 16.01.2016 / 16:30