clean_reduntant_rows: Removes Redundant Rows in a data frame assuming statefulness

Description Usage Arguments Examples

View source: R/common.R

Description

Removes Redundant Rows in a data frame assuming statefulness

Usage

1
clean_reduntant_rows(df, clean_colname = "value", echo = F)

Arguments

df

Data.frame in timestamp, value1, value2,...

clean_colname

Name of the column to clean as basis

echo

Whether to return messages or not

Examples

1
2
3
4
5
test_interval =
  data.frame(timestamp = as.POSIXct(c(0.5, 1, 1.008, 1.011), origin = "1970-01-01"),
            x     = c("a", "b", "b", "b"),
             y     = c("e", "e", "e", "f"))
clean_reduntant_rows(test_interval, "x")

mtconnectR documentation built on May 30, 2017, 4:15 a.m.

Search within the mtconnectR package
Search all R packages, documentation and source code