as.data.frame.connect_list_hits: Convert usage data to a data frame

View source: R/get.R

as.data.frame.connect_list_hitsR Documentation

Convert usage data to a data frame

Description

Converts an object returned by get_usage() into a data frame with parsed column types. By default, extracts path and user_agent from the data field, if available.

Usage

## S3 method for class 'connect_list_hits'
as.data.frame(x, row.names = NULL, optional = FALSE, ..., unnest = TRUE)

Arguments

x

A connect_list_hits object (from get_usage()).

row.names

Passed to base::as.data.frame().

optional

Passed to base::as.data.frame().

...

Passed to base::as.data.frame().

unnest

Logical; if TRUE (default), extracts nested fields using tidyr. Set to FALSE to skip unnesting.

Value

A data.frame with one row per usage record.


connectapi documentation built on Aug. 9, 2025, 1:09 a.m.