Guest User

Untitled

a guest
Jun 24th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. numbers <- c(9, 23, 33, 91, 13, 7)
  2. players <- c("Ron Harper", "Michael Jordan", "Scottie Pippen", "Dennis Rodman", "Luc Longley", "Tony Kukoc")
  3. colleges <- c("Miami University", "University of North Carolina", "University of Central Arkansas", "Southeastern Oklahoma State University", "University of New Mexico", NA)
  4. df <- data.frame(number = numbers,
  5. player = players,
  6. college = colleges,
  7. stringsAsFactors = FALSE) # 避免處理 factor 型別
  8. !(is.na(df$college))
  9. View(df[!(is.na(df$college)), ])
Add Comment
Please, Sign In to add comment