# Text manipulation

Many real life databases were not created for scientific or analytic purposes. In other words, they could be dirty/messy.

This page is especially useful if you need to extract or work with string/text variables.

df$concatVar <- paste(df$var1, df$var2, sep="")  I didn’t tested it, but I suppose this code allows to concatenate two (or more?) variables in different data frames (df3$concatVar <- paste(df1$var1, df2$var2, sep="")).