File: tk2edit.Rd

package info (click to toggle)
r-cran-tcltk2 1.2-10-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,356 kB
  • ctags: 1,386
  • sloc: tcl: 37,888; ansic: 792; python: 324; sh: 68; sed: 16; makefile: 1
file content (45 lines) | stat: -rwxr-xr-x 1,316 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
\name{tk2edit}
\alias{tk2edit}

\title{ Edit a matrix or data frame in spreadsheet-like editor }
\description{
  A tkTable widget is used to display and edit a matrix or data frame. One
  can edit entries, add or delete rows and columns, ....
}
\usage{
tk2edit(x, title = "Matrix Editor", header = NULL,
    maxHeight = 600, maxWidth = 800, fontsize = 9, ...) 
}

\arguments{
  \item{x}{ a matrix or data frame to edit. }
  \item{title}{ the title of the editor window. }
  \item{header}{ do we display a header? }
  \item{maxHeight}{ the maximum height of the editor window. }
  \item{maxWidth}{ the maximum width of the editor window. }
  \item{fontsize}{ the size of the font to use in the editor window. }
  \item{\dots}{ further arguments to pass to the function. }
}

\value{
  The function is used for its side-effet, that is, to modify a matrix or data
  frame in a spreadsheet-like editor.
}

\author{ Jeffrey J. Hallman }
\note{ You need the tkTable widget to use this function }

\seealso{ \code{\link{tclSetValue}} }

\examples{
\dontrun{
## These cannot be run by examples() but should be OK when pasted
## into an interactive R session with the tcltk package loaded
data(iris)
tk2edit(iris)	
}
}

\keyword{ utilities }

\concept{ Tcl/Tk data frame editor }