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?
- save()
- setwd()
- ls()
- rm() (correct)
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 (B)
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 ______.
Associez les types d'objets avec leur description :
Associez les types d'objets avec leur description :
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?
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.
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?
What does the function 'setwd()' do in R?
What does the function 'setwd()' do in R?
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.
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?
To create a vector in R, you use the function _______.
To create a vector in R, you use the function _______.
What does the command 'rm(list=ls(all=TRUE))' accomplish?
What does the command 'rm(list=ls(all=TRUE))' accomplish?
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?
Match the following R commands with their purposes:
Match the following R commands with their purposes:
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 ______.
What is the purpose of the command 'getwd()' in R?
What is the purpose of the command 'getwd()' in R?
The function 'load()' is used to import a dataframe into R.
The function 'load()' is used to import a dataframe into R.
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?
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.
What does 'na.rm = TRUE' do when calculating the mean in R?
What does 'na.rm = TRUE' do when calculating the mean in R?
Match the following commands to their functions in R:
Match the following commands to their functions in R:
The command 'dim(nobel)' returns the column names of the dataframe.
The command 'dim(nobel)' returns the column names of the dataframe.
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?
Flashcards
Afficher les objets R
Afficher les objets R
La commande ls()
permet d'afficher la liste des objets chargés dans l'espace de travail R.
Supprimer les objets R
Supprimer les objets R
La commande rm(list=ls(all=TRUE))
permet de supprimer tous les objets chargés dans l'espace de travail R.
Répertoire de travail R
Répertoire de travail R
Le répertoire de travail est l'emplacement où R enregistre et lit les fichiers.
Enregistrer le workspace
Enregistrer le workspace
Signup and view all the flashcards
Charger un workspace
Charger un workspace
Signup and view all the flashcards
Affectation de valeur
Affectation de valeur
Signup and view all the flashcards
Type d'objet
Type d'objet
Signup and view all the flashcards
Créer un vecteur
Créer un vecteur
Signup and view all the flashcards
Créer une matrice
Créer une matrice
Signup and view all the flashcards
Aide sur une fonction
Aide sur une fonction
Signup and view all the flashcards
Fonction avec paramètres
Fonction avec paramètres
Signup and view all the flashcards
Fonction moyenne
Fonction moyenne
Signup and view all the flashcards
Importation de données
Importation de données
Signup and view all the flashcards
DataFrame
DataFrame
Signup and view all the flashcards
Dimensions d'un DataFrame
Dimensions d'un DataFrame
Signup and view all the flashcards
Sous-ensembles de données
Sous-ensembles de données
Signup and view all the flashcards
Displaying R objects
Displaying R objects
Signup and view all the flashcards
Removing R objects
Removing R objects
Signup and view all the flashcards
Setting working directory
Setting working directory
Signup and view all the flashcards
Saving workspace
Saving workspace
Signup and view all the flashcards
Loading workspace
Loading workspace
Signup and view all the flashcards
Variable assignment
Variable assignment
Signup and view all the flashcards
Object type
Object type
Signup and view all the flashcards
Creating a vector
Creating a vector
Signup and view all the flashcards
Creating a matrix (horizontal)
Creating a matrix (horizontal)
Signup and view all the flashcards
Creating a matrix (vertical)
Creating a matrix (vertical)
Signup and view all the flashcards
Function help
Function help
Signup and view all the flashcards
Function parameters
Function parameters
Signup and view all the flashcards
Calculate mean
Calculate mean
Signup and view all the flashcards
Import data (text)
Import data (text)
Signup and view all the flashcards
Data frame
Data frame
Signup and view all the flashcards
Data frame dimensions
Data frame dimensions
Signup and view all the flashcards
Data subset
Data subset
Signup and view all the flashcards
R workspace display
R workspace display
Signup and view all the flashcards
Clear workspace
Clear workspace
Signup and view all the flashcards
Working directory
Working directory
Signup and view all the flashcards
Save workspace
Save workspace
Signup and view all the flashcards
Load workspace
Load workspace
Signup and view all the flashcards
Variable assignment
Variable assignment
Signup and view all the flashcards
Object type
Object type
Signup and view all the flashcards
Create vector
Create vector
Signup and view all the flashcards
Matrix creation (horizontal)
Matrix creation (horizontal)
Signup and view all the flashcards
Matrix creation (vertical)
Matrix creation (vertical)
Signup and view all the flashcards
Function help
Function help
Signup and view all the flashcards
Function parameters
Function parameters
Signup and view all the flashcards
Mean calculation
Mean calculation
Signup and view all the flashcards
Import data (text)
Import data (text)
Signup and view all the flashcards
Data frame
Data frame
Signup and view all the flashcards
Data frame dimensions
Data frame dimensions
Signup and view all the flashcards
Data subset
Data subset
Signup and view all the flashcards