Challenge: Work with Factors and Characters
Tehtävä
Swipe to start coding
Convert a character vector of product categories to a factor. Using factors for categorical data can improve efficiency and provide better support for statistical analysis.
- Return a factor variable that represents the categories in the input vector.
- Ensure the result contains the unique levels present in the input.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 16
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 5.56
Challenge: Work with Factors and Characters
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
Convert a character vector of product categories to a factor. Using factors for categorical data can improve efficiency and provide better support for statistical analysis.
- Return a factor variable that represents the categories in the input vector.
- Ensure the result contains the unique levels present in the input.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 16
single