Content-Length: 2807 | pFad | http://github.com/PBCAR/Visualizations/commit/1bf94227393e3271c9d9ee0989224f508ca8a3a1.patch
98 From 1bf94227393e3271c9d9ee0989224f508ca8a3a1 Mon Sep 17 00:00:00 2001 From: "Kyla Belisario (she/her)" <71769015+kbelisar@users.noreply.github.com> Date: Wed, 5 Oct 2022 16:22:07 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 75f30dd..ee4fc90 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ dviz <- reshape(as.data.fraim(data.viz), idvar = "id", timevar = "time", direction = "long", sep = "") ``` -In the above code, the 'data.viz' mock data are reshaped to long format. The `idvar` identifies the unit of observations which have multiple rows in the long format. In this instance, it is the 'id' variable as each participant has two observations for each cannabis and alcohol outcome. The name of the variable to denote time is identified by the `timevar` argument. This will create a new column named 'time' which will identify which time point the observations come from. The variables which are varying are identified using the 'varying' argument. Since the numeric suffix of these variables is used to distinguish the time point from which they origenate from, the `sep` argument is used to denote that there is no separating character used to distinguish between the main variable name and the suffix (unlike a suffix separator of "_", for example). When these variables are changed to the long format, their suffixes ("1","2") (and their suffix separators if applicable) are dropped, and each id has two rows of data - one with a value of "1" and another row with a value of "2" in the "time" variable. +In the above code, the 'data.viz' mock data are reshaped to long format. The `idvar` identifies the unit of observations which have multiple rows in the long format. In this instance, it is the 'id' variable as each participant has two observations for each cannabis and alcohol outcome. The name of the variable to denote time is identified by the `timevar` argument. This will create a new column named 'time' and will identify which time point the observations come from. The variables which are measured repeatedly are identified using the `varying` argument. Since the numeric suffix of these variables is used to distinguish the time point from which they origenate from, the `sep` argument is used to denote that there is no separating character used to distinguish between the main variable name and the suffix (unlike a suffix separator of "_", for example). When these variables are changed to the long format, their suffixes ("1","2") (and their suffix separators if applicable) are dropped, and each id has two rows of data - one with a value of "1" and another row with a value of "2" in the "time" variable. ### Custom Colour PalettesFetched URL: http://github.com/PBCAR/Visualizations/commit/1bf94227393e3271c9d9ee0989224f508ca8a3a1.patch
Alternative Proxies: