| Line 31... |
Line 31... |
| 31 |
\details{
|
31 |
\details{
|
| 32 |
The data entry editor is only available on some platforms and GUIs.
|
32 |
The data entry editor is only available on some platforms and GUIs.
|
| 33 |
Where available it provides a means to visually edit a matrix or
|
33 |
Where available it provides a means to visually edit a matrix or
|
| 34 |
a collection of variables (including a data frame) as described in the
|
34 |
a collection of variables (including a data frame) as described in the
|
| 35 |
Notes section.
|
35 |
Notes section.
|
| 36 |
|
36 |
|
| 37 |
\code{data.entry} has side effects, any changes made in the
|
37 |
\code{data.entry} has side effects, any changes made in the
|
| 38 |
spreadsheet are reflected in the variables. The functions \code{de},
|
38 |
spreadsheet are reflected in the variables. The functions \code{de},
|
| 39 |
\code{de.ncols}, \code{de.setup} and \code{de.restore} are designed to
|
39 |
\code{de.ncols}, \code{de.setup} and \code{de.restore} are designed to
|
| 40 |
help achieve these side effects. If the user passes in a matrix,
|
40 |
help achieve these side effects. If the user passes in a matrix,
|
| 41 |
\code{X} say, then the matrix is broken into columns before
|
41 |
\code{X} say, then the matrix is broken into columns before
|
| Line 156... |
Line 156... |
| 156 |
\code{paste} copies the last copied value to the current cell, and
|
156 |
\code{paste} copies the last copied value to the current cell, and
|
| 157 |
right-clicking selects a cell \emph{and} copies in the value.
|
157 |
right-clicking selects a cell \emph{and} copies in the value.
|
| 158 |
Initially the value is blank, and attempts to paste a blank value will
|
158 |
Initially the value is blank, and attempts to paste a blank value will
|
| 159 |
have no effect.
|
159 |
have no effect.
|
| 160 |
#endif
|
160 |
#endif
|
| 161 |
|
161 |
|
| 162 |
Control-L will refresh the display, recalculating field widths to fit
|
162 |
Control-L will refresh the display, recalculating field widths to fit
|
| 163 |
the current entries.
|
163 |
the current entries.
|
| 164 |
|
164 |
|
| 165 |
In the default mode the column widths are chosen to fit the contents
|
165 |
In the default mode the column widths are chosen to fit the contents
|
| 166 |
of each column, with a default of 10 characters for empty columns.
|
166 |
of each column, with a default of 10 characters for empty columns.
|
| Line 171... |
Line 171... |
| 171 |
#ifdef unix
|
171 |
#ifdef unix
|
| 172 |
600 pixels (and by the window width).
|
172 |
600 pixels (and by the window width).
|
| 173 |
#endif
|
173 |
#endif
|
| 174 |
#ifdef windows
|
174 |
#ifdef windows
|
| 175 |
50 characters (and by the window width).
|
175 |
50 characters (and by the window width).
|
| 176 |
|
176 |
|
| 177 |
The initial size of the data editor window is taken from the default
|
177 |
The initial size of the data editor window is taken from the default
|
| 178 |
dimensions of a pager (see \code{\link{Rconsole}}), but adjusted
|
178 |
dimensions of a pager (see \code{\link{Rconsole}}), but adjusted
|
| 179 |
downwards to show a whole number of rows and columns.
|
179 |
downwards to show a whole number of rows and columns.
|
| 180 |
#endif
|
180 |
#endif
|
| 181 |
}
|
181 |
}
|