Description Usage Arguments Value Note Author(s) Examples
Given the filename of a file downloaded from the EMEspy, this function imports the specified file into the R environment as a dataframe.
1 | import_emespy(filename,prefix,suffix)
|
filename |
The complete filename (including path, name and extension) to the file you want to import into R. |
prefix |
(Optional, no default) Sometimes it is handy to import the column names with a prefix (e.g. "EMESPY_") so they are unique within the dataframe if you want to use the time series to compare with another instrument. The result of specifying a prefix is that all columns in the imported dataset (except for PosixTime) are named (e.g. "EMESPY_") EMESPY_dect, EMESPY_2100UL, etc. |
suffix |
(Optional, no default) Similar to above. The result of specifying a suffix (e.g. "_Vm") is that all columns related to frequency bands show this suffix in their variable name (e.g.) dect_Vm, 2100UL_Vm etc. |
The result is an R dataframe of your EMEspy file which is ready to work with.
The EMEspy example .xls files are huge and therefore (sorry!) only available from within SwissTPH. But chances are you have your own anyways! If not, just contact me.
Marloes Eeftens, marloes.eeftens@swisstph.ch
1 2 3 4 | #Specify an .xls file:
my_filename<-"V:/EEH/R_functions/EMFtools/data/emespy_example.xls"
my_emespy_file<-import_emespy(filename=my_filename,prefix="EMESPY_")
str(my_emespy_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.