Posts by Pedro Brom • 36 points
1 post
-
2
votes3
answers1398
viewsA: in R, create a vector rounding function so that the coordinates vanish 100
I believe that’s what you’re looking for: x1=32.5 x2=43.2 if (x1-trunc(x1)>=.5) {y1=trunc(x1)+1} else y1=trunc(x1) if (x2-trunc(x2)>=.5) {y2=trunc(x2)+1} else y2=trunc(x2) y3=100-(y1+y2)…
ranswered Pedro Brom 36