qc_set_timezone: Set the timezone of the TIMESTAMP

Description Usage Arguments Details Value See Also

View source: R/qc_data_general_checks.R

Description

Brute force convert of timezone

Usage

1
qc_set_timezone(data, tz, parent_logger = "test")

Arguments

data

Data frame with the TIMESTAMP variable to set, or a POSIXct vector.

tz

Character vector with the compatible name of the timezone, as the one provided by the qc_get_timezone function.

Details

When reading data from xlsx or csv, TIMESTAMP is readed as POSIXct and by default the timezone is UTC. With this function timezone can be changed without change the TIMESTAMP. This is made with the force_tz function of the lubridate package.

Value

A data frame as the data provided, with the TIMESTAMP variable associated to the timezone specified

See Also

Other Quality Checks Functions: create_dic, qc_coordinates, qc_data_results_table, qc_env_ranges, qc_env_vars_presence, qc_ext_radiation, qc_factor_values, qc_fix_timestamp, qc_get_biomes_spdf, qc_get_biome, qc_get_sapw_md, qc_get_timestep, qc_get_timezone, qc_is_timestamp, qc_md_cols, qc_md_results_table, qc_mind_the_gap_eff, qc_mind_the_gap, qc_out_hampel_filter, qc_out_of_range, qc_out_remove, qc_outliers_process, qc_outliers_subs, qc_pl_treatments, qc_rad_conversion, qc_range_dic, qc_sapf_ranges, qc_sapw_area_calculator, qc_sapw_conversion, qc_soil_texture, qc_species_names_info, qc_species_names, qc_species_verification, qc_start_process, qc_swc_check, qc_swc_fix, qc_time_interval, qc_timestamp_concordance, qc_timestamp_errors, qc_timestamp_nas


sapfluxnet/sapfluxnetQC1 documentation built on April 11, 2018, 4:28 a.m.