Learn R Programming

LeadSense (version 0.0.2.0)

lfp_data: 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)

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

Arguments

dataset

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

Examples

Run this code
lfp_dataset <- lfp_data(dataset)
print(lfp_dataset$band_power_results)
print(lfp_dataset$structured_lfp_dataset)

Run the code above in your browser using DataLab