<div dir="ltr">Hi all.<div>I just wanted to comment on an issue in the item response theory plugin when subsetting a data frame.</div><div>I think it's related to the file:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">/rkward/plugins/analysis/irt/tests/ltm_cronbach_alpha.js</blockquote><div><br></div><div>Specifically with lines: </div><div><br clear="all"><div><div><span style="color:rgb(110,119,129);font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre">// reformat inp_items</span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container gmail-js-code-nav-container gmail-js-tagsearch-file gmail-js-search-container" style="border-spacing:0px;border-collapse:collapse;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC17" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre">17        <span class="gmail-pl-k" style="box-sizing:border-box">if</span> <span class="gmail-pl-kos" style="box-sizing:border-box">(</span><span class="gmail-pl-s1" style="box-sizing:border-box">inp_items</span><span class="gmail-pl-kos" style="box-sizing:border-box">)</span></td></tr><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-L18" class="gmail-blob-num gmail-js-line-number gmail-js-code-nav-line-number gmail-js-blob-rnum" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:20px;text-align:right;white-space:nowrap;vertical-align:top">18</td><td id="gmail-LC18" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre"><span class="gmail-pl-s1" style="box-sizing:border-box">inp_items</span>   <span class="gmail-pl-c1" style="box-sizing:border-box">=</span> <span class="gmail-pl-s1" style="box-sizing:border-box">inp_items</span><span class="gmail-pl-kos" style="box-sizing:border-box">.</span><span class="gmail-pl-en" style="box-sizing:border-box"><span class="gmail-pl-token" style="box-sizing:border-box">replace</span></span><span class="gmail-pl-kos" style="box-sizing:border-box">(</span><span class="gmail-pl-pds" style="box-sizing:border-box"><span class="gmail-pl-c1" style="box-sizing:border-box">/</span><span class="gmail-pl-cce" style="box-sizing:border-box">\n</span><span class="gmail-pl-c1" style="box-sizing:border-box">/</span>g</span><span class="gmail-pl-kos" style="box-sizing:border-box">,</span><span class="gmail-pl-s" style="box-sizing:border-box">', '</span><span class="gmail-pl-kos" style="box-sizing:border-box">)</span><span class="gmail-pl-kos" style="box-sizing:border-box">.</span><span class="gmail-pl-en" style="box-sizing:border-box"><span class="gmail-pl-token" style="box-sizing:border-box">replace</span></span><span class="gmail-pl-kos" style="box-sizing:border-box">(</span><span class="gmail-pl-pds" style="box-sizing:border-box"><span class="gmail-pl-c1" style="box-sizing:border-box">/</span><span class="gmail-pl-kos" style="box-sizing:border-box">(</span><span class="gmail-pl-cce" style="box-sizing:border-box">\w</span><span class="gmail-pl-c1" style="box-sizing:border-box">*</span><span class="gmail-pl-kos" style="box-sizing:border-box">)</span><span class="gmail-pl-cce" style="box-sizing:border-box">\[</span><span class="gmail-pl-cce" style="box-sizing:border-box">\[</span><span class="gmail-pl-c1" style="box-sizing:border-box">|</span><span class="gmail-pl-cce" style="box-sizing:border-box">\]</span><span class="gmail-pl-cce" style="box-sizing:border-box">\]</span><span class="gmail-pl-c1" style="box-sizing:border-box">/</span>g</span><span class="gmail-pl-kos" style="box-sizing:border-box">,</span> <span class="gmail-pl-s" style="box-sizing:border-box">''</span><span class="gmail-pl-kos" style="box-sizing:border-box">)</span><span class="gmail-pl-kos" style="box-sizing:border-box">;</span></td></tr></tbody></table></blockquote></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><br></div></div></blockquote><div><div> // The "((/\w*)/g"  argument is not enough to replace the name of a data frame like "data.frame" or "my.data.r" which returns a "syntax error". Short work around by changing the name of the data frame to not using period(s) (".") (or any special characters). I've explored a few solutions using regex with no satisfactory success as for limiting the result only to the name of the data frame.</div><div>Thanks for all the hard work!!!</div><div>Regards</div><div>Alfonso</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="text-align:center"><div><br></div></div></div></div></div></div></div></div></div>