read_idTracker: Read idTracker data

Description Usage Arguments Details Value See Also

View source: R/read_functions.R

Description

Loads a txt file containing tracking data from idTracker into R.

Usage

1
2
read_idTracker(file = NULL, folder = NULL, type = "nogaps",
  multiple = TRUE, animals = NULL)

Arguments

file

Either directly supply a path to a file, a list of paths,

folder

Or supply a path to a folder.

type

If folder is supplied, use type to indicate which track type should be read. Can be either "gaps" or "nogaps".

multiple

If TRUE, will try to find files in the subfolders of folder and combine them into one long data.frame. Only use when using folder.

animals

Optional vector of names (ordered in the same order as the tracking id's). Otherwise numbers are used instead.

Details

This function generally assumes that each file is in it's own folder. If not, build a list of file paths beforehand and supply that as file.

Value

A long data.frame (with class tbl_df and source idTracker).

See Also

Other trackr read functions: read_Ctrax


Ax3man/trackr documentation built on Oct. 8, 2019, 10:53 p.m.