$-methods

0th

Percentile

Executing workbook methods in object$method(...) form

Allows to execute '>workbook methods in workbook-object$method(...) form.

Keywords
methods, utilities
Arguments
x

The object ('>workbook, '>cellstyle) to use

Details

x$method(...) (where x is a '>workbook-object) is equivalent to method(x, ...)

Note

The '>workbook $-operator allows to call '>workbook-methods in workbook-object$method(...) form. This form might be considered more convenient or readable for programmers coming from other object-oriented languages such as Java, C#, ...

See Also

'>workbook

Aliases
  • $
  • $-methods
  • $,workbook-method
  • $,cellstyle-method
Examples
# NOT RUN {
# Load workbook (create if not existing)
wb <- loadWorkbook("dollar.xlsx", create = TRUE)

# Create a worksheet called 'CO2'
wb$createSheet(name = "CO2")

# Write built-in data set 'CO2' to the worksheet created above
wb$writeWorksheet(CO2, sheet = "CO2", startRow = 4, startCol = 2)

# Save workbook
wb$saveWorkbook()
# }
Documentation reproduced from package XLConnect, version 0.2-14, License: GPL-3

Community examples

Looks like there are no examples yet.