hlpr_smooth: Smooth variables spatially

View source: R/h.R

hlpr_smoothR Documentation

Smooth variables spatially

Description

Helper function to be used within purrr::imap()

Usage

hlpr_smooth(
  variable,
  var_name,
  coords_df,
  smooth_span,
  aspect,
  subset,
  pb = NULL
)

Arguments

variable

The variable to smooth

var_name

Name of the variable to smooth

coords_df

Data.frame that contains x and y coordinates

smooth_span

Span to smooth with

aspect

Gene or Gene set

subset

Vector of variable names to smooth

pb

A progress-bar or NULL.

Value

Smoothed variable (data.frame within purrr::imap())


kueckelj/SPATA2 documentation built on March 16, 2024, 10:25 a.m.