Question: PLEASE SOLVE IN R PROGRAM LANGUAGE (1) Given a list of filenames, write a function to check which of the filenames have a given suffix.
PLEASE SOLVE IN R PROGRAM LANGUAGE

(1) Given a list of filenames, write a function to check which of the filenames have a given suffix. (2) Given a vector of arbitrary strings show how to count how many strings start with a letter followed by '"' and contain exactly one '@' and exactly one '., with the '@' somewhere to the left of ":' but with at least one character in-between. Eg. for c("a-777@xyz.pqr", "b777@xyz.pqr", "a-777@xy@z.pqr", "a-777@.pqr", "W-@xyz.pqr") the answer is 2 since only the first and the last string obey the rule
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
