Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The data provided on SUNLearn is in a folder named Scripts . Multiple programming scripts were downloaded from GitHub. However, as life would have it

The data provided on SUNLearn is in a folder named Scripts . Multiple programming scripts were
downloaded from GitHub. However, as life would have it, there are some other files in the folder that do not
contain the target coding languages we are looking for.
As a first step, you need to develop a function that stores the names of all the files inside the folder
Scripts in a list. Create a function named fGet_files with a single argument file_folder . The
argument file_folder is used to specify the name of the folder that contains the data i.e. "Scripts" .
The function fGet_files should return a list where:
the list only includes R and Python files. R files have the extension .r or .R , while Python
files end with .py
the length of the list should be equal to the total number of R and Python files inside the
Scripts folder
each element of the list should store the file name as a string.
Finally, assign an object named list_files to the output from the fGet_files function.
Provide your answer in the code chunk get_files : I would like to clarify , the work done on my data science course cover dplyr, Lubridate, stringR, ggplot2, Tidyverse, and tidy models the question I ask should be explained and broken down using functions and packages from these ecosystem. The code must also pass this test if (length(fGet_files("Scripts"))!=549)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago