Guest User

Untitled

a guest
Mar 25th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.14 KB | None | 0 0
  1. tt <- textConnection("
  2. x,y
  3. ,1
  4. ?,2
  5. -,3
  6. NA,4")
  7. read.csv(tt, na.strings = c("", "?", "-", "NA"))
  8. #   x y
  9. #1 NA 1
  10. #2 NA 2
  11. #3 NA 3
  12. #4 NA 4
Advertisement
Add Comment
Please, Sign In to add comment