I want to do a column that is formatted to use for a mailing address and I can not get the newline/return carriage or <br/>
to work when making a new column.
name = c("John Smith", "Patty Smith", "Sam Smith")
address = c("111 Main St.", "222 Main St.", "555 C Street")
cityState = c("Portland, OR 97212", "Portland, OR 95212", "Portland, OR 99212")
df <- data.frame(name, address, cityState)
I want to create a column that formats the data in an address label: John Smith 111 Main st. Portland, OR 97212
Each new column: will have a return after each line: so it is always 3 lines. One line for each of the other 3 columns.
# example of what I am trying to do...
paste0(name, "return", address, "return", cityState). Everything I have tried does not work for making a newline.