I have a dataframe in which the column names begin with certain characters:
> colnames(df) [1] \"p.crossfencing\" \"p.livestockdrinking\" \"v.livestocktrai
Are you looking for df[,grep("^v.",names(df))]?
df[,grep("^v.",names(df))]