strip(x, strip = " ")
The astronomy package: astro
.
require("astro")
x = " 'lee' "
strip(x, strip=" ")
#[1] "'lee'"
strip(x, strip=c(" ","'"))
#[1] "lee"
strip(x, strip=c("'"," "))
#[1] "'lee'"
Run the code above in your browser using DataLab