| selectExpr {SparkR} | R Documentation | 
Select from a DataFrame using a set of SQL expressions.
## S4 method for signature 'DataFrame,character' selectExpr(x, expr, ...)
x | 
 A DataFrame to be selected from.  | 
expr | 
 A string containing a SQL expression  | 
... | 
 Additional expressions  | 
A DataFrame
## Not run: 
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- jsonFile(sqlContext, path)
##D selectExpr(df, "col1", "(col2 * 5) as newCol")
## End(Not run)