I am looking to use the tm package to make changes to the columns of a dataframe i.e. I would like to use the content_transformer, removePunctuation etc. functions to be applied on the columns of a dataframe.
For example using the below dataframe
df <- data.frame(a=c("I love TEXTMINING","Here I GO, Again!!"))
I would like to us the content_transformer to make the df$a into lower cases and removePunctuation to remove the punctuation such that the output would look like the below
a
1 i love textmining
2 here i go again
Is there a way to perform the above specifically using the functions in the tm package?