Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Julia

You're reading from  Mastering Julia

Product type Book
Published in Jul 2015
Publisher
ISBN-13 9781783553310
Pages 410 pages
Edition 1st Edition
Languages

DataFrames and RDatasets


When dealing with tabulated datasets there are occasions when some of the values are missing. One of the features of statistical languages is that they can handle such situations.

In Julia, the DataFrames package has been developed in order to treat such cases and this is the subject of this chapter.

The DataFrames package

The package extends the Julia base by adding three new types:

  • NA is introduced in order to represent a missing value. This type only has one particular value NA.

  • DataArray is a type that emulates Julia's standard Array type, but is able to store missing values in the array.

  • DataFrame is a type that is capable of representing tabular datasets such as those found in typical databases or spreadsheets. The concept of the data frame is most evident in R language and is one of the cornerstones of its popularity.

Except for its ability to store NA values, the DataArray type is meant to behave exactly as Julia's standard Array type. In particular, DataArray...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}