Package 'katilingban'

Title: General Purpose Functions for Katilingban
Description: To support general and non-specific organisational tasks requiring or supported by R, this package provides general purpose functions that facilitate performant and efficient implementation of standardised workflows. This is particularly useful for website update, newsletter generation, reports, notes and other related tasks that are or will be automated or supported within R.
Authors: Ernest Guevarra [aut, cre] , Abdoul Aziz Goza [aut], Emmanuel Mandalazi [aut], Lio Fieschi [aut]
Maintainer: Ernest Guevarra <[email protected]>
License: GPL-3
Version: 0.1.0
Built: 2025-03-11 04:46:10 UTC
Source: https://github.com/katilingban/katilingban

Help Index


Perform manual authentication with specific Google application using self-generated specified authentication credentials

Description

Perform manual authentication with specific Google application using self-generated specified authentication credentials

Usage

auth_google(appname, key, secret)

Arguments

appname

Application name

key

Google API key

secret

Client secret

Value

A Google-authenticated session

Examples

## Not run: 
  auth_google(appname = "googledrive",
              key = "ADD/KEY/HERE",
              secret = "ADD/SECRET/HERE")

## End(Not run)

Create Leaflet marker popup content

Description

Given point location data, this function facilitates the creation of corresponding vector of character values to show in the popup for Leaflet markers.

Usage

create_popup_content(.data)

Arguments

.data

A data.frame containing information corresponding to each mapped point location.

Value

A vector of character values with length equal to the number of mapped point locations

Examples

## Not run: 
  df <- read_kb_experience()
  df <- get_kb_coordinates(.data = df)
  create_popup_content(.data = df)

## End(Not run)

Get coordinates of areas that point to areas of experience of Katilingban consultants

Description

Get coordinates of areas that point to areas of experience of Katilingban consultants

Usage

get_kb_coordinates(.data)

Arguments

.data

Object containing information on Katilingban consultants' experience. This is held in a Google Sheets document and can be retrieved using read_kb_experience function.

Value

A tibble containing the same information as the original input data but with longitude and latitude coordinates included.

Examples

## Not run: 
  kb <- read_kb_experience()
  get_kb_coordinates(.data = kb)

## End(Not run)

Katilingban consultants' experience list

Description

Katilingban consultants' experience list

Usage

kb_experience

Format

A tibble with 141 rows and 12 columns

Variable Description
project_name Name of project
type1 Project type 1
type2 Project type 2
type3 Project type 3
year Year of project
country Country location of project
subnational_location Subnational location of project
consultant Name of consultant
location Full name of location
lon Longitude coordinate of project location
lat Latitude coordinate of project location
tooltip Tooltip

Examples

kb_experience

Read Katilingban Experience Google Sheets

Description

Read Katilingban Experience Google Sheets

Usage

read_kb_experience(
  ss = "1l9ov8NEND-gROprl4gR5K2iiTgcQfrGirItz9uExKl0",
  sheet = 1
)

Arguments

ss

Something that identifies a Google Sheet: ID, URL, etc. Set to 1l9ov8NEND-gROprl4gR5K2iiTgcQfrGirItz9uExKl0 for the Katilingban Experience Google Sheets

sheet

Worksheet in Google Sheets to read. Can be specified as the name of the worksheet or by position using a number.

Value

A dribble/tibble of the Katilingban Experience Google Sheets

Examples

## Not run: 
  read_kb_experience()

## End(Not run)

Read a specified Katilingban Google Sheets

Description

Read a specified Katilingban Google Sheets

Usage

read_kb_sheets(ss, sheet = NULL, ...)

Arguments

ss

Something that identifies a Google Sheet: ID, URL, etc.

sheet

Worksheet in Google Sheets to read. Can be specified as the name of the worksheet or by position using a number.

...

Additional parameters passed to googlesheets4::read_sheet

Value

A dribble/tibble of the specified Google Sheet

Examples

## Not run: 
  read_kb_sheets(ss = "1l9ov8NEND-gROprl4gR5K2iiTgcQfrGirItz9uExKl0")

## End(Not run)