Skip to content
Back to formatted view

Raw Message

Message-ID: <CAM_vjunh+rmyiA-JJ11WV=PY1H7450Awmuj8reRt8v1YoM7zrw@mail.gmail.com>
Date: 2019-01-16T19:15:09Z
From: Sarah Goslee
Subject: R help: fviz_nbclust’ is not available (for R version 3.5.2)
In-Reply-To: <CAL1He1LL=NGnoL-FQHkderQVwSz5EWv-FhNZ8eBKEkxNjafKnQ@mail.gmail.com>

Hi,

fviz_nbclust is a function within the package factoextra. Once you
have installed the package and loaded it, you do not need to
explicitly install the function.

You probably also don't need FunCluster - I think you may be confusing
that package with the FUNcluster argument to the fviz_nbclust
function.

Do take a look at
?fviz_nbclust
for help and a working example.

library(factoextra)
library(NbClust)
# Standardize the data
load("df4.rda")
fviz_nbclust(df4, FUNcluster, method = c("silhouette", "wss", "gap_stat"))

Sarah

On Wed, Jan 16, 2019 at 2:00 PM N Meriam <meriam.nef at gmail.com> wrote:
>
> Hello,
> I'm struggling to install a function called "fviz_nbclus".
>
> My code is the following:
> pkgs <- c("factoextra",  "NbClust")
> install.packages(pkgs)
> library(factoextra)
> library(NbClust)
> # Standardize the data
> load("df4.rda")
> library(FunCluster)
>
> install.packages("fviz_nbclust")
> #fviz_nbclust(df4, FUNcluster, method = c("silhouette", "wss", "gap_stat"))
>
> Installing package into ?C:/Users/DELL/Documents/R/win-library/3.5?
> (as ?lib? is unspecified)
> Warning in install.packages :
>   package ?fviz_nbclust? is not available (for R version 3.5.2)
>
> Best,
> Meriam
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Sarah Goslee (she/her)
http://www.numberwright.com