Questions tagged as 'r'

0
answers

What is the best way to select and organize R data?

I have a project that involves performing non-linear regressions for multiple sets of data from different sources. After doing all these operations, I usually save the results in .txt files, so that I do not have to go back to the same workspace...
asked by 16.08.2018 / 18:37
2
answers

how to implement the jaccknife method in the case where two terms are removed (in R)

I created the following code to calculate the variance using the jackknife method.  However, instead of removing one term at a time, I now need to remove it by 2 in 2.  I know it's something basic, but I could not think how to do it, could anyon...
asked by 08.04.2018 / 21:43
1
answer

Run an .R file inside another code in R

I have a code that reads XML files that are in a corporate network folder, and generates a .RData file. I have other codes that generate different reports for the different sectors, based on RData . My problem is: these XML files ar...
asked by 11.10.2018 / 15:47
0
answers

Sunrise and sunset times in R

I'm trying to create a script that shows the sunrise and sunset with the latitudes set, but the time is not compatible. NOTE: This latitude corresponds to São Paulo time. library(maptools) library(dplyr) dateInt <- c("2017-10-11","2017-10...
asked by 10.11.2017 / 20:13
0
answers

Error in package installation

I started work using R , and during the installation of some packages such as Devtools , the following error message appears: * installing *source* package 'devtools' ... ** package 'devtools' successfully unpacked and MD5 sums checked Warnin...
asked by 10.11.2017 / 03:20
0
answers

Scraping with R - xpathSApply returning a list of 0

I'm learning to read data in XML in R. I would like to extract the information of the Brazilian football (name of the championship, game principal, result, etc.) of this site: link with the XML package. My code looks like this: [1] fileUr...
asked by 02.11.2017 / 13:01
0
answers

Problems loading the Swirl package

I was able to install the swirl package, but when I give the library (swirl) command, the following error appears: Error: package or namespace load failed for ‘swirl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = v...
asked by 18.09.2017 / 20:54
0
answers

Calculate Weibull distribution parameters from a wind velocity histogram using Rstudio

I can calculate the shape and scale parameters of the weibull distribution, where I enter the velocities of the winds and using the fitdistrplus () function of the fitdistrplus package, I get the shape and scale factors. Now, given any histogram...
asked by 17.07.2017 / 20:12
1
answer

Is it possible to convert this for loop to a function of the apply family?

df_loop <- data.frame(data1, data2, data3, 0) for (i in 4:nrow(df_loop[1])) { tmp_1 = df_loop[i,1] tmp_2 = df_loop[i,2] tmp_2_lag3 = df_loop[i-3,2] tmp_3 = df_loop[i,3] if (!is.na(tmp_2_lag3)) { if((tmp_1 >...
asked by 06.06.2017 / 09:23
0
answers

Problems connecting to the Bing Ads API

I am creating a connection to the Bing Ads API via R, since there is no library for it and I need to get all the analytics data for my project. But I am not able to make this connection via POSTMAN to perform tests. Whenever I try to do i...
asked by 03.07.2017 / 20:22