wide2long function

Transform id and time of wide format into long format

Transform id and time of wide format into long format

Transform id and time from wide format into long format, i.e., time and id are repeated accordingly so that two vectors of the same length are returned.

wide2long(time, id)

Arguments

  • time: the observation points
  • id: the id for the curve

Returns

a list with time and id

  • Maintainer: David Ruegamer
  • License: GPL-2
  • Last published: 2023-08-12