merge_description: Combine resource descriptions

View source: R/resource.r

merge_descriptionR Documentation

Combine resource descriptions

Description

Merges descriptions on URI, and attempts to merge columns from either description (filling with NA where the column exists only in one description).

Usage

merge_description(x, y)

Arguments

x

A resource description (inherits from data frame)

y

A resource description (inherits from data frame)

Value

A resource description (inherits from data frame)

Examples

a <- resource("a", data.frame(uri="a", label="A"))
description(a) <- merge_description(description(a), data.frame(uri="a", vowel=TRUE))

Swirrl/linked-data-frames documentation built on Sept. 14, 2022, 6:15 p.m.