View source: R/dbpf_GP5W_file_formatter.R
dbpf_GP5W_file_formatter | R Documentation |
Removes some things from GP5W files
dbpf_GP5W_file_formatter(con, in_path)
con |
connection to SensorDB |
in_path |
character, path to csv directory |
This function is very use-specific. It should only ever be applied to the following file structure: ———— Logger: #E50B38 'PT1000TEMP' - USP_EXP2 - (CGI) (...) Delta Time: 666 secs No,Time,#1:oC,#HK-Bat:V,#HK-Temp:oC (Parameter changed ('E50A4C_20150609132643')) 1,20.06.2016 16:57:55,26.2559,3.616,32.69 ... — OR — Logger: #E50B38 'PT1000TEMP' - USP_EXP2 - (CGI) (...) Delta Time: 666 secs No,Time,#1:oC,#2:oC,#3:oC,#HK-Bat:V,#HK-Temp:oC (Parameter changed ('E50A4C_20150609132643')) 1,20.06.2016 16:57:55,26.2559,26.6283,26.8267,3.616,32.69 ...
Function takes a file path, scans for csv files to be converted. Fun variables: in_path Desktop/Yk2021_test/testdir/ new_dir Desktop/Yk2021_test/testdir_clean/ in_file Desktop/Yk2021_test/testdir/testfile.csv out_file Desktop/Yk2021_test/testdir_clean/testfile.csv
Creates directory with new cleaned files.
Hannah Macdonell <hannah.macdonell@carleton.ca>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.