[R] Needing help for excluding vector elements
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 version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Help with arrays
Hello, I would like to extract the value in row 1 corresponding to the maximum in row 2 Array W [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9][,10] [1,] 651.0 651.0 651.0 651.0 651.0 651.0 651.0 119.0 78.0 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, France Centre Médical Saint Lazare, Paris , France Hôpital Lariboisière, Paris, France [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] naming files or lists
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]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.