get_language_tokens: Get a list of variable tokens and their labels for the...

View source: R/get_language_tokens.R

get_language_tokensR Documentation

Get a list of variable tokens and their labels for the language you specify, in order to re-code variables in R.

Description

Get a list of variable tokens and their labels for the language you specify, in order to re-code variables in R.

Usage

get_language_tokens(url, username, password, language)

Arguments

url

Insert the base URL for your instance of Go.Data here. Don't forget the forward slash "/" at end!

username

The email address for your Go.Data login.

password

The password for your Go.Data login

language

The language ID you are retrieving translation file for, for instance "english_us"

Value

Returns data frame of language tokens for your language. You will only be able to execute this function if you have access to the language tokens.

Examples

## Not run: 
url <- "https://MyGoDataServer.com/"
username <- "myemail@email.com"
password <- "mypassword"
language <- "english_us"

language_tokens <- get_language_tokens(
  url = url,
  username = username,
  password = password,
  language = language
)

## End(Not run)

WorldHealthOrganization/godataR documentation built on May 21, 2023, 11:30 a.m.