loadMiData: Load MiBand data

Description Usage Arguments Value Author(s)

Description

Load in MiBand data from databases directory. Extract steps, slight sleep and deep sleep data as a data frame. Fill in missing data with average values of the same day in a week.

Usage

1
loadMiData(path, user_id)

Arguments

path

a character string specifing the "databases" directory which is copied from android system /data/data/com.xiaomi.hm.health. Example: If folder databases is in home directory, then path should be "~/databases".

user_id

a caracter string specifying your id. User id can be accessed in the user info page in MiBand android app. Or you can find it as a part of file name specifying the origin_db file. For example, you may find a file named as "origin_db_123456" in the databases directory, then parse character string "123456" as user_id.

Value

return a list with element "cleandata" as a data frame with missing value and "data_week" as a data frame with missing data substitued.

Author(s)

Borg


BigBorg/MiBand_R_Package documentation built on May 5, 2019, 2:42 p.m.