<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/wanted-cdata-test-pilots/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.win-vector.com/blog/2018/02/wanted-cdata-test-pilots/"> R – Win-Vector Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>I need a few volunteers to please “test pilot” the development version of the <a rel="nofollow" href="https://www.r-project.org/" target="_blank"><code>R</code></a> package <a rel="nofollow" href="https://github.com/WinVector/cdata" target="_blank"><code>cdata</code></a>, please.</p>
<p><center><a rel="nofollow" href="https://en.wikipedia.org/wiki/Jacqueline_Cochran" target="_blank"><img border="0" src="https://i0.wp.com/www.win-vector.com/blog/wp-content/uploads/2018/02/Jackie_Cochran_at_1938_Bendix_Race.jpg?resize=229%2C360" alt="Jackie Cochran at 1938 Bendix Race" width="229" title="Jackie_Cochran_at_1938_Bendix_Race.jpg" data-recalc-dims="1" height="360"><br>
Jacqueline Cochran: at the time of her death, no other pilot held more speed, distance, or altitude records in aviation history than Cochran.</a><br>
</center></p>
<p><span></span></p>
<p>Our <a rel="nofollow" href="https://github.com/WinVector/cdata" target="_blank"><code>cdata</code></a> package has an upcoming new feature called “<a rel="nofollow" href="https://winvector.github.io/cdata/reference/build_frame.html" target="_blank"><code>build_frame()</code></a>” that allows for the very easy and legible entry of example <code>data.frame</code>s. It allows one to type in a <code>data.frame</code> in a row-oriented form (much like <code>tibble::tribble()</code>).</p>
<p>Using <code>build_frame()</code> we can type in a by-hand example <code>data.frame</code> as follows:</p>
<pre>
library(&quot;cdata&quot;)

d &lt;- build_frame(
  &quot;names&quot;, &quot;x&quot;, &quot;y&quot; |
  &quot;a&quot;    , 1  ,  1  |
  &quot;b&quot;    , 2  ,  4  |
  &quot;c&quot;    , 3  ,  9  )
</pre>
<p>The idea is the above code looks very much like it prints (both are in a row-oriented form):</p>
<pre>
print(d)

#   names x  y
# 1     a 1  1
# 2     b 2  4
# 3     c 3  9
</pre>
<p>The number of columns was inferred from the location of the first infix operator “<code>|</code>“, and all other formatting details are irrelevant.</p>
<p><code>cdata</code> also includes a printer that prints any simple <code>data.frame</code> (one containing only numeric, character, and logical values) in a ready to share format:</p>
<pre>
cat(draw_frame(
  data.frame(names = c('a', 'b', 'c'),
             x = c(1, 2, 3),
             y = c(1, 4, 9))
  ))

# build_frame(
#    &quot;names&quot;, &quot;x&quot;, &quot;y&quot; |
#    &quot;a&quot;    , 1  , 1   |
#    &quot;b&quot;    , 2  , 4   |
#    &quot;c&quot;    , 3  , 9   )
</pre>
<p>More information and examples can be found in the method documentation (<a rel="nofollow" href="https://winvector.github.io/cdata/reference/build_frame.html" target="_blank">help(build_frame)</a>, <a rel="nofollow" href="https://winvector.github.io/cdata/reference/draw_frame.html" target="_blank">help(draw_frame)</a>, and <a rel="nofollow" href="https://winvector.github.io/cdata/reference/qchar_frame.html" target="_blank">help(qchar_frame)</a>, and the <a rel="nofollow" href="https://winvector.github.io/cdata/articles/FrameTools.html" target="_blank">frame tools vignette</a>.</p>
<p>This is new functionality, and I wouldn’t mind a few “test pilots” to generate some feedback before submitting this update to <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a>. Please consider filing issues on the <a rel="nofollow" href="https://github.com/WinVector/cdata" target="_blank">project</a>, or emailing me (email in the <a rel="nofollow" href="https://github.com/WinVector/cdata/blob/master/DESCRIPTION" target="_blank">project description</a>).</p>
<p>To try it you would need to install the development version of <code>cdata</code>, which in <code>R</code> can be accomplished by a series of command such as the following:</p>
<pre>
install.packages(c(&quot;devtools&quot;, &quot;wrapr&quot;))
devtools::install_github(&quot;WinVector/cdata&quot;)
</pre>
<p>I also <em>strongly</em> recommend <code>R</code> users check out <code>cdata</code>‘s primary function: <a rel="nofollow" href="http://winvector.github.io/FluidData/FluidDataReshapingWithCdata.html" target="_blank">next generation fluid reshaping of data</a> (more teaching materials: <a rel="nofollow" href="http://winvector.github.io/FluidData/RowsAndColumns.html" target="_blank">1</a>, <a rel="nofollow" href="http://winvector.github.io/FluidData/DataWranglingAtScale.html" target="_blank">2</a>, <a rel="nofollow" href="http://winvector.github.io/FluidData/FluidData.html" target="_blank">3</a>, and <a rel="nofollow" href="https://www.youtube.com/watch?v=4cYbP3kbc0k&feature=youtu.be" target="_blank">4</a>). It is a new thing to learn, but it takes your data engineering and data wrangling to a whole new level.</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.win-vector.com/blog/2018/02/wanted-cdata-test-pilots/"> R – Win-Vector Blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/IIl5fL503o8" height="1"></a></div>