Description Usage Arguments Value Author(s) Examples
This function reads the ASCII output files to R.
1 | read_LA950(file, version = "8", normalise = TRUE)
|
file |
|
version |
|
normalise |
|
list
object containing sample ID, grain-size data
and metadata.
Michael Dietze
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## uncomment to use or use example data set just below
# ## load example data
# x <- read.LA950(file = "LA950.txt")
## read example data set
data(LA950)
# inspect imported data structure
str(LA950)
# plot grain-size distribution curve
plot(LA950, type = "l", log = "x")
# import all files in a folder and write data to a matrix
# X <- numeric(0)
# ID <- numeric(0)
# files <- list.files()
# for(i in 1:length(files)) {
# x <- read.LA950(file = files[i])
# X <- rbind(X, x$y)
# ID <- c(ID, x$meta$ID)
# }
# colnames(X) <- x$x
# rownames(X) <- ID
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.