Questions tagged as 'r'

1
answer

Multiple panel data imputation in R

I have panel data in the following format: estado ano var1 var2 var3 It turns out that variable 2 (var2) does not have data corresponding to one of the years. I tried multiple imputation with Amelia: out<-amelia(df,m=5,ts="ano",cs="...
asked by 11.07.2016 / 19:24
1
answer

Create new DF based on certain column text criteria

I have a DF in the following template, Data Coluna 1 Coluna 2 Coluna 3 12/01/2016 82 88 abc 06/02/2016 30 76 abd 15/03/2016 9 74 abc_abc|1234 11/01/2016 43 48 abc_ab...
asked by 09.05.2016 / 21:34
1
answer

What's new in R 3.3.3? [closed]

The R-core team released on 03/03/2017 at version 3.3.3 of R . Since then, some packages are launching messages like this:    package packagename was built under R version 3.3.3 What's new in R 3.3.3 ? Is it worth insta...
asked by 11.03.2017 / 23:43
1
answer

Convert numeric data into R

I imported a JSON table into the R and the dates are in Unix format. Example: data <- c(1436904192, 1490717463, 1491924165) How can I convert this entire column all at once to the date format with 14/7/15 20:03 ?     
asked by 01.05.2017 / 21:34
1
answer

Correlation between two dose-response curves R?

Would you like to know how to correlate the two dose response curves of the "drc" package? Example: ryegrass.m1 <- drm(rootl~conc, data = ryegrass, fct = LL.4()) ryegrass.m2 <- drm(rootl~conc, data = ryegrass, fct = LL.3()) cor (ryegr...
asked by 20.02.2018 / 01:51
1
answer

Similarity of elements in different vectors

I have two vectors: A <- c("RS", "DF", "CE") B <- c("Porto Alegre - RS", "Brasília - DF", "Fortaleza - CE", "Porto Alegre - RS", "Acre - AC", "Recife - PE") and a function: f <- function(a,b) { lista <- grep(a,b, fixed = FA...
asked by 20.01.2017 / 20:36
1
answer

What is the best way to do a descriptive analysis of birth dates in R?

I have in my data frame a column of birth dates that are in the English model, but I do not know how to analyze this descriptively nor what resources to use from R. Should I use a bar chart or a histogram? How would the R understand what date...
asked by 24.03.2016 / 18:12
1
answer

Error: The condition has length 1 and only the first element will be used

I am writing a code in R but it reports the following error:    In if ((BWGmax * (1 - exp (-K * (MCisimulate - Xm))))> WG) {: the   condition has length > 1 and only the first element will be used. Can you help me? BWGmax <- 30 K...
asked by 06.02.2016 / 14:45
1
answer

How to transform density scatter plot?

I'd like to know how to transform a scatter plot into a datum plot in the region, for example, where there are few dots, the region's color will be light, where there are many dots the color of the region will be darker. Thanks!     
asked by 05.02.2016 / 21:53
1
answer

How to convert data.frame to list?

I loaded my data using taxadados<-read.csv2("ComponentesPrincipaisTeste.csv",header=TRUE) TAXA Taxa.1 Taxa.2 Taxa.3 Taxa.4 Taxa.5 Taxa.6 Taxa.7 Taxa.8 09/04/2013 32.7188 8.8350 13.0662 9.0114 8.7003 8.9924 76.7003 9.254...
asked by 22.07.2015 / 23:57