as.ckan_organization: ckan_organization class helpers

View source: R/as-ckan_organization.R

as.ckan_organizationR Documentation

ckan_organization class helpers

Description

ckan_organization class helpers

Usage

as.ckan_organization(x, ...)

is.ckan_organization(x)

Arguments

x

Variety of things, character, list, or ckan_organization class object

...

Further args passed on to organization_show() if character given

Examples

## Not run: 
ckanr_setup(url = "https://demo.ckan.org/",
key = getOption("ckan_demo_key"))

(orgs <- organization_list(limit = 3))
orgs[[3]]

# create item class from only an item ID
as.ckan_organization(orgs[[3]]$id)

# gives back itself
(x <- as.ckan_organization(orgs[[3]]$id))
as.ckan_organization(x)

## End(Not run)

ckanr documentation built on March 31, 2023, 6:54 p.m.