Re: [R] Loop With Dates

2019-09-20 Thread Ana PGG
Hi Phillip, This can be done in several ways as most things in programming. Here is one posible solution: dates <- c("2018-03-29", "2018-03-29", "2018-03-29", "2018-03-30", "2018-03-30", "2018-03-30", "2018-03-31", "2018-03-31", "2018-03-31") dates <- as.data.frame(as.Dat

Re: [R] Not the same length

2019-09-18 Thread Ana PGG
Dear Varin Sacha, My guess to try to help you is the following: I think you may want to change this: y_obs <- rnorm(n*0.9, y_model, 0.1) + rnorm(n*0.1, y_model, 0.5) for: y_obs <- c( rnorm(n*0.9, y_model, 0.1), rnorm(n*0.1, y_model, 0.5) ) then y_obs: > length(y_obs) [1] 2000 De: varin sacha