Questions tagged as 'r'

2
answers

How to make an array in R that its entries are equal to i * j? [closed]

I want a generic array 10x10 , that its entries are equal to i*j , where i is the column and j the line     
asked by 02.10.2015 / 19:10
2
answers

Rstudio. Colors in a BoxPlots Set

I created this very simple set of boxplots but wanted to improve it, namely coloring each one and eventually improving the code. Someone can help. I leave here the code I created. Thank you. > a<-c(0, 15, 10, 10) > b<-c(16,21,2,...
asked by 04.07.2018 / 19:58
2
answers

Arrange Results Kalman Filter in an Array

Simple question: With the code below I estimate Kalman Filter with an AR component (1). The goal is to exit in the k_fk vector. When I have only one vector is simple. But I need to run the same code for multiple vectors. These vectors...
asked by 18.08.2016 / 01:57
1
answer

How to create a column with specific conditions?

I have a database like this: cod ano MUNICIPIO pmat 1 110001 1998 ALTA FLORESTA D OESTE NA 2 110001 1999 ALTA FLORESTA D OESTE NA 3 110001 2000 ALTA FLORESTA D OESTE NA 4 110001 2001 ALTA FLORESTA D OESTE NA 5 1...
asked by 01.09.2018 / 17:51
1
answer

Value "less than" is removed in R

I have a df that contains negative times, for example: -1: -14: -56 I would like to take all the times that were less than 00:00:00 and put 00:00:00 instead. I'm currently doing a lot of work on replacing these objects: df041[,1:61][d...
asked by 24.10.2018 / 15:25
2
answers

Separate subsets of a base in R

I am having difficulty classifying get subsets of a given database. On a given line it has the experiment that indicates in which step those data belong, for example, the first line has the expression 1.2. DADOS DOS ÓRGÃOS/ENTIDADES (ETAPA 1)...
asked by 25.07.2018 / 17:08
1
answer

How do I describe an equation of the line of a glmm on a graph xy in the R?

Hello, I have data of age (X) and species richness per sample (y). I made a glmm and would like to know how to write the equation correctly in figure in R. Does anyone have any website / paper to indicate? Obg,     
asked by 15.02.2018 / 07:05
2
answers

Use of if and else

I have a problem and I can not resolve it. I am creating a function and at some point use if s and else . In the x argument of the function: develop < - function (x, temp, date) I will leave the option for the user to put 5 strings. So I d...
asked by 24.05.2018 / 22:25
1
answer

Example of Tidytext utility

Hj in a lecture from my university I saw a package that is called Tidytext ... I understood how it works, so I can not think of any utility of it. Could someone give me an example of how we would take advantage of it in problems everyday? Thanks...
asked by 24.05.2018 / 01:39
2
answers

How to exclude rows from a Data Frame in R based on the values of one of the columns?

I want to exclude rows that have a certain value in a column. Let's suppose I have a DF where the first column is an index with letters of the alphabet, but, I do not know the position, I want the lines with a vowel index to be removed as I d...
asked by 08.03.2018 / 22:30