Skip to contents

Head method for 'pkgmatch' objects

Usage

# S3 method for class 'pkgmatch'
head(x, n = 5L, ...)

Arguments

x

Object for which head is to be printed

n

Number of rows of full pkgmatch object to be displayed

...

Not used

Value

A (usually) smaller version of x, with all columns displayed.

Examples

corpus <- "cran"
generate_pkgmatch_example_data (corpus = corpus)
input <- "Download open spatial data from NASA"
p <- pkgmatch_similar_pkgs (input, corpus = corpus)
head (p) # Shows first 5 rows of full `data.frame` object
#>      package version rank
#> 1      httr2   1.1.2    1
#> 2  mRpostman   1.1.4    2
#> 3      RCurl    1.98    3
#> 4 CancerGram   1.0.0    4
#> 5       curl   6.2.2    5