| Line 1... |
Line 1... |
| 1 |
% File src/library/utils/man/View.Rd
|
1 |
% File src/library/utils/man/View.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 1995-2015 R Core Team
|
3 |
% Copyright 1995-2018 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{View}
|
6 |
\name{View}
|
| 7 |
\alias{View}
|
7 |
\alias{View}
|
| 8 |
\title{Invoke a Data Viewer}
|
8 |
\title{Invoke a Data Viewer}
|
| Line 19... |
Line 19... |
| 19 |
prefixed by \code{Data:}.}
|
19 |
prefixed by \code{Data:}.}
|
| 20 |
}
|
20 |
}
|
| 21 |
\details{
|
21 |
\details{
|
| 22 |
|
22 |
|
| 23 |
Object \code{x} is coerced (if possible) to a data frame, then
|
23 |
Object \code{x} is coerced (if possible) to a data frame, then
|
| 24 |
columns are converted to character using \code{\link{format.data.frame}}.
|
24 |
columns are converted to character using \code{\link{format.data.frame}}.
|
| 25 |
The object is then viewed in a spreadsheet-like data viewer, a
|
25 |
The object is then viewed in a spreadsheet-like data viewer, a
|
| 26 |
read-only version of \code{\link{data.entry}}.
|
26 |
read-only version of \code{\link{data.entry}}.
|
| 27 |
|
27 |
|
| 28 |
If there are row names on the data frame that are not \code{1:nrow},
|
28 |
If there are row names on the data frame that are not \code{1:nrow},
|
| 29 |
they are displayed in a separate first column called \code{row.names}.
|
29 |
they are displayed in a separate first column called \code{row.names}.
|
| 30 |
|
30 |
|
| 31 |
Objects with zero columns or zero rows are not accepted.
|
31 |
Objects with zero columns or zero rows are not accepted.
|
| 32 |
#ifdef unix
|
- |
|
| 33 |
|
32 |
|
| - |
|
33 |
\describe{
|
| 34 |
The array of cells can be navigated by the cursor keys and Home, End,
|
34 |
\item{On Unix-alikes,}{the array of cells can be navigated by the
|
| 35 |
Page Up and Page Down (where supported by X11) as well as Enter
|
35 |
cursor keys and Home, End, Page Up and Page Down (where supported by
|
| 36 |
and Tab.
|
36 |
X11) as well as Enter and Tab.}
|
| 37 |
#endif
|
- |
|
| 38 |
#ifdef windows
|
- |
|
| 39 |
|
- |
|
| 40 |
The array of cells can be navigated \emph{via} the scrollbars and
|
37 |
\item{On Windows,}{the array of cells can be navigated \emph{via}
|
| 41 |
by the cursor keys, Home, End, Page Up and Page Down.
|
38 |
the scrollbars and by the cursor keys, Home, End, Page Up and Page Down.
|
| 42 |
|
39 |
|
| 43 |
The initial size of the data viewer window is taken from the default
|
40 |
On Windows, the initial size of the data viewer window is taken
|
| 44 |
dimensions of a pager (see \code{\link{Rconsole}}), but adjusted
|
41 |
from the default dimensions of a pager (see \code{\link{Rconsole}}),
|
| 45 |
downwards to show a whole number of rows and columns.
|
42 |
but adjusted downwards to show a whole number of rows and columns.}
|
| 46 |
#endif
|
43 |
}
|
| 47 |
}
|
44 |
}
|
| 48 |
\value{
|
45 |
\value{
|
| 49 |
Invisible \code{NULL}. The functions puts up a window and returns
|
46 |
Invisible \code{NULL}. The functions puts up a window and returns
|
| 50 |
immediately: the window can be closed via its controls or menus.
|
47 |
immediately: the window can be closed via its controls or menus.
|
| 51 |
}
|
48 |
}
|