Skip to content

Remove some uses of CategoricalArrays, update docs #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 22, 2017
Merged

Conversation

nalimilan
Copy link
Member

The first commit fixes docs which were not updated by #13.

The second one removes special cases for CategoricalArray which are no longer really needed.

Since we now assume all non-Real columns are categorical, we can get rid
of some methods.
function ModelFrame(trms::Terms, d::AbstractDataTable;
contrasts::Dict = Dict())
df, msng = null_omit(DataTable(map(x -> d[x], trms.eterms)))
names!(df, convert(Vector{Symbol}, map(string, trms.eterms)))
for c in eachcol(df) _droplevels!(c[2]) end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kleinschmidt Can you confirm this is OK? I've checked that unused levels continue to be skipped (since we call unique), but I'd like to be sure I'm not missing something.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov-io
Copy link

Codecov Report

Merging #15 into master will increase coverage by 1.14%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   93.11%   94.25%   +1.14%     
==========================================
  Files           5        5              
  Lines         334      331       -3     
==========================================
+ Hits          311      312       +1     
+ Misses         23       19       -4
Impacted Files Coverage Δ
src/modelframe.jl 94.59% <ø> (+3.68%)
src/modelmatrix.jl 89.39% <ø> (ø)
src/contrasts.jl 93.87% <100%> (ø)
src/formula.jl 100% <ø> (+0.91%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c8a187...8fea812. Read the comment docs.

function ModelFrame(trms::Terms, d::AbstractDataTable;
contrasts::Dict = Dict())
df, msng = null_omit(DataTable(map(x -> d[x], trms.eterms)))
names!(df, convert(Vector{Symbol}, map(string, trms.eterms)))
for c in eachcol(df) _droplevels!(c[2]) end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ararslan ararslan merged commit f787403 into master Feb 22, 2017
@ararslan ararslan deleted the nl/categorical branch February 22, 2017 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants