add Value (like the date) in pdf("Plot.pdf") e.g. => 2020-07-06 Plot.pdf

Hey,

is there a way to add the Date to the name of the .pdf?
Date could be from Global Enviroment or from actual date (PC or www).

Would be very helpful!

Best regards

use paste() or paste0()

Hey nirgrahamuk,

I am quite a noob with R-Studio.

By now it looks like:
plot_p<- paste(date, "Plot.pdf", sep = " ")
pdf(plot-p,width=10,height=7)
ggarrange(Plot,
ncol = 1, nrow = 1)

dev.off()

and it works!

THX

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