Next: toeplitz()
Up: MacAnova Help File
Previous: tint()
Contents
Usage:
toclip(x [, missing:Code, format:Fmt, sep:C1, linesep:C2]), Code,
Fmt, C1, C2 quoted strings or CHARACTER scalars
|
Keywords:
character variables, output
Usage
toclip(x) is equivalent to CLIPBOARD <- x and puts a possibly multi-
lined CHARACTER representation of x in special variable CLIPBOARD.
When x is REAL, you can use keywords 'sep', 'missing', 'linesep', and
'format' that are permissible with paste(x,multiline:T,...).
In windowed versions, toclip() allows easy export of MacAnova data to
another application such as a spreadsheet. For example, if x is a
10 by 5 REAL matrix that you want to export to a spreadsheet, after
'toclip(x)', you can select a 10 by 5 rectangle of cells in the
spreadsheet and select Paste in the Edit menu. When the target
application has special requirements for representing MISSING or field
and line separators, you can use keywords to customize what gets put
on the Clipboard.
Examples
Examples:
toclip(x,missing:"NA") and toclip(x,missing:"-99") put x in CLIPBOARD
with MISSING coded as NA and -99, respectively
toclip(x,sep:",",format:".10f") puts x in CLIPBOARD with elements
separated by commas and with 10 decimal places
toclip(x,linesep:":",sep:",") puts x in CLIPBOARD with elements
separated by commas and rows separated by colons.
Cross references
See also topics 'CLIPBOARD', fromclip(), paste(), clipreaddata().
toclip() is implemented as a pre-defined macro.
Gary Oehlert
2005-08-12