Skip to content

Commit 127f79d

Browse files
authored
indentation
1 parent 21f7a7b commit 127f79d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vignettes/datatable-reshape.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ So far we've seen features of `melt` and `dcast` that are implemented efficientl
142142
However, there are situations we might run into where the desired operation is not expressed in a straightforward manner. For example, consider the `data.table` shown below:
143143

144144
```{r}
145-
s2 <- "family_id age_mother name_child1 name_child2 name_child3 gender_child1 gender_child2 gender_child3
145+
s2 = "family_id age_mother name_child1 name_child2 name_child3 gender_child1 gender_child2 gender_child3
146146
1 30 Ben Anna NA 1 2 NA
147147
2 27 Tom NA NA 2 NA NA
148148
3 26 Lia Sam Amy 2 2 1
149149
4 32 Max Zoe Joe 1 1 1
150150
5 29 Dan Eva NA 2 1 NA"
151-
DT <- fread(s2)
151+
DT = fread(s2)
152152
DT
153153
## 1 = female, 2 = male
154154
```

0 commit comments

Comments
 (0)