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

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 24, 2025 - 17:53
 0
subseting a Tibble in R based on part of a column's string

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.