Guest User

Untitled

a guest
May 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. data.frame(product_name = c("A", "B", "B", NA), product_code = c(NA, 1, 2, 1))
  2. # product_name product_code
  3. # A NA
  4. # B 1
  5. # B 2
  6. # <NA> 1
  7.  
  8. data.frame(product_name = c(rep(LETTERS, 2), rep(NA, 48)),
  9. product_code = c(rep(NA, 10), sample(1:80, 90, replace = TRUE)))
Add Comment
Please, Sign In to add comment