Vector to String

I have a table and want to pack a error message from the values in the table.
I like to have a string: "No data submission in 12/2021, 1/2022, 3/2022, 4/2022, 5/2022"
Is there a elegant way to do it? Thank you in advance

zerodata <- data.frame(
stringsAsFactors = FALSE,
datec = c("12/2021", "1/2022", "3/2022", "4/2022", "5/2022")

paste0("No data submission in ",paste0(zerodata$datec,collapse=","))
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.