lfp_data: Extract and summarize LFP data

View source: R/lfp_data.R

lfp_dataR Documentation

Extract and summarize LFP data

Description

This function extracts and summarizes LFP (Local Field Potential) data from a JSON-like dataset.

Usage

lfp_data(dataset = NULL)

Arguments

dataset

A JSON object/list loaded into the work environment. If NULL, attempts to load the default dataset from the LeadSense package.

Value

A structured LFP dataset including:

  • Power in each frequency band

  • LFP Frequency vs Magnitude for each electrode

  • Time-domain signals for all sequences in the LFP montage

Examples

lfp_dataset <- lfp_data(dataset)
print(lfp_dataset$band_power_results)
print(lfp_dataset$structured_lfp_dataset)

LeadSense documentation built on June 8, 2025, 12:48 p.m.