search for: do_one

Displaying 4 results from an estimated 4 matches for "do_one".

2001 Jul 29
1
Compiling R (1.3.0) on AIX (4.3) fails (PR#1034)
...en I try 'ls man/*.Rd' bash also reports that the argument list is too long. I don't know whether this limitation comes from AIX, bash or perl and why it doesn't happen with, say, Linux. The fix is to replace the simple while loop (line 6): while(<$ARGV[0]/man/*.Rd>){ &do_one; } with a loop over the contents of the directory using readdir: if (opendir RD, "$ARGV[0]/man") { my $f; while (defined ($f = readdir RD)) { $_ = "$ARGV[0]/man/$f", &do_one if $f =~ m,.Rd$,; } closedir RD; } A) tkConfig.sh contains a line like this:...
2012 Jan 14
1
Error: unexpected '<' in "<" when modifying existing functions
...to modify kmeans function. 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(...
2009 Feb 26
0
kmeans: invalid length argument
...t;- row.names(pairs) dist.pairs <- dist(pairs) clust <- kmeans(dist.pairs, groups) write.table(clust$cluster, file=outfile, quote=FALSE) THE ERROR IS: ---------------------------------------- Error in vector("integer", length) : invalid 'length' argument Calls: kmeans -> do_one -> switch -> integer -> vector Execution halted I ran this code on a WindowsXP R6.2.6 host and it ran fine with acceptable results. However, the error ocurrs when I run it on CentOS (redhat 4.1.1-52) R2.7.2. The following search queries yielded no pertinent results from the web(Google),...
2007 Oct 04
1
Updating packages for R 2.6.0
Since this has come up already: It is a good idea to re-install all packages for a minor-version increment of R, e.g. 2.5.1 -> 2.6.0 (it is major.minor.patchlevel). This is most easily done by > update.packages(checkBuilt=TRUE, ask=FALSE) However, if you don't want to do that yet, be aware that - Certain S4-using packages must be reinstalled, and using old versions can make R