Movatterモバイル変換


[0]ホーム

URL:


libr versionlibr lifecyclelibr downloadslibr total downloadsR-CMD-checkCodecov test coverage

Introduction tolibr

R is a very flexible and powerful language. But there are someinconveniences when working with data:

  1. Loading many related datasets: When you havemany data files that are related in some way, it is troublesome when youwant to use them all in your analysis. Most data import packages makeyou load each file individually. And the thing is,almost alldata comes in sets of related files. So you would think that therewould be an easy mechanism to load them all at once.

  2. Examining the Attributes of Your Data: Once youhave a set of related data files loaded into your program, the nextproblem is how to examine the structure ofall of them. R hasthestr() function if you want to understand the structureof a single dataset. But what if there are many? There is no simple wayto examine the attributes of many related datasets. And further, somevaluable attributes are missing from thestr() functionoutput.

  3. Row-By-Row Processing of Data: R processes datacolumn by column. In most cases, column-by-column is a perfectlysuitable way of processing data. But in some cases it is desirable toprocess data row-by-row. Row-by-row processing is useful when you havemany related columns, and want to perform complex conditional processingacross them. It is also very convenient when you have grouped data, andwant to perform conditional processing within a group.

Solution

Thelibr package was developed to address all of theabove problems. It does so by introducing three concepts:

By introducing these concepts, thelibr packagemakes working with data in R much easier and faster. Thelibr package can greatly simplify your data processingcode. And it makes some types of data operations effortless that arequite tricky to do withBase R or eventidyverse functions.

Installation

To install thelibr package, run the followingcommand from your R console:

install.packages("libr")

Then put the following line at the top of your program or script:

library(libr)

Thelibr package will then be ready to use! Forexamples and usage information, please visit thelibrdocumentation sitehere

Getting Help

If you need help, the first place to turn to is thelibr web site. The web site has fulldocumentation on alllibr functions.

If you want to look at the code for thelibrpackage, visit the github pagehere.

If you encounter a bug or have a feature request, please submit anissuehere.

See Also

Thelibr package is part of thesassy meta-package. Thesassymeta-package includes several packages that help make R easier foreveryone, especially people with a background in SAS® software. You canread more about thesassy packagehere.


[8]ページ先頭

©2009-2025 Movatter.jp