Re: [R] Script/function/procedure with loop

2016-07-11 Thread Luca Meyer
Thanks Sarah, The code works just fine. Luca 2016-07-11 22:43 GMT+02:00 Sarah Goslee : > Taking your question at face value, except for the factors in your > original data frame, you can output anything you'd like to text > onscreen using cat(). Output can also be saved to text files with > sin

Re: [R] Script/function/procedure with loop

2016-07-11 Thread Sarah Goslee
Taking your question at face value, except for the factors in your original data frame, you can output anything you'd like to text onscreen using cat(). Output can also be saved to text files with sink() or using batch files, etc and so forth. date <- c("07-jul-16","07-jul-16","07-jul-16","08-j

[R] Script/function/procedure with loop

2016-07-11 Thread Luca Meyer
Can anyone point me to an R script/function/procedure which, starting from the following sample data #sample data #NB: nrow(df) is variable date = c("07-jul-16","07-jul-16","07-jul-16","08-jul-16","08-jul-16","08-jul-16","09-jul-16","09-jul-16") varA = c("text A1","text A2","text A3","text A4","t