as.EurostatDataList: Coerce a data.frame to a EurostatDataList

as.EurostatDataListR Documentation

Coerce a data.frame to a EurostatDataList

Description

Some manipulations of the EurostatDataList data.frame (imported with importDataList) e.g. filtering with package dplyr may remove the S3 class tag EurostatDataList. This function coerces it back to EurostatDataList after checking that the critical columns (PCode, Dataset name,Link) are present. This is useful if a user wants to print and browse this filtered data.frame as a specially formatted HTML table.

Usage

as.EurostatDataList(x, SearchCriteria = "", ...)

Arguments

x

A (most likely filtered subset of) EurostatDataList data.frame returned by importDataList.

SearchCriteria

A string describing the search criteria used for filtering/subsetting.

...

Additional arguments to be passed to or from methods (currently not used).

Value

A data.frame of S3 class EurostatDataList.


alekrutkowski/eurodata documentation built on Nov. 20, 2024, 10:17 p.m.