-
I have a column with in the following format
but want
ie removing everything after the last How can I do this in tidyverse? |
Beta Was this translation helpful? Give feedback.
Answered by
sr320
Apr 14, 2022
Replies: 2 comments 5 replies
-
# creates three column data frame
df <- read.csv(file = "your-file.txt", sep = ".")
# adds new column with tailing junk removed
df$concatenated <- paste(df$V1, df$V2, sep = ".") |
Beta Was this translation helpful? Give feedback.
3 replies
-
🤦♂️ I teach this.. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sr320
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🤦♂️ I teach this..
separate
andunite
will do the trick. will post code here once raven is back