Questions tagged as 'r'

1
answer

How to send data frames data in code questions in optimized R?

Edited - As pointed out in Marcos Moraes' comment, I tried to reinvent the wheel of an available resource in the base layer of R, since dput is capable of producing the same effect. Our failure. :( The central question of my question still rema...
asked by 29.10.2016 / 13:43
1
answer

Access objects of class formula

How do I access the objects in a formula, separately? For example: e <- new.env() a <- list() b <- list() a[[1]] <- matrix(rnorm(20), 2) b[[1]] <- matrix(rnorm(20), 2) e$a <- a e$b <- b f <- formula(a~b, env = e) teste...
asked by 02.07.2016 / 04:15
1
answer

Problem running application in R

When you try to run the script below: Area="C:\Users\user\Desktop\shape.shp" Pasta="" library(raster) library(rgdal) library(rgeos) library(maptools) long2UTM <- function(long) {(floor((long + 180)/6) %% 60) + 1} calc_bpt = function(pols...
asked by 28.07.2016 / 23:26
1
answer

Score, Hessian and Newton Raphson function of the exponential distribution in R

How to find the scoring vector and the Hessian array in R to apply the Newton Raphson method in the code below: rm(list=ls()) cat("4") #Função para simular variáveis aleatórias de uma modelo de regressão exponencial. simula.exp...
asked by 22.04.2016 / 19:12
1
answer

Geometric figure with data in R

I have 3 points and would like to form a triangle with them, then overlap another triangle with 3 more points and so on. I tried this, but I can not make the triangle and the limits of the following graphs are ignored. a = matrix(c(rnorm(6)...
asked by 29.03.2016 / 08:49
0
answers

subtraction in Diff R software

My level in R is beginner if you can help me with a problem I'll be grateful. I have a math function that generates a vector, and I have to subtract between the value of the second column minus the value of the first column, between the value...
asked by 05.02.2016 / 17:57
1
answer

Call functions in C from R

I need to optimize some functions that are in the C language, but using the genetic algorithm packages in R. Is there any way to call C functions in R? In matlab I know there is this possibility through mex . Does not R have somethin...
asked by 01.07.2015 / 14:16
0
answers

Error initializing Rstudio

When I start Rstudio I find the following "ERROR" , related to the "manipulate" and "rstudio" packages: Error installing package: * installing *source* package 'rstudio' ... Aviso em file(file, ifelse(append, "a", "w")) :...
asked by 03.12.2015 / 14:53
0
answers

Association between variables: database [closed]

I have the following database: id Acidente id_Vitima Sexo_Vitima Faixa_etaria Gravidade_acidente 1 1 1 7 2 2 1 1 6 1 2...
asked by 17.04.2015 / 00:34
1
answer

how to transform a variable factor into numeric in R? [duplicate]

Good morning I'm importing a database from the txt format and the values come in factor but I want to numeric. What do I do?     
asked by 27.02.2016 / 14:37