atl_median_smooth: Filter and smooth data.

Description Usage Arguments Value

View source: R/fun_smooth_data.R

Description

Filter and smooth data.

Usage

1
atl_median_smooth(data, x = "X", y = "Y", time = "TIME", moving_window = 3)

Arguments

data

A dataframe object returned by getData. Must contain the columns "X", "Y", "SD", "NBS", "TAG", "TIME"; these are the X coordinate, Y coordinate, standard deviation in measurement, number of ATLAS towers that received the signal, the tag number, and the numeric time, in milliseconds from 1970-01-01.

x

The X coordinate.

y

The Y coordinate.

time

The timestamp, ideally as an integer. median calculation.

moving_window

The size of the moving window for the median smooth. Must be an odd number.

Value

A datatable class object (extends data.frame) which has the additional columns posID and ts, which is TIME converted to human readable POSIXct format.


Orrslab/Pratik_atlastools documentation built on Dec. 31, 2020, 3:23 p.m.