View source: R/massFunctions.R
readMassFile | R Documentation |
This function reads the raw mass data files created during weighing and edits them into a useful dataframe, with the option of saving them as a csv. The function creates a list of three dataframes, which is returned invisibly. One gives the cleaned-up, edited mass data (good). The other two give bad or strange data that may be useful for investigating mass files. You have the option of saving good records as a csv with the argument writeCsv. The writeCsv argument defaults to not writing csv file.
readMassFile(file, writeCsv = FALSE)
file |
character filename or filename with path of raw mass data file |
writeCsv |
logical indicating whether to print output to csv file (saves automatically to working directory) |
list of bad lines, strange lines and good masses, returned invisibly. A csv file is returned if writeCsv is TRUE.
combineMassFiles
and listBadFiles
and
investigateMassFiles
which are other useful functions that
deal with mass files
## Not run:
setwd("I:\\Departments\\Research\\EchinaceaVolunteers\\Balance\\sampleForEchLab\\CG2009_rawFiles")
yy <- readMassFile("sm 21 oct 1899 batch 9.txt", writeCsv = FALSE)
yy$bad
yy$strange
str(yy$good)
dim(yy$bad)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.