Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report