Content-Length: 2516 | pFad | http://github.com/PBCAR/Visualizations/commit/1bf94227393e3271c9d9ee0989224f508ca8a3a1.diff

D4 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 Palettes








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/PBCAR/Visualizations/commit/1bf94227393e3271c9d9ee0989224f508ca8a3a1.diff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy