buildAdjacencyMatrix: Build an Adjacency matrix of users to web domains

Description Usage Arguments Details Value

View source: R/buildAdjacencyMatrix.R

Description

This function takes as input a column that has user information and location sourcing as well as the web sites visited. It then returns a sparse binary adjacency matrix where users are rows, columns are web domains, and entries are indicators of if the user visited that web domain

Usage

1

Arguments

data

A dataframe consisting of at least 4 columns: Authority_URI, HTTPUSERAGENT, LATITUDE_SRC, LONGITUDE_SRC

Details

Build the Adjacency matrix

Value

adjacencymatrix An “nxn” sparse matrix from the Matrix Package of all users connected to web domains


gallagherj2008/SWAT documentation built on May 28, 2019, 12:59 p.m.