read.kupf | R Documentation |
Reads multiple ku-pf Apparatur files from a directory and returns them as list of data.tables.
read.kupf( path, colnames.out = c("ts", "tens.up", "tens.low", "weight"), firstrow.char = "Date/Time\tTension top\tTension bottom\tWeight", format.time_stamp = "%d.%m.%Y %H:%M:%S", tz.time_stamp = "GMT", ... )
path |
path to ku-pf files (character) |
colnames.out |
colnames of output (default: c('ts', 'tens.up', 'tens.low', 'weight')) |
firstrow.char |
character in first row of ku-pf files (default: 'Date/Time Tension top Tension bottom Weight') (see details) |
format.time_stamp |
POSIXct format of the time stamp column (column 1, here named 'ts') (see |
tz.time_stamp |
time zone of the time stamp column (column 1, here named 'ts') (default: 'GMT') (see |
... |
arguments to |
The standard file format of ku-pf files looks like:
Date/Time Tension top Tension bottom Weight
kPa kPa g
01.11.2017 14:11:16 -0.48 -0.15 969.02
01.11.2017 14:21:16 -0.47 -0.14 969.00
01.11.2017 14:31:16 -0.46 -0.13 968.98
If the first row of the ku-pf files differs to the expression used here ('Date/Time Tension top Tension bottom Weight"),
it can be set with firstrow.char.
File names are added as attribut to the output (attr(out, 'sample_info')).
The ku-pf software gives the possibility to add
sample spezific information in the first row of the file. Depending on the input the ku-pf files than look:
sample_name;project
Date/Time Tension top Tension bottom Weight
kPa kPa g
01.11.2017 14:11:16 -0.48 -0.15 969.02
01.11.2017 14:21:16 -0.47 -0.14 969.00
01.11.2017 14:31:16 -0.46 -0.13 968.98
- For this case the first line is added as attribute to the output (attr(out, 'sample_info')$info)
list of the class dataSEM containing data.tables as list elements.
Ullrich Dettmann
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.