[Traminer-users] Bug in TraMinerextras

Mayur Betharia mayursb at yahoo.com
Fri Jan 20 15:36:19 CET 2017


Hi,
When "TSE_to_STS" is used for a single sequence object, it throws error :

Error in `rownames<-`(`*tmp*`, value = "1") :   attempt to set 'rownames' on an object with no dimensions
Sample:
id   time  event
1 21 A1 22 B1 26 A1 31 B
Problem appears to be in following line:
sts <- sts[, tmin:tmax]

This is converting single row matrix into vector. This R behavior is documented in :https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-my-matrices-lose-dimensions_003f

  
|  
|   |  
R FAQ
 R FAQ  |  |

  |

 
This should be addressed.
regards,Mayur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20170120/724244ac/attachment.html>


More information about the Traminer-users mailing list