Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fruit <- c(rep("Apple",3),rep("Orange",5))
- Bug <- c("worm","spider","spider","worm","worm","worm","worm","spider")
- df <- data.frame(Fruit,Bug)
- df
- Fruit Bug
- 1 Apple worm
- 2 Apple spider
- 3 Apple spider
- 4 Orange worm
- 5 Orange worm
- 6 Orange worm
- 7 Orange worm
- 8 Orange spider
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement