Squashed commit of the following:

commit 9116f1abc195cdafc0223c214b6b902239910f60
Author: arunsrinivasan <aragorn168b@gmail.com>
Date:   Sat Nov 16 06:29:03 2013 +0100

    Testing git-svn

    A test commit of git-svn hybrid

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1040 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Squashed commit of the following:

commit ecc249955ffd5f09a59286ecd299b4611a44f0b1
Author: arunsrinivasan <aragorn168b@gmail.com>
Date:   Tue Nov 19 08:52:46 2013 +0100

    Fix for bug #5115

    set() and `:=` not able to add columns by reference on objects of class that inherit from data.table. Tests added and tested successfully. NEWS updated. This was a consequence of fixing `set()` to add new columns by reference (C implementation) fixed in commit 1024.

commit 944cf3879a9d4049ec12a6abec126d329d031201
Author: arunsrinivasan <aragorn168b@gmail.com>
Date:   Tue Nov 19 08:29:43 2013 +0100

    Fix for bug #5114 - .SD is locked error in some cases

    `DT[, .SD, .SDcols="y"][, y:=as.numeric(y)]` resulted in ".data.table.locked=TRUE" error.
    Fixed and tests added. NEWS updated.

commit 9e68bcf80fe93c5f948454e68b4fe2a84905e84c
Author: arunsrinivasan <aragorn168b@gmail.com>
Date:   Sat Nov 16 23:25:27 2013 +0100

    Fix for FR #4996

    X[Y, col := value] when Y has no match is now caught early and X is simply returned. When "col" is an existing column, key(X) is not set to NULL as there was no update.

commit cfb4513e71eea5332bbc7835fe07b76a02bc16fe
Author: arunsrinivasan <aragorn168b@gmail.com>
Date:   Sat Nov 16 16:03:16 2013 +0100

    Fix for FR #2356

    as.data.table.*(x, keep.rownames=TRUE) where "x" is a named vector now adds a new column with default name "rn"

commit 9116f1abc195cdafc0223c214b6b902239910f60
Author: arunsrinivasan <aragorn168b@gmail.com>
Date:   Sat Nov 16 06:29:03 2013 +0100

    Testing git-svn

    A test commit of git-svn hybrid

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1041 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Added fast radix order for numeric type (squashed commit):

    1) ordering numeric type is about 5-8x faster than "order(.)".
    2) The sorting is automatically done as per data.table requirements - NaN < NA < numbers.
    3) Added a R-wrapper "radixorder2" for easy call (not exported). `setkey()` is not yet modified (this should be done soon).
    4) Tests added and tested successfully.
    5) No NEWS updated (as it's internal change). Not sure if I should, yet.

commit ecc249955ffd5f09a59286ecd299b4611a44f0b1
Author: arunsrinivasan <aragorn168b@gmail.com>
Date:   Tue Nov 19 08:52:46 2013 +0100

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1042 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Minor changes to fradix.c

Cleared up unnecessary variables, added comments, cleaned up code etc… (minor).

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1043 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Fix for case 2 of bug #5149

Case where dcast.data.table(DT, x ~ ., mean) did not result in aggregated result when necessary. This is now fixed.

NEWS updated. Tests added and tested successfully.

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1044 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Fixed svn/git merge issue.

Fixed svn/git merge issue.

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1045 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Squashed commit: Minor fixes for dcast.data.table and radixorder2

a) dcast.data.table's handling of formula as a character lead to errors in certain cases. Now corrected. Also better error messages are now provided.
b) radixorder2 now returns "integer(0)" for "numeric(0)" input. Tests added and tested successfully.

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1046 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Various improvements - 'data.table' must be *significantly faster* on most operations.

    >> removed fradix_order. added fastradixdouble and fastradixint. removed 'radixorder2' from 'setkey' and replaced it with 'iradixorder' and 'dradixorder' corresponding to int and double types.
    >> modified 'fastorder' to use 'iradixorder' and 'dradixorder' instead of 'regularorder1' and 'ordernumtol'.
    >> implemented 'rlixlist' (in C) and a R wrapper function with same name - faster version of 'duplist'. also incremental memory allocation. returns a list along with the length in addition to the indices now.
    >> replaced 'duplist' (f__ and len__ calculations) in 'data.table.R' with 'rlixlist'. Also changed 'sort.list(.)' to 'dradixorder'.
    >> modified previous tests by changing names wherever necessary, added new tests wherever appropriate and tested successfully.
    >> NEWS (modified) and updated as well.
    >> TO DO: replace 'duplist' and 'sort.list(...) in 'duplicated.data.table' and add tests.

(All local git commit messages are removed from this commit. Visit github: https://github.com/arunsrinivasan/datatable for individual commit messages.)

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1047 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Removing 'ghost' fradix.c from repo

git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/datatable@1048 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Merge https://github.com/arunsrinivasan/datatable