Questions tagged as 'r'

0
answers

How to parallelize the .call function

I need to do a mount from multiple rasters to a single raster . Both the raster::merge and raster::mosaic functions work well in this situation, however I need to make a do.call to call the function to mount the...
asked by 18.01.2017 / 14:47
0
answers

Error in '[.simple_triplet_matrix' (myTdm, c (names (termFrequency2 [i])),: Repeated indices currently not allowed

I have the following code in R, it worked in version 3.0.2, but in the upper ones it shows the error    Error in [.simple_triplet_matrix (myTdm, c (names (termFrequency2 [i])),   : Repeated indices currently not allowed. myTdm <-...
asked by 10.07.2016 / 20:54
1
answer

How to ignore links that do not fit the established conditions and continue with scraping?

I'd like to know how to ignore links that do not fit the conditions set forth in title, date_time, and text; thus managing to continue scraping the site. The error that occurs when a link does not have or does not follow the conditions: "Erro...
asked by 01.09.2016 / 01:57
1
answer

R - match and add string

n <- c("alberto queiroz souza","bernardo josé silva","josé césar pereira","alberto, q-s.","alberto, queiroz souza","alberto, q. s.","alberto, q c", "bernardo, j. s.", "bernardo, j. silva", "josé, c. p.", "josé, c. pereira") I have to find e...
asked by 16.08.2016 / 22:52
2
answers

Using the GREP Function

Hello, I have a .csv file with the zip code in the middle of the address, in square brackets. In some cases there is no zip, but there is always the [] set, possibly empty, for example: RUA ESTEVAM DE ARAÚJO DE ALMEIDA 521 L 17 Q. 15 [23028...
asked by 17.12.2015 / 19:20
0
answers

Import from txt, change content and download content in R [closed]

Hi! I'm a beginner in R programming, I've read quite a lot of confusing with libraries and everything and I still do not know what their limitations are, so I ask you if it's possible with R to do the following:    I put in file * txt list...
asked by 11.12.2015 / 21:37
2
answers

Download CSV file using R

Good afternoon everyone! How do I download (read) a CSV file from a link like this: link Thank you!     
asked by 24.01.2018 / 13:12
1
answer

Neural Networks with the package "AMORE" - R

Ladies and gentlemen, I'm trying to use the AMORE package of R to run a Neural Network with new activation functions, but I could not understand the manual very well and consequently I was not able to implement the new function. Anyway, the func...
asked by 12.12.2014 / 23:51
2
answers

Get coefficients "a" and "b" from the Linear Regression Model in R

In a Simple Linear Regression model - y = a + bx - we have the coefficient of angularity "b" and the intercept "a". I would like to know how do I get these coefficients in R?     
asked by 12.07.2017 / 15:47
3
answers

How to create groups of 3 words in random size text?

With the code: frase <- data.frame(id = c(1,2), texto = c("palavra1 palavra2 palavra3 palavra4 palavra5", "palavra6 palavra7 palavra8 palavra9 palavra10 palavra11 "), stringsAsFac...
asked by 23.11.2017 / 21:53