I have 3 column for first, middle, and last names in a dataframe. If I want to combine the 3 columns into 1 fullname column how do I do it? For example if I have
df$firstname <- c("Mike","Jake", "Bob")
df$middlename <- c("John", "Jay", "Peter")
df$lastname <- c("Turner", "Larson", "Simmons")
How do I get
> df$fullname
Mike John Turner
Jake Jay Larson
Bob Peter Simmons