Questions tagged as 'r'

1
answer

Corrplot package

How can I add significance to the correlation without overlap between the symbol (*) and the correlation value ?? So, stay as in the picture     
asked by 08.10.2018 / 23:34
2
answers

Add all Environment elements to a list automatically

Suppose my Environment contains the following objects (dummy names): abcd # numeric efgh # dataframe ijkl # matrix mnop # character My goal : Put them in a list automatically, without typing: mylist<-list(abcd,efgh,ijkl,mnop) Is th...
asked by 09.10.2018 / 16:03
1
answer

How to run an R script from the WIndows command line?

I have a test.r file in the folder: C: \ Users \ Documents \ R And I already added the R in the windows PATH: C: \ Program Files \ R \ R-3.0.2 \ bin When in cmd I try the command R CMD teste.R Windows does not know which program to use...
asked by 22.02.2014 / 14:37
1
answer

Presenting Result of Linear Regression Tables

This is the matrix with the results of my regression models: linear_models=structure(c(-0.9051, 2.0445, 0.0075, 0, -3.9959, 7.4458, 0, 0, -0.0666, 0.4933, 0.8627, 0.4268), .Dim = c(2L, 6L), .Dimnames = list( c("(Intercept)", "complete.ini...
asked by 31.08.2018 / 21:53
1
answer

R code optimization

I wonder if anyone has any suggestions so I can optimize the code below. The idea I took from this site . You have a permutation of n cards, for example [2, 4, 1, 3] (where 2 is the top card). On each round, the person must revert to the...
asked by 14.09.2018 / 18:12
1
answer

How to insert data for graphing in ggplot

I want to make a line graph with ggplot, but this message appears:    Error: Do not know how to add geom_point to a plot Here's the template I'm doing: a<-c(4.9, 4.4, 4.2, 3.9, 3.7, 3.5, 3.1, 3, 2.9, 3, 2.8, 2.7, 2.6, 2.5) b<-c(...
asked by 26.10.2014 / 21:47
1
answer

Create one column indexed to another in R

Good afternoon! I'm new to R and I have a database where I need to include a column, though the values in this column need to be tied to the values in another column. In this case, I have the ano (2006: 2016) column and need to crea...
asked by 14.03.2018 / 19:50
1
answer

How to loop to generate graphics in R?

Consider the following Data Frame: ITENS <-c("A","B","C","D","E") Q.1 <-c(10,20,10,40,10) Q.2 <-c(5,25,0,50,10) Q.3 <-c(15,20,5,40,10) Q.4 <-c(15,30,5,30,5) Q.5 <-c(20,25,5,20,15) Q.6 <-c(10,20,10,40,10) df <- data.fram...
asked by 10.05.2018 / 02:37
1
answer

Calculate difference between dates in days in R

How do I calculate the difference between dates and have the result in days? I have a column in my table called input with data similar to the ones shown below: Entry    2017-01-27   2017-06-01   2017-10-05   2017-09-27   2017-08-31...
asked by 31.01.2018 / 07:54
1
answer

How to make a prediction interval for a restricted group?

Considering the model with only these two explanatory variables, indicate a 95% prediction interval for an individual in the first quartile (1st Qu) of X1 and the second category of X2 . I know the generic code, but I can not restrict to the...
asked by 05.01.2019 / 14:11