I need help removing an entire row if one specific row begins with a certain value. Example: order numbers (character value) begin with either 1 or 4 and I need to remove all of the order numbers that begin with 1. But, I need to remove the entire row of information, not just the values that begin with 1 in that column .
order number Location Date
1234- x 1/29
4567- y 1/29
4910- z 1/29
I want the output to be :
order number Location Date
4567- y 1/29
4910- z 1/29
This worked perfectly thank you! I was able to pass in the date frame without having to change it: df <- df %>% filter(str_sub(string = df$ordernumber, start = 1, end = 1) != 1)