Skip to content

get_data() is a helper function for loading datasets. It provides the user with the ability to set the name of the data frame within their own environment (e.g. df).

Usage

get_data(...)

Arguments

...

A string, naming the desired dataset. Available datasets include:

  • survey: Wave 25 of the 2014-2023 British Election Study Internet Panel

Value

get_data() returns a data frame.

Examples

df <- get_data("survey")