Learn R Programming

bulletr (version 0.1)

fortify_x3p: Convert a list of x3p file into a data frame

Description

x3p format consists of a list with header info and a 2d matrix of scan depths. fortify_x3p turn the matrix into a variable within a data frame, using the parameters of the header as necessary.

Usage

fortify_x3p(x3p)

Arguments

x3p
a file in x3p format as return by function read_x3p

Value

data frame with variables x, y, and value

Examples

Run this code
data(br411)
br411_fort <- fortify_x3p(br411)
head(br411_fort)

Run the code above in your browser using DataLab