<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1484922524593_5618" dir="ltr">Hi,</div><div id="yui_3_16_0_ym19_1_1484922524593_5618" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1484922524593_5618" dir="ltr">When "TSE_to_STS" is used for a single sequence object, it throws error :<br></div><div id="yui_3_16_0_ym19_1_1484922524593_5618"><br></div><div id="yui_3_16_0_ym19_1_1484922524593_5618">Error in `rownames<-`(`*tmp*`, value = "1") : </div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5619">  attempt to set 'rownames' on an object with no dimensions</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5619"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5619">Sample:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5619"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5619">id   time  event<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5684">1 21 A</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5685">1 22 B</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686">1 26 A</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686">1 31 B</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686">Problem appears to be in following line:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686">sts <- sts[, tmin:tmax]<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686">This is converting single row matrix into vector. This R behavior is documented in :</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686"><a href="https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-my-matrices-lose-dimensions_003f" id="yui_3_16_0_ym19_1_1484922524593_5800" class="enhancr2_c1132c44-e5a5-4919-a9e1-a80b29ad0281">https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-my-matrices-lose-dimensions_003f</a><br></div><div id="yui_3_16_0_ym19_1_1484922524593_5813"><br></div><div id="enhancr2_c1132c44-e5a5-4919-a9e1-a80b29ad0281" class="yahoo-link-enhancr-card yahoo-link-enhancr-not-allow-cover ymail-preserve-class ymail-preserve-style img-overlay-selected" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" contenteditable="false" data-url="https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-my-matrices-lose-dimensions_003f" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium" dir="ltr"> <a href="https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-my-matrices-lose-dimensions_003f" style="text-decoration:none !important; color: #000 !important" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1484922524593_5823"> <table class="card-wrapper" cellpadding="0" cellspacing="0" border="0" style="max-width:400px;" id="yui_3_16_0_ym19_1_1484922524593_5822"> <tbody id="yui_3_16_0_ym19_1_1484922524593_5821"><tr id="yui_3_16_0_ym19_1_1484922524593_5820"> <td width="400" id="yui_3_16_0_ym19_1_1484922524593_5819"> <table class="card-info" cellpadding="0" cellspacing="0" border="0" width="100%" style="background:#fff;max-width:400px;border:1px solid #e0e4e9;border-bottom:3px solid #000000;" id="yui_3_16_0_ym19_1_1484922524593_5818"> <tbody id="yui_3_16_0_ym19_1_1484922524593_5817"><tr id="yui_3_16_0_ym19_1_1484922524593_5816"> <td style="vertical-align:top;padding:16px 0 16px 12px;">  </td> <td style="vertical-align:middle;padding:16px 12px;width:99%;" id="yui_3_16_0_ym19_1_1484922524593_5815"> <h2 class="card-title" style="margin:0 0 4px 0;font-size:16px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;word-break:break-word;" id="yui_3_16_0_ym19_1_1484922524593_5898">R FAQ</h2>  <div class="card-description" style="font-size:11px;line-height:15px;color:#999;word-break:break-word;" id="yui_3_16_0_ym19_1_1484922524593_5877">R FAQ</div> </td> <td class="card-share-container"></td> </tr> </tbody></table> </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1484922524593_5855"><br></div><div id="yui_3_16_0_ym19_1_1484922524593_5855">This should be addressed.</div><div id="yui_3_16_0_ym19_1_1484922524593_5855"><br></div><div id="yui_3_16_0_ym19_1_1484922524593_5855" dir="ltr">regards,</div><div id="yui_3_16_0_ym19_1_1484922524593_5855" dir="ltr">Mayur</div><div dir="ltr" id="yui_3_16_0_ym19_1_1484922524593_5686"><br></div></div></body></html>