old function - for previous ISO standard. 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.

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

data(br411) br411_fort <- fortify_x3p(br411)
#> Warning: use x3ptools::x3p_to_df instead
#> Error in 1:info$num_profiles: argument of length 0
head(br411_fort)
#> Error in head(br411_fort): object 'br411_fort' not found