read.mdf: Read an MTrackJ Data File ('.mdf')

View source: R/read-mdf.R

read.mdfR Documentation

Read an MTrackJ Data File (.mdf)

Description

Reads an MTrackJ Data File (.mdf) file in a data.frame.

Usage

read.mdf(
  file,
  drop.Z = F,
  include.point.numbers = FALSE,
  include.channel = F,
  generate.unique.ids = F,
  text,
  fileEncoding = ""
)

Arguments

file

MTrackJ Data File (.mdf) file with tracking data.

drop.Z

drop z-coordinate (for 2D data)

include.point.numbers

include the point numbers in the mdf file (NB these can be different from the time/frame points)

include.channel

include channel information

generate.unique.ids

combine cluster and id columns to get unique ids

text

character string: if file is not supplied and this is, then data are read from the value of text via a text connection. Notice that a literal string can be used to include (small) data sets within R code.

fileEncoding

character string: if non-empty declares the encoding to be used on a file (not a connection) so the character data can be re-encoded as they are written. See base::file().

See Also

MTrackJ Data Format

Other mdftracks functions: write.mdf()

Examples

read.mdf(system.file("extdata", "example.mdf", package = 'mdftracks'))


burgerga/mdftracks documentation built on Feb. 2, 2024, 2:09 a.m.