@@ -111,7 +111,7 @@ int(::LightInterface, x) = errlight("int")
111
111
112
112
All the categorical elements with the same pool as `x` (including
113
113
`x`), returned as a list, with an ordering consistent with the pool.
114
- Here `x` has `CategoricalValue` or `CategoricalString` type, and
114
+ Here `x` has `CategoricalValue` type, and
115
115
`classes(x)` is a vector of the same eltype. Note that `x in
116
116
classes(x)` is always true.
117
117
@@ -225,10 +225,11 @@ istable(::Mode, ::Val{:table}) = true
225
225
decoder(x)
226
226
227
227
Return a callable object for decoding the integer representation of a
228
- `CategoricalString` or `CategoricalValue` sharing the same pool as
229
- `x`. (Here `x` is of one of these two types.) Specifically, one has
230
- `decoder(x)(int(y)) == y` for all `y in classes(x)`. One can also call `decoder(x)` on
231
- integer arrays, in which case `decoder(x)` is broadcast over all elements.
228
+ `CategoricalValue` sharing the same pool the `CategoricalValue`
229
+ `x`. Specifically, one has `decoder(x)(int(y)) == y` for all
230
+ `CategoricalValue`s `y` having the same pool as `x`. One can also call
231
+ `decoder(x)` on integer arrays, in which case `decoder(x)` is
232
+ broadcast over all elements.
232
233
233
234
### Examples
234
235
```julia
255
256
256
257
It is *not* true that `int(d(u)) == u` always holds.
257
258
258
- See also: [`int`](@ref), [`classes`](@ref) .
259
+ See also: [`int`](@ref).
259
260
"""
260
261
decoder (x) = decoder (get_interface_mode (), x)
261
262
0 commit comments