In this dataset, there are no numerical columns, so it just happened naturally. But in general, you can always use factor() function to convert integers into a factor.
How do you put the data in the variables you made from a category? Example you have a body fat category and your variables under body fat are athlete, average and obese. How do you place the original data in these variables according to a set criteria?
You need to use cut() function. Say, you decided that you will define body fat under 22% as lean, 22-30% as normal, and over 30 obese. Then in your code you do something like my_data$body_composition
@@ShaltayevBUSN231 photos.app.goo.gl/aLXc1GqS7Ybk2CkH7 i want to do it this way sir, for that I need to number them like.. if it is knee then it is 1, if it is hand It is 2, if it is head it is 3..like that i need to categorise them sir.
This is explained exactly what I was looking for. Thanks!
This was SO helpful, thank you so much! I followed along with my own COVID-19 dataset and it worked perfectly :)
very nice video, please we want more. Thank you very much
Really useful with clear steps explained
Awesome! evry helpful
This is a wonderful video, it helps me a lot! Thanks!
Thank you
nice and very clear, we need more of this plz
I have a question: how did you make that when uploaded your variables are factors. Mine are always firstly integers.
In this dataset, there are no numerical columns, so it just happened naturally. But in general, you can always use factor() function to convert integers into a factor.
Thanks for upload this, a very good explanation
Thanks for this video!
How do you put the data in the variables you made from a category? Example you have a body fat category and your variables under body fat are athlete, average and obese. How do you place the original data in these variables according to a set criteria?
You need to use cut() function. Say, you decided that you will define body fat under 22% as lean, 22-30% as normal, and over 30 obese. Then in your code you do something like
my_data$body_composition
Thank u. Will try your concept . Appreciate your time.
He good one,but what if its having a missing value
Very good video
why does my Rstudio asks me if I want to use a personal library instead? (when I try to install.package)
I keep on getting the "red" warning stuff in the console.
Do I need to to run some set up or something?
What does the warning say?
@@ShaltayevBUSN231 I was leaving out the ".cvs" at the end when entering the command.
It's fine now.. Thanks
sir, where can I get this data? I would like to practise it following your instruction
This is a pretty famous data set. You can find it here, for example:
cran.r-project.org/web/packages/titanic/titanic.pdf
Sir I have a variable containing body parts(47 body parts) I need to categorise them from 1-47... Kindly give me a line of code
What exactly are you trying to do? Create a column in a data set with "partID" against each record? Or something else?
@@ShaltayevBUSN231 photos.app.goo.gl/aLXc1GqS7Ybk2CkH7 i want to do it this way sir, for that I need to number them like.. if it is knee then it is 1, if it is hand It is 2, if it is head it is 3..like that i need to categorise them sir.
And how to export/save this cross table?
In what form do you need to export/save the cross table? As a file?