« first day (1909 days earlier)      last day (1375 days later) » 

6:28 AM
Good morning all
 
 
1 hour later…
7:36 AM
hello .*
 
 
3 hours later…
11:19 AM
*how
 
 
2 hours later…
1:34 PM
@Sotos or df[!complete.cases(df),]
 
@Jaap better! :)
 
:-)
 
 
1 hour later…
2:36 PM
@Jaap Nice one. I had no idea about the make.row.names
That is from do.call(rbind... right?
 
3:14 PM
@Sotos it's from rbind.data.frame
rbind.data.frame is the data.frame-method of rbind
this makes it probably a bit clearer:
do.call(rbind, c(lapply(split(df_1, df_1$v1), function(i) rbind(data.frame(v1 = i$v1[1], v2 = i$v1[1]), i)),
                 make.row.names = FALSE)
        )
you can use c to combine parameters of the function you give to do.call with the data that is the input of the function
 

« first day (1909 days earlier)      last day (1375 days later) »