I have three sentences:
x<-c("Hello @Ada how are you?","@Jack the weather is good", "Jack the weather is good")
I would like to delete the terms that begin with @ but iff they are at the beginning of the sentence. For example, the desired result is:
"Hello @Ada how are you?" "the weather is good" "Jack the weather is good"
Wih my code, instead, I obtained a different result:
>gsub("^@", "", x)
[1] "Hello @Ada how are you?" "Jack the weather is good" "Jack the weather is good"