Displaying 6 results from an estimated 6 matches for "nmeth".
Did you mean:
meth
2005 Aug 19
2
tackle with error
Dear sir;
may you drop me some idea how can i get rid of following error message:
Error in switch(nmeth, { : NA/NaN/Inf in foreign function call (arg 1)
i dont know what does nmeth and ther rest of error message mean? i have
a file which contains 460 rows and 174 columns including missing value
as NA.
Regards,
Mostafa
2012 Jan 14
1
Error: unexpected '<' in "<" when modifying existing functions
...ion.
It seems that is failing something obvious with the workspace.
I am a newbie and here is my code:
myk = function (x, centers, iter.max = 10, nstart = 1, algorithm =
c("Hartigan-Wong",
+ "Lloyd", "Forgy", "MacQueen"))
+ {
+ do_one <- function(nmeth) {
+ Z <- switch(nmeth, {
+ Z <- .Fortran(R_kmns, as.double(x), as.integer(m),
+ as.integer(ncol(x)), centers = as.double(centers),
+ as.integer(k), c1 = integer(m), integer(m), nc = integer(k),
+ double(k), double(k), intege...
2008 May 09
2
K-Means Clustering
...5
[10,] 6 7 5 9 3 1 2 5 1 8
When I try to scale my data and perform kmeans clustering, I get the
following errors:
new <- scale(new)
Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric
> cl <- kmeans(new, 4)
Error in switch(nmeth, { : NA/NaN/Inf in foreign function call (arg 1)
In addition: Warning message:
In switch(nmeth, { : NAs introduced by coercion
This is confusing to me since all of the data is numeric and there are
no missing values. Is there something I need to do to my data to prepare
it for kmeans? I have tried...
2009 Aug 06
0
K-means clustering with NA
I am running a k-means clustering code in R : mydata_kmeans5 <-
kmeans(mydata, centers=5).. But the problem is that the data is having some
"NA" in it. So R is showing me a message :Error in switch(nmeth, { :
NA/NaN/Inf in foreign function call (arg 1)
In addition: Warning messages:
1: In switch(nmeth, { : NAs introduced by coercion
2: In switch(nmeth, { : NAs introduced by coercion... my objective is to
find out the customers id who are falling in particular cluster say clst 1,
clst2 etc...If I wa...
2007 May 27
2
[Bioc-devel] promptClass
promptClass fails to identify methods associated with the class. Here
is a fix:
Index: promptClass.R
===================================================================
--- promptClass.R (revision 41719)
+++ promptClass.R (working copy)
@@ -165,7 +165,7 @@
if (nmeths > 0) {
.meths.body <- " \\describe{"
for (i in 1:nmeths) {
- .sigmat <- sigsList(methnms[i], where)
+ .sigmat <- sigsList(methnms[i], where=whereClass)
for (j in seq_along(.sigmat)) {
if (!all(is.na(match(.sigma...
2009 Apr 25
5
Out of memory issue
Hi all,
I am trying to run some plots on data, but when loading he CSV data
file R is stopping and I am getting an out of memory error.
Anyway to tweak this somehow to get it to run?
Using WinXP with 4 GB RAM
Tnx
Bruce