View source: R/sdf_interface.R
sdf_with_sequential_id | R Documentation |
Add a sequential ID column to a Spark DataFrame. The Spark
zipWithIndex
function is used to produce these. This differs from
sdf_with_unique_id
in that the IDs generated are independent of
partitioning.
sdf_with_sequential_id(x, id = "id", from = 1L)
x |
A |
id |
The name of the column to host the generated IDs. |
from |
The starting value of the id column |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.