This repository has been archived by the owner on May 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.jl.cov | ||
*.jl.*.cov | ||
*.jl.mem | ||
docs/build | ||
docs/site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using DataArrays, Documenter | ||
|
||
makedocs( | ||
modules = [DataArrays], | ||
clean = false, | ||
format = :html, | ||
sitename = "DataArrays.jl", | ||
authors = "Simon Kornblith, John Myles White, and other contributors", | ||
pages = [ | ||
"Home" => "index.md", | ||
"Missing Data and Arrays" => "da.md", | ||
"Utilities" => "util.md", | ||
], | ||
) | ||
|
||
deploydocs( | ||
repo = "github.com/JuliaStats/DataArrays.jl.git", | ||
target = "build", | ||
deps = nothing, | ||
make = nothing, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Representing missing data | ||
|
||
```@meta | ||
CurrentModule = DataArrays | ||
``` | ||
|
||
```@docs | ||
NA | ||
NAtype | ||
``` | ||
|
||
## Arrays with possibly missing data | ||
|
||
```@docs | ||
AbstractDataArray | ||
AbstractDataVector | ||
AbstractDataMatrix | ||
DataArray | ||
DataVector | ||
DataMatrix | ||
@data | ||
isna | ||
allna | ||
anyna | ||
dropna | ||
levels | ||
``` | ||
|
||
## Pooled arrays | ||
|
||
```@docs | ||
PooledDataArray | ||
@pdata | ||
compact | ||
setlevels | ||
setlevels! | ||
replace! | ||
PooledDataVecs | ||
getpoolidx | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# DataArrays.jl | ||
|
||
This package provides functionality for working with [missing data](https://en.wikipedia.org/wiki/Missing_data) | ||
in Julia. | ||
In particular, it provides the following: | ||
|
||
* `NA`: A singleton representing a missing value | ||
* `DataArray{T}`: An array type that can house both values of type `T` and missing values | ||
* `PooledDataArray{T}`: An array type akin to `DataArray` but optimized for arrays with a smaller set of unique | ||
values, as commonly occurs with categorical data | ||
|
||
## Installation | ||
|
||
This package is available for Julia versions 0.6 and up. | ||
To install it, run | ||
|
||
```julia | ||
Pkg.add("DataArrays") | ||
``` | ||
|
||
from the Julia REPL. | ||
|
||
## Contents | ||
|
||
```@contents | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Utility functions | ||
|
||
```@meta | ||
CurrentModule = DataArrays | ||
``` | ||
|
||
```@docs | ||
cut | ||
gl | ||
xtab | ||
xtabs | ||
reldiff | ||
percent_change | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters