hlpr_smooth: Smooth variables spatially

View source: R/helper-functions.R

hlpr_smoothR Documentation

Smooth variables spatially

Description

Helper function to use 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.

verbose

Logical

Value

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


kueckelj/SPATA documentation built on March 22, 2022, 9:59 p.m.