mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-18 09:14:44 -07:00
fix typos
This commit is contained in:
parent
9f17821eb0
commit
952de9ff86
1 changed files with 3 additions and 2 deletions
|
|
@ -28,7 +28,8 @@ snippet DTrmColumn
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet changeColumnType
|
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]
|
${3:DT}[,(changeCols):= lapply(.SD, as.factor), .SDcols = changeCols]
|
||||||
|
|
||||||
snippet mat
|
snippet mat
|
||||||
|
|
@ -128,7 +129,7 @@ snippet mclApply_block
|
||||||
parallel::mclapply(
|
parallel::mclapply(
|
||||||
X = ${1:listVar},
|
X = ${1:listVar},
|
||||||
FUN = function(X)
|
FUN = function(X)
|
||||||
${2:functioName}(X),
|
${2:functionName}(X),
|
||||||
mc.cores = parallel::detectCores()
|
mc.cores = parallel::detectCores()
|
||||||
)
|
)
|
||||||
${0}
|
${0}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue