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

Description Usage Arguments See Also Examples

View source: R/mdftracks.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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

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

mdftracks documentation built on Jan. 15, 2021, 3:32 p.m.