create_url: Create URL from a unique identifier

Description Usage Arguments Value Author(s) Examples

View source: R/helpers.R

Description

To avoid repetition, the raw data frames don't contain reports' URLs. This function constructs a URL given an Erowid or Dreamjournal identifier.

Usage

1
create_url(x, user = NULL, type = NULL)

Arguments

x

Unique identifier (e.g. ID column from erowid)

user

Dreamjournal username

type

"erowid" or "dreamjournal"

Value

A character string containing the full URL.

Author(s)

Matti Vuorre mv2521@columbia.edu

Examples

1
2
3
4
# To obtain an Erowid URL
create_url(erowid$id[1])
# To obtain a dreamjournal URL
create_url(dreamjournal$id[1], dreamjournal$user[1])

mvuorre/tmasc documentation built on Oct. 25, 2019, 8:56 p.m.