subseting a Tibble in R based on part of a column's string [closed]

I have a Tibble consisting of several thousand rows. Column A consists of a string of character. I wish to create a second tibble consisting of all rows where the final three characters of the string in column A is " pr". Can anyone help me, please? Many thanks.

Mar 25, 2025 - 04:43
 0
subseting a Tibble in R based on part of a column's string [closed]

I have a Tibble consisting of several thousand rows. Column A consists of a string of character. I wish to create a second tibble consisting of all rows where the final three characters of the string in column A is " pr". Can anyone help me, please? Many thanks.