toDF() not handling RDD
<p>I have an RDD of Rows called RowRDD.  I am simply trying to convert into DataFrame.  From the examples I have seen on the internet from various places, I am seeing that I shoudl be trying RowRDD.toDF()  I am getting the error :</p>

<p><code>value toDF is not a member of org.apache.spark.rdd.RDD[org.apache.spark.sql.Row]</code></p>