Skip to content

Instantly share code, notes, and snippets.

@davipatti
Last active August 5, 2021 10:58
Show Gist options
  • Save davipatti/42c932dbc2a374321a7d64dee8e63264 to your computer and use it in GitHub Desktop.
Save davipatti/42c932dbc2a374321a7d64dee8e63264 to your computer and use it in GitHub Desktop.
[Extracting CSV files from a Prism GraphPad .pzfx] #r #rscript #prism #graphpad
library(pzfx)
path = 'data.pzfx'
for (table in pzfx_tables(path))
{
filename = paste(sub(" ", "-", table), "csv", sep = ".")
df = read_pzfx(path, table=table)
write.csv(df, filename)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment