Learn R Programming

ORFID (version 1.0.3)

import_ORFID: Import data files from Oregon RFID antenna readers

Description

Imports files from Oregon RFID (radio-frequency identification) ORMR (Oregon RFID Multi-Reader) and ORSR (Oregon RFID Single Reader) antenna readers. Only detections are retained during compilation (events are removed).

This function will only work with raw data downloaded directly from Oregon RFID stationary readers. The files must be delimited (tab, comma, or semicolon) and unedited by the user.

Usage

import_ORFID(file, delim, verbose = FALSE)

Value

Returns a tibble object of data compiled from a single ORFID data file.

Arguments

file

.txt file generated by an Oregon RFID reader.

delim

field/column delimiter, which must be tab ('\t'), comma (',') or semi-colon (';').

verbose

If TRUE, a description of the compiled data is printed to the console.

Author

Hugo Marques <biohmarques@gmail.com>, Annika Putt <annika@instream.net>

Details

The field/column delimiter must be tab, comma or semi-colon for data compilation and further analysis. The function cannot be used for space delimited data.

The tag number column (TAG) is required for subsequent analyses, and the function will return a warning if TAG is not included in the data file.

Note that corruption may occur in reader data files. Check your data files and compiled data carefully to ensure accuracy.

Examples

Run this code

# Import a single tab-deliminated data file from an ORFID reader
import_ORFID(file = system.file("extdata/orfid_data_file.txt", package = "ORFID"), delim = "\t")

Run the code above in your browser using DataLab