Search Header Logo

MD847202 Fundamental of R Programming

Authored by Arporn Wangwiwatsin

Science

University

MD847202 Fundamental of R Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the `library()` command in R?

It is used to load and attach packages in R.
It is used to create new variables in R.
It is used to plot graphs in R.
It is used to execute loops in R.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the command `save.image("workspace.RData")` do?

Saves all installed packages to a file

Saves the current script to a file

Saves the current workspace (all variables) to a file

Saves all plots in the workspace to a file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of the R programming language?

Web Development

Statistical Computing and Graphics

Mobile App Development

Game Development

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function `getwd()` do in R?

Gets the current working directory

Sets the working directory

Lists all files in the working directory

Deletes the current working directory

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands is used to install a package in R?

install.packages("package_name")

load.package("package_name")

import.package("package_name")

package.install("package_name")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a good practice for naming variables in R?

Using spaces in variable names

Using descriptive and meaningful names

Starting variable names with a number

Using special characters like `@` or `#`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you save an R script in RStudio?

File -> Save As

Tools -> Save Script

File -> Export Script

Script -> Save

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?