-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathCategoricalArrays.jl
50 lines (39 loc) · 1.52 KB
/
CategoricalArrays.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module CategoricalArrays
export CategoricalPool, CategoricalValue
export AbstractCategoricalArray, AbstractCategoricalVector, AbstractCategoricalMatrix,
CategoricalArray, CategoricalVector, CategoricalMatrix
export LevelsException
export categorical, compress, decompress, droplevels!, levels, levels!, levelcode,
isordered, ordered!
export cut, recode, recode!
import DataAPI: unwrap
export unwrap
using DataAPI
using Missings
using Printf
import Compat
# JuliaLang/julia#36810
if VERSION < v"1.5.2"
Base.OrderStyle(::Type{Union{}}) = Base.Ordered()
end
include("typedefs.jl")
include("pool.jl")
include("value.jl")
include("array.jl")
include("missingarray.jl")
include("subarray.jl")
include("extras.jl")
include("recode.jl")
include("deprecated.jl")
if !isdefined(Base, :get_extension)
using Requires: @require
end
@static if !isdefined(Base, :get_extension)
function __init__()
@require JSON="682c06a0-de6a-54ab-a142-c8b1cf79cde6" include("../ext/CategoricalArraysJSONExt.jl")
@require RecipesBase="3cdcf5f2-1ef4-517c-9805-6587b60abb01" include("../ext/CategoricalArraysRecipesBaseExt.jl")
@require SentinelArrays="91c51154-3ec4-41a3-a24f-3f23e20d615c" include("../ext/CategoricalArraysSentinelArraysExt.jl")
@require StructTypes="856f2bd8-1eba-4b0a-8007-ebc267875bd4" include("../ext/CategoricalArraysStructTypesExt.jl")
end
end
end