Convert Household Travel Survey (trips and individuals) into state sequence format
GNU AFFERO GENERAL PUBLIC LICENSE v3
table of trips
with with the following fields (the order matters, the name does not):
- Individual ID (join key with the table of individuals)
- Trip origin (code or name)
- Trip destination (code or name)
- Departure hour (integer from 4 to 28, i.e. 4AM the next day)
- Arrival hour (integer from 4 to 28, i.e. 4AM the next day)
- Departure minute (integer from 0 to 59)
- Arrival minute (integer from 0 to 59)
- Purpose at origin (code or name)
- Purpose at destination (code or name)
- Transport mode (code or name)
table of individuals
with with the following fields (the order matters, the name does not):
- Individual ID (join key with the table of trips)
- Weights
IMPORTANT: correspondance between both tables is required, i.e. no individual without trip and no trip without individual
- a character matrix corresponding to
TraMineR
SPS format. This table can be used directly with theseqdef()
function.