Get the App
SLTechnology News&Howtos  ›  Development  › 

How to make up the missing values in R language for cluster analysis

Shulou Source: shulou.com Published: 2022-06-02 01:06:20 10月29日 Update

This article mainly explains "how R language completes missing values for cluster analysis". The content of the explanation is simple and clear, and it is easy to learn and understand. let's study and learn "how R language completes missing values for cluster analysis".

In an ideal state, we want the data to have no missing values. Unfortunately, missing values occur from time to time for a variety of reasons. This will cause problems. Cluster analysis can not be carried out on the incomplete data matrix.

Husson and Josse wrote a package called missMDA, which can be populated with missing values with the imputePCA () function.

Library ("missMDA") df=read.table ("aa.txt", header = T _ names = 1 _ df=log1p (df) res.comp

Tags: Missing analysis language learning content data problem misfortune function reason reason that is ideas situations articles happen from time to time more state knowledge knowledge points Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Apple Shulou Technology Xiaomi Linux