Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ruleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started