[R] Needing help for excluding vector elements

2013-07-12 Thread Olivier Charansonney
Hello, R for Dummies. How can I exclude the first 1000 values of a vector (length 12000)? More generally all the values up to the ith? Thanks for your help, Dr Olivier Charansonney Cardiologue Centre Hospitalier Sud-Francilien, Corbeil-Essonnes, France [[alternative HTML

[R] Help with arrays

2014-05-29 Thread Olivier Charansonney
78.0 [2,] 13.24184 13.24184 13.24184 13.24184 13.24184 13.24184 13.24184 16.19418 15.47089 15.47089 > valinit<-max(W[2,]) > valinit [1] 16.19418 How to obtain ‘119’ Thanks, Dr Olivier Charansonney Cardiologue Centre Hospitalier Sud-Francilien, Corbeil-Essonnes, Franc

[R] naming files or lists

2014-03-17 Thread Olivier Charansonney
Hello, I would like to name files (.txt, .pdf or lists (or dataframes) with names composed from subjects' IDs, dates, and times e.g. 003DE, 03 17 2014 and 16:02:30 gives a file named 003DE-031714-160230.txt. How can I do that? Thanks for your help. [[alternative HTML version deleted