Podcast
Questions and Answers
Quelle fonction est utilisée pour supprimer tous les objets de l'espace de travail R?
Quelle fonction est utilisée pour supprimer tous les objets de l'espace de travail R?
La fonction mean() peut être utilisée pour calculer la moyenne d'un vecteur sans tenir compte des valeurs NA par défaut.
La fonction mean() peut être utilisée pour calculer la moyenne d'un vecteur sans tenir compte des valeurs NA par défaut.
False
Quelle est la commande pour voir les types d'objets dans R?
Quelle est la commande pour voir les types d'objets dans R?
class()
Pour importer un dataframe à partir d'un fichier texte, on utilise la fonction ______.
Pour importer un dataframe à partir d'un fichier texte, on utilise la fonction ______.
Signup and view all the answers
Associez les types d'objets avec leur description :
Associez les types d'objets avec leur description :
Signup and view all the answers
Comment calcule-t-on l'âge de découverte des chercheurs dans le dataframe nobel?
Comment calcule-t-on l'âge de découverte des chercheurs dans le dataframe nobel?
Signup and view all the answers
La commande 'save.image' est utilisée pour enregistrer l'espace de travail actuel dans un fichier.
La commande 'save.image' est utilisée pour enregistrer l'espace de travail actuel dans un fichier.
Signup and view all the answers
Comment supprime-t-on les lignes contenant des valeurs manquantes (NA) dans un dataframe?
Comment supprime-t-on les lignes contenant des valeurs manquantes (NA) dans un dataframe?
Signup and view all the answers
What does the function 'setwd()' do in R?
What does the function 'setwd()' do in R?
Signup and view all the answers
The command 'mean(y, na.rm = TRUE)' calculates the mean of y while ignoring NA values.
The command 'mean(y, na.rm = TRUE)' calculates the mean of y while ignoring NA values.
Signup and view all the answers
Which function would you use to load a previously saved workspace in R?
Which function would you use to load a previously saved workspace in R?
Signup and view all the answers
To create a vector in R, you use the function _______.
To create a vector in R, you use the function _______.
Signup and view all the answers
What does the command 'rm(list=ls(all=TRUE))' accomplish?
What does the command 'rm(list=ls(all=TRUE))' accomplish?
Signup and view all the answers
How can you calculate the average age of high creativity in the Nobel dataset?
How can you calculate the average age of high creativity in the Nobel dataset?
Signup and view all the answers
Match the following R commands with their purposes:
Match the following R commands with their purposes:
Signup and view all the answers
The lifespan of researchers in the Nobel dataset can be calculated by subtracting the year of birth from the year of ______.
The lifespan of researchers in the Nobel dataset can be calculated by subtracting the year of birth from the year of ______.
Signup and view all the answers
What is the purpose of the command 'getwd()' in R?
What is the purpose of the command 'getwd()' in R?
Signup and view all the answers
The function 'load()' is used to import a dataframe into R.
The function 'load()' is used to import a dataframe into R.
Signup and view all the answers
What command is used to create a matrix combining two vectors in R?
What command is used to create a matrix combining two vectors in R?
Signup and view all the answers
To calculate the average lifespan, you need to subtract the year of ______ from the year of death.
To calculate the average lifespan, you need to subtract the year of ______ from the year of death.
Signup and view all the answers
What does 'na.rm = TRUE' do when calculating the mean in R?
What does 'na.rm = TRUE' do when calculating the mean in R?
Signup and view all the answers
Match the following commands to their functions in R:
Match the following commands to their functions in R:
Signup and view all the answers
The command 'dim(nobel)' returns the column names of the dataframe.
The command 'dim(nobel)' returns the column names of the dataframe.
Signup and view all the answers
How is the average age of high creativity calculated from the Nobel dataset?
How is the average age of high creativity calculated from the Nobel dataset?
Signup and view all the answers