sortRSiteSearch {RSiteSearch}R Documentation

Sort an RSiteSearch Object

Description

Sort a data.frame as an RSiteSearch object.

Usage

sortRSiteSearch(x, sort.=NULL)

Arguments

x a data.frame to sort and convert to an object of class RSiteSearch (if it does not alreay have this class).
sort. sort information as for function RSiteSearch.function.

Details

1. pkgSum <- PackageSummary(x, sort.)

2. Order x as required for RSiteSearch.function

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

Value

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

See Also

RSiteSearch.function sort order

Examples

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 <- sortRSiteSearch(tstdf)

[Package RSiteSearch version 1.0-3 Index]