;

Sample String Question

Sample question only. The task is similar to what will be evaluated during the exam.

Task

Imagine you have a string that represents an individual’s email address.

email <- ‘[email protected]

Complete the function email_domain so that it returns the email address domain (everything after the @ symbol). In the example above, it should return ‘gmail.com’.

Function Start

email_domain <- function( email ) {

# TO DO

}

Function Output

The email domain of the email address

gmail.com

    Ready to get started evaluating your applicants’ skills?