Rev 7721 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{edit.data.frame}\alias{edit.data.frame}\title{ Edit data frames}\description{Use data editor on data frame contents.}\usage{edit.data.frame(name, factor.mode=c("numeric", "character"))}\arguments{\item{name}{A data frame.}\item{factor.mode}{How to handle factors (as integers or usingcharacter levels).}}\details{At present, this only works on simple data frames containing numeric orcharacter vectors and factors. Factors are represented in thespreadsheet as either numeric vectors (which is more suitable for dataentry) or character vectors (better for browsing). After editing,vectors are padded with \code{NA} to have the same length andfactor attributes are restored. The set of factor levels can not bechanged by the editing; invalid levels are changed to NA and a warningis issued.}\value{The edited data frame.}\author{ Peter Dalgaard }\note{\code{fix(dataframe)} works for in-place editing by calling thisfunction.If the data editor is not available, a dump of the object is presentedfor editing using the default method of \code{edit}.}\seealso{\code{\link{data.entry}}, \code{\link{edit}}}\examples{\dontrun{data(airquality)edit(airquality)edit(airquality, factor.mode="character")}}\keyword{utilities}