read_contacts: Read contacts database

View source: R/contacts.R

read_contactsR Documentation

Read contacts database

Description

Extract data from the Address Book in an iOS Backup.

Usage

read_contacts(x, collect = TRUE)

Arguments

x

An ios_backup object (or something that can be passed to get_backup) or the path to a sqlite AddressBook database.

collect

Should dplyr results be collected before being returned.

Value

This will return a tibble with the contact data. If collect==FALSE, it will be a lazy tibble. The following columns will be included

  • contact_id A unique ID for each contact

  • first Contact first name

  • last Contact last name

  • emain_phone Contact e-mail or phone number

Examples

## Not run: 
backup <- get_backup()
read_contacts(backup)

#Read a copy
orig <- path_contacts(backup)
mycopy <- file.path(getwd(), "contacts.sqlitedb")
file.copt(orig, mycopy)
read_contacts(mycopy)

#Join with SMS
read_sms_data(backup) %>% left_join(read_contacts(backup))

## End(Not run)

MrFlick/myphone documentation built on Sept. 16, 2022, 12:07 p.m.