Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to replace missing values in a particular column using knnImpute

$
0
0

@pagal_guy wrote:

hello,

I am trying to use the knnImpute function to replace missing values in Age for the Titanic problem in R.

library(imputation)
kNNImpute(combi$Age, 3)

However this is giving me an error:

From the examples that I saw online it seems that the values are imputed for all the columns which have missing values,but how do I use this to replace missing values in only 1 particular column.

Can someone please help me with this??

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles