From 7a9267f91af83cb916560ee0ea99b280ae972ee1 Mon Sep 17 00:00:00 2001 From: dchakro <35454738+dchakro@users.noreply.github.com> Date: Mon, 17 Oct 2022 11:57:28 +0300 Subject: [PATCH] unmelt a table --- r.snippets.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r.snippets.txt b/r.snippets.txt index e4f5246..b5107ca 100644 --- a/r.snippets.txt +++ b/r.snippets.txt @@ -208,4 +208,6 @@ snippet parallelRDS snippet objectSize format(object.size(${1:Var1}), units = "MB", standard = "SI") - \ No newline at end of file + +snippet unMelt + mat <- data.table::dcast.data.table(myDT, row ~ col, value.var = "value") \ No newline at end of file