rapids/src/features/phone_locations/barnett/library
Hannah Roberts b52059b027 Ensure date/time format is maintained
Within the 'determine which is home' for loop, 'xx' is the midpoint of two datetime objects. When the midpoint is calculated to be midnight, only the date is returned. This can be replicated with:

mydates <- as.POSIXct("2018-01-01 00:00:00", tz = "UTC")
mydates
[1] "2018-01-01 UTC"

This results in 'hourofday' being NA as an hour cannot be found. By adding the suggested format wrapper, the time is maintained and 'hourofday' can be determined. It can then successfully be applied to the embedded if-statement within the loop.

mydates <- format(as.POSIXct("2018-01-01 00:00:00", tz = "UTC"), "%Y-%m-%d %H:%M:%S")
mydates
[1] "01-01-2018 00:00:00"
2021-07-23 10:12:11 -04:00
..
AvgFlightDur.R Update file names 2020-10-19 15:07:12 -04:00
AvgFlightLen.R Update file names 2020-10-19 15:07:12 -04:00
Collapse2Pause.R Update file names 2020-10-19 15:07:12 -04:00
DailyMobilityPlots.R Update file names 2020-10-19 15:07:12 -04:00
DailyRoutineIndex.R Update file names 2020-10-19 15:07:12 -04:00
DayDist.R Update file names 2020-10-19 15:07:12 -04:00
DistanceTravelled.R Update file names 2020-10-19 15:07:12 -04:00
ExtractFlights.R Update file names 2020-10-19 15:07:12 -04:00
ExtractTimePeriod.R Update file names 2020-10-19 15:07:12 -04:00
GPS2MobMat.R Update file names 2020-10-19 15:07:12 -04:00
GPSmobility-internal.R Update file names 2020-10-19 15:07:12 -04:00
GetMobilityFeaturesMat.R Update file names 2020-10-19 15:07:12 -04:00
GuessPause.R Update file names 2020-10-19 15:07:12 -04:00
Hometime.R Update file names 2020-10-19 15:07:12 -04:00
InitializeParams.R Update file names 2020-10-19 15:07:12 -04:00
IsFlight.R Update file names 2020-10-19 15:07:12 -04:00
LatLong2XY.R Update file names 2020-10-19 15:07:12 -04:00
LocationAt.R Update file names 2020-10-19 15:07:12 -04:00
MaxDiam.R Update file names 2020-10-19 15:07:12 -04:00
MaxDistBetweenTrajectories.R Update file names 2020-10-19 15:07:12 -04:00
MaxHomeDist.R Update file names 2020-10-19 15:07:12 -04:00
MaxRadius.R Update file names 2020-10-19 15:07:12 -04:00
MinsMissing.R Update file names 2020-10-19 15:07:12 -04:00
MobilityFeatures.R Update file names 2020-10-19 15:07:12 -04:00
MobmatQualityOK.R Update file names 2020-10-19 15:07:12 -04:00
ProbPause.R Update file names 2020-10-19 15:07:12 -04:00
ProgressBar.R Update file names 2020-10-19 15:07:12 -04:00
RadiusOfGyration.R Update file names 2020-10-19 15:07:12 -04:00
RandomBridge.R Update file names 2020-10-19 15:07:12 -04:00
SigLocEntropy.R Update file names 2020-10-19 15:07:12 -04:00
SigLocs.R Ensure date/time format is maintained 2021-07-23 10:12:11 -04:00
SigLocsVisited.R Update file names 2020-10-19 15:07:12 -04:00
SimulateMobilityGaps.R Update file names 2020-10-19 15:07:12 -04:00
StdFlightDur.R Update file names 2020-10-19 15:07:12 -04:00
StdFlightLen.R Update file names 2020-10-19 15:07:12 -04:00
WriteSurveyAnswers2File.R Update file names 2020-10-19 15:07:12 -04:00
plot.flights.R Update file names 2020-10-19 15:07:12 -04:00
plotlimits.R Update file names 2020-10-19 15:07:12 -04:00