I have a programme where I would like to do something slightly different if a certain df has already been created but the below won't work. Any suggestions? Also, would it be different for a matrix?
if (exists(df)) {
# do somthing
} else {
# do other thing
}