resmerge.ij: File management

Description Usage Arguments Value Author(s) Examples

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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))

LeafArea documentation built on July 3, 2019, 5:04 p.m.