sortFindFn: Sort a findFn Object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Sort a data.frame as a findFn object.

Usage

1
sortFindFn(x, sortby=NULL)

Arguments

x

a data.frame to sort and convert to an object of class findFn (if it does not alreay have this class).

sortby

sort information as for function findFn.

Details

1. pkgSum <- PackageSummary(x, sortby)

2. Order x as required for findFn

3. class = c("findFn", "data.frame")

Value

An object of class c('findFn', 'data.frame') with a "PackageSummary" attribute.

Author(s)

Spencer Graves

See Also

findFn sort order

Examples

1
2
3
4
5
tstdf <- data.frame(Package=letters[c(1,1,2)],
                    Function=c('a1', 'a2', 'b3'), Score=2:4,
                    Date=11:13, Description=c('D1', 'D2', 'D3'),
                    Link=c('L1', 'L2', 'L3'), stringsAsFactors=FALSE)
rss <- sortFindFn(tstdf)

Example output

Loading required package: brew

Attaching package: 'sos'

The following object is masked from 'package:utils':

    ?

sos documentation built on May 2, 2019, 5:48 p.m.