Skip to content

Commit e9a511d

Browse files
authored
Update vignette text (#6621)
1 parent 03c647f commit e9a511d

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
@@ -135,7 +135,7 @@ dcast(DT.m1, family_id ~ ., fun.agg = function(x) sum(!is.na(x)), value.var = "d
135135

136136
Check `?dcast` for other useful arguments and additional examples.
137137

138-
## 2. Limitations in current `melt/dcast` approaches
138+
## 2. Limitations in previous `melt/dcast` approaches
139139

140140
So far we've seen features of `melt` and `dcast` that are implemented efficiently for `data.table`s, using internal `data.table` machinery (*fast radix ordering*, *binary search* etc.).
141141

@@ -170,7 +170,7 @@ str(DT.c1) ## gender column is class IDate now!
170170

171171
As an analogy, imagine you've a closet with four shelves of clothes and you'd like to put together the clothes from shelves 1 and 2 together (in 1), and 3 and 4 together (in 3). What we are doing is more or less to combine all the clothes together, and then split them back on to shelves 1 and 3!
172172

173-
2. The columns to `melt` may be of different types, as in this case (`character` and `integer` types). By `melt`ing them all together, the columns will be coerced in result, as explained by the warning message above and shown from output of `str(DT.c1)`, where `gender` has been converted to *`character`* type.
173+
2. The columns to `melt` may be of different types. By `melt`ing them all together, the columns will be coerced in result.
174174

175175
3. We are generating an additional column by splitting the `variable` column into two columns, whose purpose is quite cryptic. We do it because we need it for *casting* in the next step.
176176

0 commit comments

Comments
 (0)