| substr {SparkR} | R Documentation | 
An expression that returns a substring.
## S4 method for signature 'Column' substr(x, start, stop)
x | 
 a Column.  | 
start | 
 starting position. It should be 1-base.  | 
stop | 
 ending position.  | 
substr since 1.4.0
Other colum_func: alias,
between, cast,
endsWith, otherwise,
over, startsWith
## Not run: 
##D df <- createDataFrame(list(list(a="abcdef")))
##D collect(select(df, substr(df$a, 1, 4))) # the result is `abcd`.
##D collect(select(df, substr(df$a, 2, 4))) # the result is `bcd`.
## End(Not run)