Pivot ADCP data from bin height as column names to bin height as observations
adcp_pivot_longer.RdPivot ADCP data from bin height as column names to bin height as observations
Arguments
- dat_wide
- Data frame of ADCP data, as returned from - adcp_read_txt()or- adcp_assign_alt().
- rm_NA
- Logical argument. If - rm_NA = TRUE, rows where- sea_water_speed_m_sis- NAOR- sea_water_to_direction_degreeis- NAwill be removed.
Value
Returns data in a long format.
If dat_wide is from adcp_read_txt() (i.e., bin altitude has
  not been assigned), then the following columns are returned: timestamp_utc,
  sensor_depth_below_surface_m (SensorDepth), bin_id (the default column
  names when imported using read_adcp_txt; starts at V8), sea_water_speed_m_s
  (WaterSpeed), and sea_water_to_direction_degree (WaterDirection).
If dat_wide is from adcp_assign_altitude(), then the
  following columns are returned: timestamp_utc, sensor_depth_below_surface_m
  (SensorDepth), bin_depth_below_surface_m, bin_height_above_sea_floor_m,
  sea_water_speed_m_s (WaterSpeed), and sea_water_to_direction_degree
  (WaterDirection).