Rev 4562 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{dataentry}\title{Spreadsheet Interface for Entering Data}\usage{data.entry(\dots, Modes=NULL, Names=NULL)dataentry(data, modes)de(\dots, Modes=NULL, Names=NULL)}\alias{data.entry}\alias{dataentry}\alias{de}\alias{de.ncols}\alias{de.restore}\alias{de.setup}\description{This is a fairly big suite of programs designed to make the interfaceto the spreadsheet painless for users. \code{data.entry} has sideeffects, any changes made in the spreadsheet are reflected in thevariables. The functions \code{de}, \code{de.ncols}, \code{de.setup}and \code{de.restore} are designed to help achieve these side effects.If the user passes in a matrix, \code{X} say, then the matrix isbroken into columns before \code{dataentry} is called. Then on returnthe columns are collected and glued back together and the resultassigned to the variable \code{X}. If you don't want this behaviouruse dataentry directly.The primitive function is \code{dataentry}. It takes a list ofvectors of possibly different lengths and modes (the second argument)and opens a spreadsheet with these variables being the columns.The columns of the dataentry window are returned as vectors in alist when the spreadsheet is closed.\code{de.ncols} counts the number of columns which are supplied as argumentsto \code{data.entry}. It attempts to count columns in lists, matricesand vectors. \code{de.setup} sets things up so that on return thecolumns can be regrouped and reassigned to the correct name. Thisis handled by \code{de.restore}.}\seealso{\code{\link{vi}}, \code{\link{edit}}.}\examples{# call data entry with variables x and y\dontrun{data.entry(x,y)}}\keyword{utilities}\keyword{file}