Gracias Jorge I, Marcelino dió con la clave; una chorrada.
Manuel


Quoting Jorge I Velez <jorgeivanve...@gmail.com>:

Manuel,
Mira
https://www.rdocumentation.org/packages/e1071/versions/1.6-8/topics/cmeans
No debes incluir “i” en cmeans().
Saludos,
Jorge.-

Sent from my phone. Please excuse my brevity and misspeling.


El El mié, 27 de jun. de 2018 a las 9:33 a. m., Manuel Mendoza <
mmend...@mncn.csic.es> escribió:


Pues no lo sé. Es algo del código de RandomForest, supongo.



Quoting Jesús Para Fernández <j.para.fernan...@hotmail.com>:

> U es un dataframe?
>
> Obtener Outlook para Android<https://aka.ms/ghei36>
>
> ________________________________
> From: R-help-es <r-help-es-boun...@r-project.org> on behalf of
> Manuel Mendoza <mmend...@mncn.csic.es>
> Sent: Wednesday, June 27, 2018 12:25:10 PM
> To: r-help-es@r-project.org
> Subject: [R-es] error en un cmeans
>
>
> Tuve que dejar, de momento, lo del "loop con matriz que cambia de
> nombre" por algo más urgente, y me salió otro problema.
>
> Hago un cmeans con el paquete e1071;
>
>    cl<-cmeans(Data,i,20,verbose=F,method="cmeans",m=2)
>
>   y me da este error: Error in apply(u, 1, which.max) : dim(X) must
> have a positive length.
>
> Estoy harto de usar esa línea de código, con dfs iguales a la de
> ahora, por lo que no entiendo por qué falla.
>
> Gracias,
> Manuel
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> .
>
>
> --
> Dr Manuel Mendoza
> Department of Biogeography and Global Change
> National Museum of Natural History (MNCN)
> Spanish Scientific Council (CSIC)
> C/ Serrano 115bis, 28006 MADRID
> Spain
>
> _______________________________________________
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es


--
Dr Manuel Mendoza
Department of Biogeography and Global Change
National Museum of Natural History (MNCN)
Spanish Scientific Council (CSIC)
C/ Serrano 115bis, 28006 MADRID
Spain

_______________________________________________
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es

--
Sent from my phone. Please excuse my brevity and misspelling.


--
Dr Manuel Mendoza
Department of Biogeography and Global Change
National Museum of Natural History (MNCN)
Spanish Scientific Council (CSIC)
C/ Serrano 115bis, 28006 MADRID
Spain

_______________________________________________
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es

Responder a