Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Create and Use Factors | R Factors Explained
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Working with Data Structures in R

bookChallenge: Create and Use Factors

Tarefa

Swipe to start coding

Create a factor variable from a vector of survey responses and set a custom order for its levels.

  • Convert the survey_responses vector into a factor.
  • Use the order: "Dissatisfied", "Neutral", "Satisfied" for the factor levels.
  • Assign the factor to a variable named satisfaction_factor.
  • The factor should be ordered.
  • Display the structure of the factor using the str() function and assign the result to structure_info.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 2
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: Create and Use Factors

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Create a factor variable from a vector of survey responses and set a custom order for its levels.

  • Convert the survey_responses vector into a factor.
  • Use the order: "Dissatisfied", "Neutral", "Satisfied" for the factor levels.
  • Assign the factor to a variable named satisfaction_factor.
  • The factor should be ordered.
  • Display the structure of the factor using the str() function and assign the result to structure_info.

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 3. Capítulo 2
single

single

some-alt