Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Avoid Factor Pitfalls | Section
Practice
Projects
Quizzes & Challenges
Questionários
Challenges
/
Data Cleaning and Transformation with Data Frames in R - 1768563984993

bookChallenge: Avoid Factor Pitfalls

Tarefa

Swipe to start coding

Convert a factor of survey ratings to numeric values and ensure the levels are ordered from lowest to highest satisfaction.

  • Create a new factor from ratings_factor with levels ordered as "Poor", "Fair", "Good", "Excellent".
  • Convert the ordered factor to numeric values, where "Poor" is 1 and "Excellent" is 4.
  • Return the resulting numeric vector.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 18
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Avoid Factor Pitfalls

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Convert a factor of survey ratings to numeric values and ensure the levels are ordered from lowest to highest satisfaction.

  • Create a new factor from ratings_factor with levels ordered as "Poor", "Fair", "Good", "Excellent".
  • Convert the ordered factor to numeric values, where "Poor" is 1 and "Excellent" is 4.
  • Return the resulting numeric vector.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 18
single

single

some-alt