Package 'prism2R'

Title: Read Prism Tables Into R
Description: This package provides functions to read and parse GraphPad Prism files (.pzfx or .prism) into R data frames, enabling users to analyse and manipulate their data within the R environment. It currently consists of two functions - `get_table_names` and `read_prism`, both of which take the file path to a prism file as input and output either the table names or the table contents themselves.
Authors: Miha Kosmac [aut, cre]
Maintainer: Miha Kosmac <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2025-12-01 02:19:16 UTC
Source: https://github.com/Biomiha/prism2R

Help Index


Get preferred analysis tables from a .prism file

Description

Get preferred analysis tables from a .prism file

Usage

get_analysis_tables(prism_file)

Arguments

prism_file

The path to the prism file

Value

A named list of data.frames with model parameters

Examples

# prism_file is the file path to the .prism file. Analysis data tables in Prism can include multiple (quite often hidden) tabs.
# One of these is usually designated as the preferred tab and this is returned as a list object, commonly a data.frame.
demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism")
get_analysis_tables(demo_file)

Get the names of the prism data tables

Description

Get the names of the prism data tables

Usage

get_table_names(prism_file)

Arguments

prism_file

The path to the prism file

Value

A vector of table names

Examples

# prism_file is the file path to the prism file. It needs to either be a .pzfx or a .prism file.
demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism")
get_table_names(demo_file)

Read prism data tables into R

Description

Read prism data tables into R

Usage

read_prism(prism_file, sheet = NA)

Arguments

prism_file

a string - the path to the prism file

sheet

Which table to read in. sheet can either be a number (the index of the table), a character string from the get_table_names output or NA (default), in which case all tables in the file are read.

Value

A data.frame that tries to reproduce the data table output in prism or a named list of data.frames.

Examples

# prism_file is the file path to the prism file. It needs to either be a .pzfx or a .prism file.
demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism")
read_prism(demo_file, sheet = 1) # This will read only the first data table.
read_prism(demo_file, sheet = "XY: Entering replicate data") # This will read the selected data table.
read_prism(demo_file, sheet = NA) # This will read all data tables in the file.