
salutation(x)
salutation(x) <- value
first_name
, middle_name
, last_name
and suffix
for other accessors.
#Get a salutation
example_name <- "Mr Jim Jeffries"
salutation(example_name)
#Set a salutation
salutation(example_name) <- "Prof"
Run the code above in your browser using DataLab