IT-Academy

Mnozinove funkcie

Nov 8th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.32 KB | None | 0 0
  1. (x <- c(sort(sample(1:20, 9)), NA));
  2. (y <- c(sort(sample(3:23, 7)), NA));
  3. vystupZjednotenie = union(x, y)
  4. vystupPrienik = intersect(x, y)
  5. vystupZRozdiel = setdiff(x, y)
  6. vystupZRozdiel2 = setdiff(y, x)
  7. vystupZPorovnanie =setequal(x, y)
  8.  
  9. x;y;vystupZjednotenie;vystupPrienik;vystupZRozdiel;vystupZRozdiel2;vystupZPorovnanie;
Advertisement
Add Comment
Please, Sign In to add comment