I have a SpatialLinesDataFrame in R that is a road network dataset. The names of certain roads begin with the string "NH" to indicate that these are national highways. E.g., NH44, NH75 etc. Roads that are not national highways have names beginning with other strings.
I want to subset the roads dataset to include just roads that are national highways. Is there any way to do this in R?