Re: [R] How to get rid of my for loop

2014-09-29 Thread ONKELINX, Thierry
. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Barry King Verzonden: maandag 29 september 2014 11:59 Aan: r-help@r-project.org Onderwerp: [R] How to get rid of my for loop # Here are sample data, sample vectors,

[R] How to get rid of my for loop

2014-09-29 Thread Barry King
# Here are sample data, sample vectors, and a for loop # that I am using now. I wish to get rid of the for loop # and use functions and one of the apply functions to # perform the work without needing a many iteration for loop. A_01 <- 1:5 A_02 <- 6:10 A_03 <- 11:15 A_04 <- 16:20 B_01 <- 101:105 B