Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/14082#discussion_r70001842
--- Diff: docs/sql-programming-guide.md ---
@@ -343,50 +336,8 @@ In addition to simple column references and
expressions, DataFrames also have a
</div>
<div data-lang="r" markdown="1">
-{% highlight r %}
-# Create the DataFrame
-df <- read.json("examples/src/main/resources/people.json")
-
-# Show the content of the DataFrame
-showDF(df)
-## age name
-## null Michael
-## 30 Andy
-## 19 Justin
-
-# Print the schema in a tree format
-printSchema(df)
-## root
-## |-- age: long (nullable = true)
-## |-- name: string (nullable = true)
-# Select only the "name" column
-showDF(select(df, "name"))
-## name
-## Michael
-## Andy
-## Justin
-
-# Select everybody, but increment the age by 1
-showDF(select(df, df$name, df$age + 1))
-## name (age + 1)
-## Michael null
-## Andy 31
-## Justin 20
-
-# Select people older than 21
-showDF(where(df, df$age > 21))
-## age name
-## 30 Andy
-
-# Count people by age
-showDF(count(groupBy(df, "age")))
-## age count
-## null 1
-## 19 1
-## 30 1
-
-{% endhighlight %}
+{% include_example untyped_transformations r/RSparkSQLExample.R %}
--- End diff --
this is just internal stuff, but "untyped_transformations" is a bit odd?
shouldn't we call this "dataframe_operations" or something?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]