Learn R Programming

x3ptools (version 0.0.4)

x3p_to_df: Convert an x3p file into a data frame

Description

An x3p file consists of a list with meta info and a 2d matrix with scan depths. fortify turns the matrix into a data frame, using the parameters of the header as necessary.

Usage

x3p_to_df(x3p)

Value

data frame with variables x, y, and value and meta function in attribute

Arguments

x3p

a file in x3p format as returned by function x3p_read

Examples

Run this code
logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
logo_df <- x3p_to_df(logo)
head(logo_df)

Run the code above in your browser using DataLab