I have several data frames that share the same column names. For example...
dataframe A with column a,b,c
dataframe B with column c,d,e
dataframe C with column a,b,c,d
I want to convert columns named 'b' and 'c' to character(if these columns exist in the table). Can I achieve this without repeating like this
A$b <-as.character(A$b)
A$c <-as.character(A$c)
B$b <-as.character(B$c)