Quantcast
Channel: r software hub
Viewing all articles
Browse latest Browse all 1015

tibble 1.0.0

$
0
0

By hadleywickham

I’m pleased to announce tibble, a new package for manipulating and printing data frames in R. Tibbles are a modern reimagining of the data.frame, keeping what time has proven to be effective, and throwing out what is not. The name comes from dplyr: originally you created these objects with tbl_df(), which was most easily pronounced as “tibble diff”.

Install tibble with:

install.packages("tibble")

This package extracts out the tbl_df class associated functions from dplyr. Kirill Müller extracted the code from dplyr, enhanced the tests, and added a few minor improvements.

Creating tibbles

You can create a tibble from an existing object with as_data_frame():

as_data_frame(iris)
#> Source: local data frame [150 x 5]
#>
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> (dbl) (dbl) (dbl) (dbl) (fctr)
#> 1 5.1 3.5 1.4 0.2 setosa
#> 2 4.9 3.0 1.4 0.2 setosa
#> 3 4.7 3.2 1.3 0.2 setosa
#> 4 4.6 3.1 ...read more

Source:: http://blog.rstudio.org


Viewing all articles
Browse latest Browse all 1015