Subset data frame of complementary text data based on intersecting times.

syncData(
  x,
  y,
  datetime.x = NULL,
  datetime.y = NULL,
  timezone = NULL,
  melt = TRUE
)

Arguments

x

data frame to be coerced to one

y

data frame to be coerced to one

datetime.x

character. A character vector containing the column name of datetime in x

datetime.y

character. A character vector containing the column name of datetime in y

timezone

string. Add the correct timezone where the data were collected, as per the R base notation (for additional information, see help(timezomes)). Should this argument be left empty, the time zone will be assumed to be the same as the computer system.

melt

logical. If TRUE, returns one data.frame with a new column matching x and y. If FALSE, return a list with the two filtered data.frames.

Value

data frame with lined up time-stamped data

Author

Alexandre Machado

Examples