merge_location_data: Merge two dataframes of location data, keeping most recently...

Description Usage Arguments Value See Also

Description

merge_location_data Given two data frames, group observations, then select which dataset to use based on rank.

Usage

1
2
merge_location_data(df1, df2, byvar = "date", rankvar = "fetchtime",
  sortvar = "date", loud = FALSE)

Arguments

df1

data frame of archived wunderground data.

df2

data frame of archived wunderground data.

byvar

variable to group by in choosing data from df1 and df2.

rankvar

variable to use in choosing data from df1 and df2.

sortvar

variable to sort results by.

loud

more output

Value

a dataframe containing data from df1 and df2, where data is included rom the dataframe which has the largest rankvar if the same byvar group is present in both data frames, or if it is only in one of df1 or df2.

See Also

update_weather_data store_weather_data


CraigMohn/wunderWrapper documentation built on May 15, 2019, 5:34 p.m.