home *** CD-ROM | disk | FTP | other *** search
-
- _S_p_r_e_a_d_s_h_e_e_t _I_n_t_e_r_f_a_c_e _f_o_r _E_n_t_e_r_i_n_g _D_a_t_a
-
- data.entry(..., Modes=NULL, Names=NULL)
- dataentry(data, modes)
- de(..., Modes=NULL, Names=NULL)
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- This is a fairly big suite of programs designed to make
- the interface to the spreadsheet painless for users.
- data.entry has side effects, any changes made in the
- spreadsheet are reflected in the variables. The func-
- tions de, de.ncols, de.setup and de.restore are
- designed to help achieve these side effects. If the
- user passes in a matrix, X say, then the matrix is bro-
- ken into columns before dataentry is called. Then on
- return the columns are collected and glued back
- together and the result assigned to the variable X. If
- you don't want this behaviour use dataentry directly.
-
- The primitive function is dataentry. It takes a list of
- vectors 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 a list when
- the spreadsheet is closed.
-
- de.ncols counts the number of columns which are sup-
- plied as arguments to data.entry. It attempts to count
- columns in lists, matrices and vectors. de.setup sets
- things up so that on return the columns can be
- regrouped and reassigned to the correct name. This is
- handled by de.restore.
-
- _S_e_e _A_l_s_o:
-
- vi, ed.
-
- _E_x_a_m_p_l_e_s:
-
- # call data entry with variables x and y
- data.entry(x,y)
-
-