## simulating a move2 object with 4 tracks
data <- mt_sim_brownian_motion(tracks = letters[1:4])
## retaining tracks "b" and "d"
data |>
filter_track_data(.track_id = c("b", "d"))
## adding the attribute "sex" to the track data
data <- data |>
mutate_track_data(sex = c("m", "f", "f", "m"))
## retaining tracks of females
data |> filter_track_data(sex == "f")
Run the code above in your browser using DataLab