Posts by Lucas • 75 points
2 posts
-
3
votes2
answers1241
viewsQ: How to do sequence in R?
I need to do this sequence in a repeating structure to use with a larger N, but I’m not getting it done, does anyone have any idea how to do this? n=8 names <- c (seq(1 , n), seq(2,n+1 ), seq…
-
4
votes1
answer332
viewsQ: Repeating structure in R
I’m not getting a logic to do the following problem in repetition structure: I have an A vector with 1 element and another B with 30 elements. I wanted to subtract vector A from each element of B so…