You could also rename them with names
Unfortunately the API doesn't show the example of that
https://spark.apache.org/docs/latest/api/R/index.html
On Thu, Aug 20, 2015 at 7:43 PM -0700, Sun, Rui rui@intel.com wrote:
Hi,
You can create a DataFrame using load.df() with a specified schema.
Hi,
You can create a DataFrame using load.df() with a specified schema.
Something like:
schema - structType(structField(“a”, “string”), structField(“b”, integer), …)
read.df ( …, schema = schema)
From: Franc Carter [mailto:franc.car...@rozettatech.com]
Sent: Wednesday, August 19, 2015 1:48 PM
Thanks - works nicely
cheers
On Fri, Aug 21, 2015 at 12:43 PM, Sun, Rui rui@intel.com wrote:
Hi,
You can create a DataFrame using load.df() with a specified schema.
Something like:
schema - structType(structField(“a”, “string”), structField(“b”,
integer), …)
read.df ( …,