I am trying to get rid of the first three characters of a string variable only for the first 18 observations (rows). How can I do this? I tried the code below but got an error: Error in parse(text = x) : :1:3: unexpected symbol
condition <- substring(Attend$"sample_label", 3)
filter_(Attend,condition) %>% slice(1:18)