Example Prism files Main functionality Additional features Back in the early days of grad school I used to use Prism GraphPad a lot before switching to R. Prism is a great piece of software and I’ve seen scientists using them a lot. Recently I wanted to import a Prism .pzfx file into R, and as usual, I went to Google expecting there’ll be some readxl or readr equivalent for prism. Surprisingly, I didn’t find much more than this SO question. So, how do you import a prism file into R? The easiest way is probably exporting the prism file to a text file then read it into R. But this just doesn’t feel that good, right? So I started looking into the file structure of .pzfx files and tried to parse it by myself. Starting from Prism5, in addition to the binary file it also stores the data table in XML format which is possible to parse. After some trials and errors I made a little R package (github, CRAN) to read .pzfx files into R data frames. I’ll briefly document how it works here.
...