Posts by morebru • 783 points
14 posts
-
2
votes1
answer340
viewsQ: Matlab to R translation with system(sprintf())
I am trying to translate the following Matlab code to R: clear all nsta = [1,2,3]; npx = [2,3,4,5]; npu = [2,3,4,5]; nmax = 2500; nome = 'MODEL1b'; system(sprintf('del %s.log',nome)); nfiles = 0;…
-
1
votes0
answers182
viewsQ: Web scraping on application websites in R
I would like to know some ideas to get the data from this link: http://reportarios.aneel.gov.br/_layouts/xlviewer.aspx?…
-
2
votes1
answer871
viewsQ: Area and Line Graph in R with x-Axis as String
I would like to make an area chart and insert another line chart overlaid. I’m not able to do this, because the x chart that I want to put are strings and it gets all wrong. The picture should look…
-
0
votes1
answer76
viewsQ: Web Scrapping with R, java or html?
How do I extract the data table from the following page:http://www.ons.org.br/resultados_operacao/boletim_semanal/2016_12_16/ena.htm…
-
5
votes2
answers172
viewsQ: Handle values of a data.frame
On the link https://1drv.ms/u/s! Alyjgc4yfdharhtsiuubju12gzho it is possible to find a dataset in csv on solar irradiation in Brazil. The column the_geom_4326 represents the longitudes and latitudes…
-
11
votes3
answers2014
viewsQ: Web scraping with R
I am trying to make a Web Scrapping of the following link: http://empresasdobrasil.com/empresas/alta-floresta-mt/ I want to access all categories and extract a data frame with the name of all…
-
5
votes1
answer241
viewsQ: Programmatically generate links and download content
I would like to know how I would collect data from a website. The site is http://www.ons.org.br/historico/energia_natural_afluente.aspx . There I have to download all the operational historical data…
-
1
votes0
answers205
viewsQ: Genetic Algorithms in Matlab
I need to optimize 30 functions in Matlab using Genetic Algorithms. The initial data are: Dimensão=10 Rodadas = 51 Número Máximo de avaliações(MaxFES)= Dimensão*10000 Espaço de Busca=[-100,100]…
-
13
votes1
answer678
viewsQ: Calling C functions from R
I need to optimize some functions that are in the C language, but using the packages of genetic algorithms in R. Is there any way to call C functions in R? In Matlab I know that there is this…
-
5
votes2
answers1265
viewsQ: Daily Time Series Decomposition
I have a time series of daily flow data. I am trying to decompose the ST to remove trends and seasonalities. But when I use the function decompose the seasonality chart appears a black blur. QHE.ts…
-
5
votes4
answers1852
viewsQ: Programmatically generate and download links
There is a database of the National Water Agency that can be accessed by Hydroweb. To download is just access: Hydrological Data > Historical Series and include the desired rain station code.…
-
5
votes1
answer880
viewsQ: Data manipulation with in-line dates for column
I have a database a little difficult to work with: The code variable is 141 different. What I wanted to do was create a data.frame that had code as a variable (header) and so had a sequence of days…
-
5
votes1
answer172
viewsQ: Rename a file with a vector value
I am using a loop to extract hundreds of data using unzip. However, I want to rename the files with the same name as the extracted file. I’m making the following code: zip_postos <-…
-
4
votes1
answer2623
viewsQ: Merge csv files into one
I have several csv data files that have a common column named "Data". If I read two files from this directory the reading is done in the correct way: > P1<-read.csv("02650019.csv", header =…