addDataToSonify: Add a data.frame to a 'sonify' object

Description Usage Arguments Details Value Note See Also

Description

This allows you to add a data.frame onto a sonify object with a syntax analogous to ggplot2

Usage

1
2
3
  x %+% y

  addDataToSonify(x, y)

Arguments

x

A sonify object whose default data.frame is to be changed

y

A data.frame to add to x

Details

It would be easier if this operation could be done with ‘+’, but R does not allow it.

Value

A sonify object with y now as the default data.frame

Note

%+% conflicts with the %+% defined in the ggplot2 package. Thus, the identical addDataToSonify is provided as a workaround if you have both packages loaded.

See Also

+.sonify


playitbyr documentation built on May 2, 2019, 6:08 p.m.