From 952de9ff8672dc13afb6adb1c2cde7686b9bc206 Mon Sep 17 00:00:00 2001 From: dchakro <35454738+dchakro@users.noreply.github.com> Date: Tue, 11 Oct 2022 11:11:36 +0300 Subject: [PATCH] fix typos --- r.snippets.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r.snippets.txt b/r.snippets.txt index 86a8d0d..bd3fffc 100644 --- a/r.snippets.txt +++ b/r.snippets.txt @@ -28,7 +28,8 @@ snippet DTrmColumn ${0} snippet changeColumnType - changeCols <- c("${1:col1}, ${1:col2}") # define comumns to change + # define columns to change + changeCols <- c("${1:col1}, ${1:col2}") ${3:DT}[,(changeCols):= lapply(.SD, as.factor), .SDcols = changeCols] snippet mat @@ -128,7 +129,7 @@ snippet mclApply_block parallel::mclapply( X = ${1:listVar}, FUN = function(X) - ${2:functioName}(X), + ${2:functionName}(X), mc.cores = parallel::detectCores() ) ${0}