Questions tagged as 'r'

1
answer

How to generate colored labels in comparison.cloud?

Below is an example of the code to generate the cloud : comparison.cloud(tdm, random.order=FALSE, colors = c("tomato", "wheat", "lightblue","lightgreen")) The words are easily colored with the above command but the labels...
asked by 14.08.2014 / 19:08
1
answer

Edit nls or nlsLM function for waste calculation

I need to set a nonlinear function through the routines nls  or nlsLM , however, my data generate heteroscedastic residues when calculated with these routines, which does not allow me to adjust directly through the sum of the square...
asked by 10.02.2015 / 16:43
1
answer

How to use the xmlSApply with separator?

I used xmlSApply and would like to get the result with a separator but could not apply. Below is an example so that they can reproduce: library(XML) fileUrl <- "http://www.w3schools.com/xml/simple.xml" doc <- xmlTreeParse(fileU...
asked by 20.10.2014 / 16:26
1
answer

Return a Matrix that has all possible column multiplications of another Matrix (R)

Be a Matrix: bb=replicate(3, rnorm(3)) [,1] [,2] [,3] [1,] 0.5556358 1.6611142 0.2374830 [2,] -0.6672456 -0.5038430 0.9814712 [3,] -0.1391022 -1.2072500 -0.6219965 How can I return a second array with all possibl...
asked by 17.07.2014 / 14:43
0
answers

Error fetching Central Bank report

The functions to get the Focus Report Central Bank Expectations are the following error: Error in curl::curl_fetch_memory(url, handle = handle) : Failure when receiving data from the peer" Example of Cran's own pdf: library(rbcb) i...
asked by 18.07.2018 / 15:30
0
answers

Simultaneous threads (parallel processing) in R and serialized writing in SQLite

Hello everyone. I'm trying to develop a code that makes it possible to parser HTML files using the R language and, consecutively, write the extracted HTML data to the SQLite database in a serialized way. In order to perform parallel processin...
asked by 21.10.2018 / 21:22
0
answers

Doubts about discriminant analysis in R

I am trying to reproduce the accounts of example 5 of this pdf on discriminant analysis. When doing the accounts without using any packages, I get the same results of the file, as per the code below. However, when using the MASS package...
asked by 01.09.2018 / 22:41
1
answer

How to loop in R and save the results of a table of contents to a vector

I asked a previous question in this forum ( Randomly choosing rows in an array in R ) where you needed to randomly choose p rows (p < m), without replacement, from that array. Thus creating a matrix p x n with which it was possible to perform...
asked by 17.04.2018 / 18:37
0
answers

How to see residue chart in R? [closed]

These are the commands given, basically: library(psych) library(readxl) library(minqa) library(car) COMDINHEIRO_UFESpro_capm <- read_excel("COMDINHEIRO_UFESpro_capm.xlsx") View(COMDINHEIRO_UFESpro_capm) setwd("C:/Users/Rodolfo Fabriz.ESCRAV...
asked by 20.03.2018 / 21:14
1
answer

Problem with encoding in the folder of a file

I changed the computer today in the service and my codes stopped working, giving encoding error in the files folder: > setwd("I:/AGG/01. DIGEP/Relatórios Gerenciais/Edição/2018-08-17") > getwd() [1] "I:/AGG/01. DIGEP/Relatórios Gerenciai...
asked by 20.08.2018 / 22:55