Exam 2 (R Studio)

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

How can you create a .R file?

- Click "File|New File|R Script" in the menu

How can you open an existing .R file?

- click "File|Open File" to browse for the .R file

How can you save a .R file?

- click "File|Save"

What is a Vector?

A sequence of data elements of the same basic type. Ex: scores= (65,75,80,82,92)

What do we use to pick specific elements in a vector?

Brackets [] aka indexing vectors Ex: > scores[1] [1] 65 > scores[2:3] [1] 75 80 > scores[c(1,4)] [1] 65 88

What can we use to get specific information out of a vector?

Brackets [}aka Indexing Vectors Ex: > scores[1] [1] 65 > scores[2:3] [1] 75 80 > scores[c(1,4)] [1] 65 88

How can you install a package on R?

By typing install.packages("XXX")

When it comes to vector what will length give you?

How many elements are in a set?

How is the Working Directory useful in reference to R?

It helps keep everything in a self contained directory,helps organize code and analyses

What is R script?

R script is where you keep a record of your work in R and R Studio

When it comes to vector what will max give you?

The highest number in the set

When it comes to vector what will mean give you?

The mean of the data set

When it comes to vector what will median give you?

The median number of the data set

When it comes to vector what will summary give you?

The min, 1st quarterly, median, mean 3 quarterly, and max numbers

When it comes to vector what will min give you?

The smallest number in the set

When it comes to vector what will sd give you?

The standard deviation of the data set

When it comes to vector what will var give you?

The variance of the data set

What is a Working Directory in reference to R?

The working directory is where Rstudio will look first for scripts and files

Can R give descriptive statistics?

Yes, you can get descriptive statistics from a vector

Can vectors also have character values?

Yes. Ex: names<-c("Nikita","Dexter","Sherlock")

How can you check your current working directory when it comes to R?

getwd()

What are packages when it come to R

packages are add-on collections of R functions and code in a well-defined format


Set pelajaran terkait

Practice labeling pathos, logos, and ethos.

View Set

Mineral properties and Identification

View Set

American History Imperialism - Smock

View Set

Computer Forensics: Investigations Procedures and Responses (Chapter 7)

View Set

Final Interpersonal communication

View Set