soc_metadata | R Documentation |
Retrieves metadata attributes from a tibble returned by soc_read()
or using the dataset url, including
dataset-level information and column-level descriptions.
soc_metadata(dataset)
dataset |
A tibble returned by |
This function pulls out descriptive metadata such as the dataset's ID, title, attribution, category, creation and update timestamps, description, any domain-specific fields, and field descriptions defined by the data provider.
An object of class soc_meta
, which includes:
Asset identifier (four-by-four ID).
Asset name.
Attribution or publisher of the asset.
Display name of the asset owner.
Provenance of asset (official or community).
Textual description of the asset.
Date asset was created.
Date asset data was last updated
Date asset metadata was last updated
Category label assigned by the domain.
Tags applied by the domain.
Metadata associated with the asset assigned by the domain.
A dataframe with the following columns:
Names of asset columns.
Labels of asset columns.
Datatypes of asset columns.
Description of asset columns.
Permanent URL where the asset can be accessed.
Direct asset link.
License associated with the asset.
url <- "https://soda.demo.socrata.com/dataset/USGS-Earthquakes-2012-11-08/3wfw-mdbc/"
data <- soc_read(url, soc_query(limit = 1000L))
metadata <- soc_metadata(data)
print(metadata)
metadata <- soc_metadata(url)
print(metadata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.