spark-instrumented-optimizer/R/pkg
Yu ISHIKAWA f4bc01f1f3 [SPARK-9855] [SPARKR] Add expression functions into SparkR whose params are simple
I added lots of expression functions for SparkR. This PR includes only functions whose params  are only `(Column)` or `(Column, Column)`.  And I think we need to improve how to test those functions. However, it would be better to work on another issue.

## Diff Summary

- Add lots of functions in `functions.R` and their generic in `generic.R`
- Add aliases for `ceiling` and `sign`
- Move expression functions from `column.R` to `functions.R`
- Modify `rdname` from `column` to `functions`

I haven't supported `not` function, because the name has a collesion with `testthat` package. I didn't think of the way  to define it.

## New Supported Functions

```
approxCountDistinct
ascii
base64
bin
bitwiseNOT
ceil (alias: ceiling)
crc32
dayofmonth
dayofyear
explode
factorial
hex
hour
initcap
isNaN
last_day
length
log2
ltrim
md5
minute
month
negate
quarter
reverse
round
rtrim
second
sha1
signum (alias: sign)
size
soundex
to_date
trim
unbase64
unhex
weekofyear
year

datediff
levenshtein
months_between
nanvl
pmod
```

## JIRA
[[SPARK-9855] Add expression functions into SparkR whose params are simple - ASF JIRA](https://issues.apache.org/jira/browse/SPARK-9855)

Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com>

Closes #8123 from yu-iskw/SPARK-9855.
2015-08-12 18:33:27 -07:00
..
inst [SPARK-9855] [SPARKR] Add expression functions into SparkR whose params are simple 2015-08-12 18:33:27 -07:00
R [SPARK-9855] [SPARKR] Add expression functions into SparkR whose params are simple 2015-08-12 18:33:27 -07:00
src-native [SPARK-6811] Copy SparkR lib in make-distribution.sh 2015-05-23 00:04:01 -07:00
tests [SPARK-5654] Integrate SparkR 2015-04-08 22:45:40 -07:00
.lintr [SPARK-8537] [SPARKR] Add a validation rule about the curly braces in SparkR to .lintr 2015-06-22 14:35:38 -07:00
DESCRIPTION [SPARK-9855] [SPARKR] Add expression functions into SparkR whose params are simple 2015-08-12 18:33:27 -07:00
NAMESPACE [SPARK-9318] [SPARK-9320] [SPARKR] Aliases for merge and summary functions on DataFrames 2015-07-31 19:24:44 -07:00