transform.web: transform.web, helper function

Description Usage Arguments Details Value

View source: R/web-transform.R

Description

Function gets called by link{plot_brownie} to calculate data points to plot on screenshot.

Usage

1
2
## S3 method for class 'web'
transform(data, url, type = "motion", subject = c(1, 2))

Arguments

data

a list of class web

url

a character

type

a character, "motion" or "click"

subject

a integer vector including the subjects which should be considered for calculation

Details

Extracts data for specified subjects, URL and event. If type euqals "motion" than only data for the Event MouseMotion is used (for type equals "click" only Event MouseButtonPressed is used). The movement data is computed by the formulars:

Value

dataframe


Fiddleman/BrownieR documentation built on May 6, 2019, 4:36 p.m.