Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Accessing measures in dataframe?

Hi there,

I'm using the Mousetrap R package to analyze some mousetracking data I collected in PsychoPy.

I've been doing some things in R beyond the package working with exported wide and long mousetracking data that Mousetrap got into shape for me, but I'd love to be able to also access the measures that Mousetrap calculates (particularly AUC and MD).

Is it possible to access that? Or might I be doing something wrong in how I'm exporting?

I've been processing it in with this code to get my mt data, but I wished I could get the measures to come through, too.

Thanks!

Comments

  • Hi there,

    If I understand it correctly, you would like to merge the trial information (from mt_cklic$data) with the mesaures information (from mt_cklic$measures). As both are data.frames, you can simply merge them. Actually, a code example for this is already included in the documentation of mt_measures: http://pascalkieslich.github.io/mousetrap/reference/mt_measures.html

    mt_example <- mt_measures(mt_example)
    
    # Merge measures with trial data
    mt_example_results <- dplyr::inner_join(
      mt_example$data, mt_example$measures,
      by="mt_id")
      
    

    Best regards,

    Pascal

Sign In or Register to comment.