Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: export data to JSON #7

Open
silberzwiebel opened this issue Aug 6, 2016 · 1 comment
Open

feature request: export data to JSON #7

silberzwiebel opened this issue Aug 6, 2016 · 1 comment

Comments

@silberzwiebel
Copy link
Contributor

Hi,

I'm unsure if this is the right place here or if I should file this over at itrackR.
I'd like to visualize eye tracking data and artificial gaze data computed by a model by using this visualization utility: https://github.com/ignacioxd/jivui
This tool needs the eye tracking data to be stored as JSON. Is this already somehow possible with edfR? If not: Do you want to implement it?
Maybe my request can actually already be satisfied by using different R packages. in that case I'm looking forward receiving some hints.

Thanks.

@jashubbard
Copy link
Owner

Probably not enough demand to add this to edR or itrackR, but all the eye tracking data are stored as dataframes. If you use edf.batch for example, you can access the fixations/saccades/blinks pretty easily, then just convert those to JSON.

x <- edf.batch('path/to/file.edf')
fixes <- x$fixations
saccs <- x$saccades

Just did a quick google search and there appear to be straightforward ways to export a data frame to JSON (http://stackoverflow.com/questions/25550711/convert-data-frame-to-json). Is this what you're looking for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants