R demo: Using the 'as.numeric' and 'as.factor' functions with data frames

  Рет қаралды 68,630

Mike Crowson

Mike Crowson

Күн бұрын

Пікірлер: 27
@rayraystinz
@rayraystinz 3 жыл бұрын
I survive my SPSS days thanks to you, Mike. Now I've moved into R and i'm so happy to see you making great videos to help me there also
@jhonnatasgomes
@jhonnatasgomes 3 жыл бұрын
I just dont know how to describe, how much this video helped me, it takes the whole time yesterday to descover how to convert this, and finally i found you. Thank you very much!!!
@lynnekilgore6011
@lynnekilgore6011 3 жыл бұрын
Like others below I was having a ton of trouble with other explanations on how to transform the data...but within 5 minutes of watching this video I'm finished and can finally move on. Thank you!
@chrisber
@chrisber 4 жыл бұрын
Thanks bro! I was having a lot of difficulty with the as.factor function
@bukolaadebayo1891
@bukolaadebayo1891 2 жыл бұрын
You just made my day with this code!! I was able to use it to change double to character. Thanks
@mikecrowson2462
@mikecrowson2462 2 жыл бұрын
Glad I could help!
@ForensicAnalytics
@ForensicAnalytics 4 жыл бұрын
Thank you. Good example, clear audio, and the speed was just right. I was stuck with writing code that would import text data (a ,txt file that was tab delimited). I used Payments
@zachnewman9888
@zachnewman9888 3 жыл бұрын
Thanks! The as.numeric worked for me on something I was really having a hard time with
@vadimkorontsevich1066
@vadimkorontsevich1066 2 жыл бұрын
Factor is a data structure used for fields that takes only predefined, finite number of values (categorical data). For example: a data field such as marital status may contain only values from single, married, separated, divorced, or widowed.
@Skychefs22
@Skychefs22 2 жыл бұрын
Thank you :) it was very helpful
@thulsi513
@thulsi513 4 жыл бұрын
uff, after a lot of trouble the whole day, this video saved me! thank you Mike.
@Lara-zo8gn
@Lara-zo8gn Жыл бұрын
Once again you are saving my ass, thank you! :)
@ManoYaka
@ManoYaka 4 жыл бұрын
I don't know if it's me, but when its original the interest has values 3 5 3 7 4 3 5, but after the conversion, you have 1 3 1 4 2 1 3, did we miss anything here?
@raquelfantoni2812
@raquelfantoni2812 3 жыл бұрын
How can I recode multiple factor variables as number at once? I have a data set as "highly dislike" "somewhat dislike" etc for a whole set of variables and I'd like to change them all at once.
@henry4150
@henry4150 2 жыл бұрын
very helpful !!! Thanks
@ignaciopetit4239
@ignaciopetit4239 4 жыл бұрын
Hola, values of columns changed after applying the as.numeric function. Any recommendation? Thanks for your video
@alexiachen7652
@alexiachen7652 4 жыл бұрын
thank you, this is really helpful
@ian_eyaaan20
@ian_eyaaan20 4 жыл бұрын
Thank you, this was really helpful. After changing the factors to numeric, my variable, 'Female', where male = 0 and female = 1 were automatically set to female = 1 and male = 2, how do I change it to 0 and 1?
@ainarasanjuanescudero4312
@ainarasanjuanescudero4312 4 жыл бұрын
Did you find any solution?? I have the same problem
@jeanrodriguesangare8261
@jeanrodriguesangare8261 4 жыл бұрын
Many many thanks , you save me
@nikkijohnson1665
@nikkijohnson1665 5 жыл бұрын
I'm doing this and getting the error "Error in as.factor$Survived : object of type 'closure' is not subsettable" back. Any ideas?
@dr.shakirumuhamadi2644
@dr.shakirumuhamadi2644 5 жыл бұрын
as.factor(dataname$survived) ....name of your dataset first then a pound sign
@AnuarsTV
@AnuarsTV 3 жыл бұрын
Thanks man!
5 жыл бұрын
I LOVE YOU
@patrickhall4490
@patrickhall4490 4 жыл бұрын
amazing thank you
@worabaabban5155
@worabaabban5155 Жыл бұрын
Thank you
@mojazzz284
@mojazzz284 5 жыл бұрын
this method will return the factor level instead
Factor Variables in R
9:51
Equitable Equations
Рет қаралды 18 М.
PERFECT TABLES IN #R ! 💪 {gtsummary}
11:13
yuzaR Data Science
Рет қаралды 30 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Grouping and Summarizing Data Using dplyr
13:54
weecology
Рет қаралды 10 М.
Introduction to R: Factors
11:51
DataDaft
Рет қаралды 12 М.
Graphics in R with ggplot()
18:39
Equitable Equations
Рет қаралды 29 М.
Categorical Variables in Stata
7:56
SebastianWaiEcon
Рет қаралды 139 М.
What's it like-Getting started in Stata 15
17:15
StataCorp LLC
Рет қаралды 188 М.
Handling Missing Values using R
16:07
Dr. Bharatendra Rai
Рет қаралды 44 М.
R tutorial - Using Factors in R
5:40
DataCamp
Рет қаралды 211 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН