format_fb_data: Format the Facebook mobility data

View source: R/read_and_format_files.R

format_fb_dataR Documentation

Format the Facebook mobility data

Description

This function removes unnecessary characters such as ⁠\\N⁠ and ensures that the format of the date and QuadKeys is correct.

Usage

format_fb_data(data, keep_format = NULL)

Arguments

data

A data.frame with a quadkey and date_time columns and other variables

keep_format

Vector of column names, besides date_time, day and quadkey, that you don't want to convert to a number.

Value

A data.frame without ⁠\N⁠, quadkey without scientific notation and a new column day and hour

See Also

read_fb_mobility_files

Examples


data(result_read_fb_mobility_data)
format_fb_data(data = result_read_fb_mobility_data)


quadkeyr documentation built on April 3, 2025, 8:52 p.m.