resmerge.ij {LeafArea} | R Documentation |
File management
Description
File management function. The output file contains sample names in the first column and total leaf area (cm2) of the sample (e.g., one individual plant or one ramet) in the second column.
Usage
resmerge.ij(path, prefix = "\\.|-")
Arguments
path |
Path to the target directory |
prefix |
Regular expression to manage file names |
Value
A data frame of total leaf area for each sample
sample |
Name of sample |
total.leaf.area |
Total leaf area of the sample (cm2) |
Author(s)
Masatoshi Katabuchi mattocci27@gmail.com
Examples
#prepare example files
data(leafdata)
tf <- paste(tempdir(),"/",sep="")
for (i in 1:7){
write.table(leafdata[[i]],paste(tf,names(leafdata)[i],sep=""),sep="\t")
}
#list of files
list.files(tf)
#combine multiple tab-delimited text files with a leaf area value
#(one text file for each original JPEG image file) that share the same
#filename 'prefix', defined as the part of the filename preceding the first
#hyphen (-) or period (.).
resmerge.ij(tf)
#combine multiple tab-delimited text files with a leaf area value
#(one text file for each original JPEG image file) that share the same
#filename 'prefix', defined as the part of the filename preceding the first
#'.txt'.
resmerge.ij(tf, prefix = ".txt")
unlink(list.files(tf))
[Package LeafArea version 0.1.8 Index]