From nikhilg at uab.edu  Thu Jul  1 09:25:17 2004
From: nikhilg at uab.edu (nikhilg@uab.edu)
Date: Thu Jul  1 09:25:20 2004
Subject: [Rd] Bug in SOM package (PR#7038)
Message-ID: <20040701072517.932711093F@slim.kubism.ku.dk>

Bug in "SOM" package in R.
 
This simple code withot for loop runs:-------simple.r--------
 
library(som)
A <- as.matrix(read.table("C:/code/h.txt", sep="\t", header=TRUE,
row.names=1))
print(som(A,1,2)$visual)
print(som(A,1,3)$visual)
----------------------------------------
 
The same code if inserted in for loop generates "Assertion failure" in
Rgui.exe.
 
This is Microsoft Visual C++ runtime error in Rgui.exe and File =
tn/vec.h
 
Line 250 
Expression: i<=n_
 
Code with for loop:----------------------------sim.r--------------------
 
library(som)
A <- as.matrix(read.table("C:/code/h.txt", sep="\t", header=TRUE,
row.names=1))
for(x in 2:3){
print(som(A,1,x)$visual)
}

Thanks,
Nikhil Garge
Computer Science graduate student,
UAB

	[[alternative HTML version deleted]]


[Rd] Bug in SOM package (PR#7038)
nikhilg@uab.edu