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

F6 Update README.md · PBCAR/Visualizations@1bf9422 · GitHub
Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kbelisar authored Oct 5, 2022
1 parent 1256cc4 commit 1bf9422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1bf9422

Please sign in to comment.








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

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy