Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ```
  2. Line <- c(seq(from = 1, length.out = 9, by = 421), 4211)
  3. Text <- c(rep(string, length.out = 9), "Plate 3")
  4.  
  5. df <- data.frame(Line = Line,
  6. Text = Text )
  7. ```
  8.  
  9. ```
  10.  
  11. my_df <- data.frame(Line = c(2527, 2948, 3369),
  12. Text = c("Plate 1", "Plate 2", "Plate 3"))
  13. ```
  14.  
  15. ```
  16. df %>% group_by(Text) %>% slice(unique(last(n())))
  17. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement