RIDLDataset | R Documentation |
RIDL Dataset
RIDL Dataset
RIDLDataset class containing all logic for accessing, creating, and updating datasets and associated resources.
ridl::RIDLObject
-> RIDLDataset
resources
list of Resource object within the dataset
data
placeholder for Dataset field element
new()
Create a new Dataset object
RIDLDataset$new(initial_data = NULL, configuration = NULL)
initial_data
list with required field to create a dataset
configuration
a Configuration object
A Dataset object
ridl_resource_get()
Get the nth resource of the dataset
RIDLDataset$ridl_resource_get(n)
n
integer, the index of the resource to access
a Resource object, the selected resource
ridl_resource_get_all()
Get all resources of the dataset
RIDLDataset$ridl_resource_get_all(pattern = NULL, format = NULL)
pattern
character, regex pattern in resource name
format
character, format of the resources
a list of Resource objects, all resources available in the dataset
ridl_resource_count()
Get number of dataset resources
RIDLDataset$ridl_resource_count()
The number of RIDLResource objects
ridl_resource_delete()
Delete a resource by its index
RIDLDataset$ridl_resource_delete(index = 1L)
index,
the index of the resource to delete
ridl_resource_delete_all()
Delete all resources from a dataset
RIDLDataset$ridl_resource_delete_all()
ridl_resource_add()
Add a resource to a dataset
RIDLDataset$ridl_resource_add(resource, ignore_dataset_id = FALSE)
resource
RIDLResource, the resource
ignore_dataset_id
logical, ignore the dataset id
ridl_delete()
Delete a dataset
RIDLDataset$ridl_delete(id, configuration = NULL)
id
character, the id or name of the dataset to delete
configuration
RIDLConfig, the configuration
ridl_container_set()
Add a container to a dataset
RIDLDataset$ridl_container_set(container_name)
container_name
the name of the container to add
ridl_browse()
Browse the dataset page on RIDL
RIDLDataset$ridl_browse()
ridl_config_get()
Get the current configuration in use
RIDLDataset$ridl_config_get()
A configuration object, the configuration in use
get_date_range()
Get the dataset date
RIDLDataset$get_date_range()
a date, the dataset date.
ridl_container_get()
Get the dataset container name
RIDLDataset$ridl_container_get()
a RIDLContainer, the container where the dataset is shared
ridl_container_get_title()
Get the dataset container title
Get the title of the dataset for pretty printing
RIDLDataset$ridl_container_get_title()
a character, the title
collaborator_list()
Get all collaborators for a given dataset
RIDLDataset$collaborator_list( user = NULL, capacity = "member", configuration = NULL )
user
character, id or name of the user
capacity
character, the user capacity
configuration
RIDLConfig, the configuration
a character, the title
get_fields()
Get dataset fields
RIDLDataset$get_fields()
list of fields for a dataset
get_required_fields()
Get dataset required fields
RIDLDataset$get_required_fields()
list of required fields for a dataset
check_required_fields()
Check dataset required field
RIDLDataset$check_required_fields()
a logical value, TRUE if the the dataset is not missing a required field and throws an error otherwise
as_list()
Get dataset field into list
RIDLDataset$as_list()
a list with dataset field
print()
Print a Dataset object
RIDLDataset$print()
clone()
The objects of this class are cloneable with this method.
RIDLDataset$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.