• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/11

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

11 Cards in this Set

  • Front
  • Back

What is default data class for data read in R

Data frame

Which function is used to list the variables in the workspace?

ls()

How many dimensions does data frame have and which function is used to get how many cols and rows in it?

Two dimensions


dim()

dim() function returns


[1] 5166 10

It means it has 5166 rows (observations) and 10 columns (variables) or nrow() to see how many rows in the dataset

Which function is used to check How much space the dataset is occupying

object.size()

What does function names() do

It returns a character vector of column (variables) names in the dataset

Which function is used to preview the top of the dataset?

head() and shows you the first six rows of the data if you give only one argument but you can pass a second argument to see more rows in the data

Which function is used to preview the end of the dataset?

tail() the same as head() function

What does NA mean in R ?

It is placeholders for missing value.

categorical variables (what is the name in R)

Factor variables


Summary() displays the number of times each values (levels) occurs

Which function is used to see how many times each values occurs in the data in a factor variable?

table(dataset$factor variable)