How to Replace Values in R. [HD]

preview_player
Показать описание
Questions? Tips? Comments? Like me! Subscribe!
Рекомендации по теме
Комментарии
Автор

I want to replace a negative value with the mean of the column. probably if I take the mean of the column, this negative value will influence the mean. How can I face this problem?

savvasnikolaosanastasiadis
Автор

this coding not showing error .but in file it not get changed

harinis
Автор

Hi, my values are based on characters, but I want to replace for numbers, they are "cv", "NE", "NW" and "SE". They should be replaced to 1, 2, 3, 4. I'm getting error when replacing 1 at time, how can I replace all this data?

douglaslpereira
Автор

Very helpful video indeed. Please keep going..

Sureshm
Автор

<- replace(spec.skills$Country.of.residence, = "United Kingdom", England) Hello I am trying to write a code to change United Kingdom to England, any help?🙏

benjaminbaah-konadu
Автор

honestly the most helpful video on this topic that I've found on the internet. and I watched about five different ones. Thanks

minibogosohard
Автор

Hi there, thank you so much for the video, extremely helpful! <3
I've got a question though: I'd like to replace all the values n/a with NA of a long series of columns, how can I do it?
s$X1980:s$X2020 <-replace(s$X1980:s$X2020, s$X1980:s$X2020 =="n/a", NA) I wrote down this thing in R but the programs says "Error in s$X1980:s$X2020 <- replace(s$X1980:s$X2020, s$X1980:s$X2020 == :
could not find function ":<-" "

giovannipiva
Автор

sir can i use the same code for replace -Inf with zero

harinis
Автор

Hello Mr.Expert, after replacing all the missing values in my database with NA, i can get the mean of the column -for example-, the problem is that the value i get isn't the same calculated with excel or Spss, pls help, i'm in hurry!

kaoutarelkourchi