buildNetwork: Build Network

Description Usage Arguments Value Examples

View source: R/buildNetwork.R

Description

The buildNetwork function runs a Google 'related' search for the input sites or parses the site HTML for hyperlinked sites.

Usage

1
2
3
buildNetwork(sites = sites, searchtype = "related", snowball = FALSE,
  nodes = NULL, edges = NULL, excludesites = "none", delay = 1,
  maxurls = 10, max_depth = 5)

Arguments

sites

is a vector or json of web sites for the search.

searchtype

a vector. Type of links search. 'related','links' or 'both' (default is 'related').

snowball

a boolean. If TRUE snowball search results (default is FALSE).

nodes

a data frame. nodes to append to new search to (default is NULL).

edges

a data frame. edges to append to new search to (default is NULL).

excludesites

is a vector or json of web sites to be excluded from the search (default is none)

delay

(default is 0)

maxurls

Maximum urls returned in a "related" search (default is 10)

max_depth

Maximum depth a "linked" search will scrape

Value

What does this return?

Examples

1
2
3
4
## Not run: 
buildNetwork(sites='["http://npr.org"]',searchtype = "related")

## End(Not run)

jhollist/snaWeb documentation built on April 7, 2020, 12:49 a.m.