Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Ian Deters
It worked fabulously. Thank you so much for help and time. -- View this message in context: http://r.789695.n4.nabble.com/ATSP-to-TSP-reformulation-tp3777105p3779476.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Michael Hahsler
Hi Ian, I checked your example again and found the problem in tsp. fix(x) seems to create column names but not row names which exposes a bug in as.ATSP in tsp. This code replicates your error message: library(TSP) x <- rbind(c(1,2,3,4), c(1,0,11,5), c(2,4,0,6), c(3,5,6,0)) colnames(x) <- 1:4

Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Ian Deters
Dr. Hahsler, Thank you so much for looking at my code. I made sure that I had TSP_1.0-3 install and ran the code again (this time with "<-" instead of "=" for my assignments). I received the same response. I checked my sessionInfo and did not see anything out of the ordinary. Does anything loo

Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Michael Hahsler
Hi Ian, Your example runs for me without problems. It seems that you are using an older version of TSP. Please upgrade to the latest version TSP (update to TSP_1.0-3). I am using: > sessionInfo() R version 2.13.1 (2011-07-08) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.U

[R] ATSP to TSP reformulation

2011-08-29 Thread Ian Deters
Greetings, I am having trouble getting the function reformulate_ATSP_as_TSP to work for me. I have provided a simple example of some of the code I've been using. In particular, I'm not sure why I'm getting the error "Error in dimnames(tsp) <- list(lab, lab) : length of 'dimnames' [1] not e

[R] ATSP to TSP reformulation

2011-08-19 Thread Ian Deters
Greetings, I am having trouble getting the function reformulate_ATSP_as_TSP to work for me. I have provided a simple example of some of the code I've been using. In particular, I'm not sure why I'm getting the error "Error in dimnames(tsp) <- list(lab, lab) : length of 'dimnames' [1] not eq