Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. > df2 <- data.frame("StudentId" = c(1,1,1,2,2,3,3), "Subject" = c("Maths", "Maths", "English","Maths", "English", "Science", "Science"), "Score" = c(100,90,80,70, 60,20,10))
  2. > df2
  3. StudentId Subject Score
  4. 1 1 Maths 100
  5. 2 1 Maths 90
  6. 3 1 English 80
  7. 4 2 Maths 70
  8. 5 2 English 60
  9. 6 3 Science 20
  10. 7 3 Science 10
  11.  
  12. StudentId Subject Score
  13. 1 1 Maths 100
  14. 3 1 English 80
  15. 4 2 Maths 70
  16. 5 2 English 60
  17. 6 3 Science 20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement