mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-17 09:12:16 -07:00
add quotes around string
This commit is contained in:
parent
952de9ff86
commit
e3395714d1
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ snippet DTrmColumn
|
|||
|
||||
snippet changeColumnType
|
||||
# define columns to change
|
||||
changeCols <- c("${1:col1}, ${1:col2}")
|
||||
changeCols <- c("${1:col1}", "${1:col2}")
|
||||
${3:DT}[,(changeCols):= lapply(.SD, as.factor), .SDcols = changeCols]
|
||||
|
||||
snippet mat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue