sEdit: Simple editing

Description Usage Arguments Details Value See Also Examples

View source: R/sEdit.R

Description

Simple editing of vectors, lists of vectors and other objects.

Usage

1
 sEdit(name, title="Please enter values:")

Arguments

name

a named object that you want to edit.

title

a title for the dialog box.

Details

If called with a vector or list of vectors and if tcltk is installed, a dialog box is shown in which data can be entered. If the name is not of type vector or list of vectors, then a default editing method is called.

Value

An object with the same type like name.

See Also

edit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ## Not run:  
    ## named vector
    vec  <- c(a=1, b=20, c=0.03)
    new  <- sEdit(vec)
    ## unnamed vector
    sEdit(numeric(10))
    ## list of vectors
    lst <- list(vec=vec, test=1:10)
    sEdit(lst)
    ## list with numeric and character vectors mixed
    lst <- list(vec=vec, test=c("a","b","c"))
    sEdit(lst)
  
## End(Not run)

rsachse/limnotools documentation built on Jan. 8, 2021, 5:37 a.m.