Hi, On Tuesday 20 December 2011, meik michalke wrote: > yes, i get the hint ;-) have you tried the latest rk.ANOVA plugin? it also > adds a dialog to the "data" menu to prepare data similarily. would that be > something to work with, maybe?
yes, I guess that's a start. If we had a more generic (more generic terms) plugin to convert from wide to long in the "base" distribution, that would go a long way, already. We could worry about an embeddable solution, later. While at it, some comments on the "Prepare within subject data" plugin: - The dialog does not have a caption, somehow. - Using "attach" may be slightly dangerous. You risk name clashes with your temporary variables. I'd suggest to do data <- user.specified.data.frame instead, and then use data$column.name after that. - If you are doing the above, perhaps you could also remove the need to select a data.frame, first. Rather you could assemble a temporary data.frame from the response/subject/group vectors. Not sure, whether this is worth doing, though. - I think the subject identifier could reasonably default to 1:num.cases or rownames (data) . When converting from wide to long, there's typically only one subject per row to start with. - Most plugins use .GlobalEnv$object.name <- object.to.save I think that looks slightly less frightening than assign(). - Between subject variables lack one level of indentation in the generated code. - level=1 is the default for rk.header(). Consider removing "level=1" from the generated code. Regards Thomas
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev
_______________________________________________ RKWard-devel mailing list RKWard-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkward-devel