Questions tagged as 'r'

1
answer

Rmarkdown Aggregate error

Hello, I am trying to create reports by Rmarkdown, with the read_chunk() method it is possible to plot in doc using script.r externalization. In doing this integration, with only 1 script worked, when I put the second, an error occurred i...
asked by 16.03.2018 / 15:48
0
answers

Errors R time series - Decompose and Forecast

I'm working on a time series that was working perfectly with XREG yesterday; I did not understand what happened, I must have erased something and I can not understand what the problem is. No decomposition also gives an error: Error in de...
asked by 18.03.2018 / 00:24
1
answer

Boxplot of ggplot2 giving error (does not make the boxes, only a points with a scratches), how to fix? OBS: I did other graphics and it worked, only this one packed

boxef <- ggplot (effectsize, aes(subordemfam, varbiom.efs, colour = classe2)) boxef + geom_point() + geom_boxplot() + xlab("Táxon") + ylab("Effect Size na Variação de Biomassa") + theme_bw() + geom_hline (yintercept = 0) + theme(plo...
asked by 15.03.2018 / 15:21
1
answer

Create column in R

I have a column with 3 types of information: numeric, percentage, and character. I would like to create two new columns from this, one with only the character information being the remaining "NA" cells and another column with only the numeric in...
asked by 21.03.2018 / 18:48
0
answers

No such file or directory

Good afternoon guys, I do a 1 finance class in my college that needs the R to do the activities. My computer gives a No such file or directory error. My teachers have already tried to fix it and they have not been able to and the recommendation...
asked by 22.03.2018 / 17:32
0
answers

How do I use the dea.dual function in the R Benchmarking package

Good morning. I am benchmarking the frontiers of the Brazilian electricity sector and Aneel uses the DEA model with restrictions on weights. I'm using the Benchmarking package to do the DEA. However, I can not use the right function ofa.dual tha...
asked by 01.03.2018 / 22:00
1
answer

Find the minimum value with the longest distance between them

I have the following dataframe TrechoFim . Since TrechoFim$Dist is the distance from the X position, Y to the track axis. And each record (line) is separated every 1 meter. X Y Dist 2185 2009.418 509.0062...
asked by 27.02.2018 / 15:18
0
answers

How can I incorporate random effects into the formula of generalized additive models (GAM)?

I want to test the effects of demographic rates (recruitment and mortality) on plant biomass / AB over time. Since the relationship between these variables is not linear, I'm trying to use GAM models instead of GLMM. But, I do not know how to in...
asked by 19.02.2018 / 16:10
0
answers

Download Flow Data on the Hydroweb using a R routine

I'm trying to use the @ean code to download streaming data, but I can not. Even editing the routine. To download stations listed by @morebru the code works, but for the stations I'm trying does not work. The stations are: estacoes <- c(...
asked by 19.02.2018 / 13:07
0
answers

How do I solve this problem in seasplot?

Making this code: library(BETS) library(TStools) selic <- BETS.get(4189, from = '2000/01/01', to= '2016/02/01',freq=12) seasplot(selic,outplot = 3,trend = F) Give this result Error in if (diff(range(colSums(ynt))) &...
asked by 11.02.2018 / 01:51