Github user shivaram commented on a diff in the pull request: https://github.com/apache/spark/pull/14178#discussion_r70704012 --- Diff: docs/sparkr.md --- @@ -138,6 +136,18 @@ printSchema(people) # |-- age: long (nullable = true) # |-- name: string (nullable = true) +# Similarly, multiple files can be read with read.json +people <- read.json(c("./examples/src/main/resources/people.json", "./examples/src/main/resources/people2.json")) + +{% endhighlight %} +</div> + +The data sources API natively supports CSV formatted input files. For more information please refer to SparkR [read.df](api/R/read.df.html) API documentation. + +<div data-lang="r" markdown="1"> +{% highlight r %} +df <- read.df(csvPath, "csv", header = "true", inferSchema = "true", na.string = "NA") --- End diff -- This should be `na.strings` (string -> strings)
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org