Subset on ltm_cronbach_alph

DES Alfonso Cano Robles alfonsociologo at gmail.com
Thu Jul 28 13:06:54 BST 2022


Hi all.
I just wanted to comment on an issue in the item response theory plugin
when subsetting a data frame.
I think it's related to the file:

/rkward/plugins/analysis/irt/tests/ltm_cronbach_alpha.js


Specifically with lines:

// reformat inp_items

> 17 if (inp_items)
> 18 inp_items = inp_items.replace(/\n/g,', ').replace(/(\w*)\[\[|\]\]/g, ''
> );


 // 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.
Thanks for all the hard work!!!
Regards
Alfonso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/rkward-users/attachments/20220728/67e1397e/attachment.htm>


More information about the rkward-users mailing list