Questions tagged as 'r'

1
answer

How to create random invertible arrays in R

One of the ways to find the estimator using the ordinary least squares method is by generating random matrices, given by the formula: B = (X’ X)^-1 X’Y Where Y = a+bx+cw+u , being x and w random vectors of size 100...
asked by 23.03.2014 / 15:46
2
answers

How to create inverse matrix in R

In order to get the inverse of an array, we can use different commands of R solve() , ginv() , etc. However, when trying to use these commands, an error occurs where we think the problem must be because there are negative values in t...
asked by 23.03.2014 / 17:40
1
answer

R-Studio - Error installing package

I try to install the package from .zip , but the following message appears:    R Tools for Biologists (RT4Bio)       Funtions:   rdiagnostic: Make a diagnostic residuals plot.   plotbar: Use barplot2 from gregmisc package instead.  ...
asked by 04.12.2015 / 15:09
0
answers

Problems accessing a site via RStudio

Problems connecting to a particular site via RStudio url <- "https://www.jusbrasil.com.br/diarios/busca?q=%22licen%C3%A7a+sem+vencimentos%22&idtopico=T10001849&o=data" links <- read_html(url) %>% html_nodes('.DocumentSnippet'...
asked by 29.05.2018 / 16:52
1
answer

Trace lines from a specific point and angle

I'm looking for a way to draw a line from a point and an angle (azimuth) and then build a polygon with the intersection of these lines. base <- data_frame( id = c(1, 2, 3), x = c(10, 5, 3), y = c(5, 10, 4), azimute = c(330...
asked by 29.12.2017 / 13:32
1
answer

Problems with R interpreter

I installed R4Intellji and selected a program in R. But when I ask to run, the program gives the following error: The R interpreter is not specified Could anyone help me?     
asked by 27.12.2016 / 17:28
0
answers

Reading in blocks does not advance with read.csv. How to correct? [closed]

I'm trying to make the following code to read a giant file that does not fit into memory. library(dplyr) arq_grande <- file("dados2014.csv", "r") tam_chunk <- 1e2 df1 <- read.csv(arq_grande, nrows = 10, header = T, sep = ",", dec = "...
asked by 16.02.2016 / 23:59
0
answers

In R, correct typing errors followed by a handling of a database

This problem is quite complex and needs two stages. The first stage is to correct typos of a database (perhaps a probabilistic solution). The second stage is to sort this database after this fix. This second stage requires a sequence of dplyr pa...
asked by 20.04.2016 / 02:20
1
answer

Use regression residuals to calculate another regression (within the function) in R [closed]

I'm using a function to calculate regressions. I need the residuals of a specific relation to relate to another variable. But I need the residuals to be calculated according to facet grid. So, for each of the divisions the waste will be speci...
asked by 11.07.2015 / 16:37
2
answers

Subtracting arrays with different arguments

Can we subtract two arrays (or two vectors) that were written with different commands? Example: x<-array(1:4,c(4,1,1)) y<-cbind(c(1:4)) x-y "Error> non-conformable objects" Does this mean that both vectors have to use the same c...
asked by 23.03.2014 / 20:09