~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/rbackend/rpackages/rkward/man/rk.misc.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2010-10-04 14:30:00 UTC
  • mfrom: (12.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101004143000-qey73molmxxwy4w6
Tags: 0.5.4-1
* new upstream release
* bump standards version to 3.9.1 (no changes needed)
* no more need to remove svncopy.sh-script in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\name{RKWard_misc}
 
2
\alias{rk.misc}
 
3
\alias{rk.rename.in.container}
 
4
\alias{rk.make.repos.string}
 
5
\alias{rk.select.CRAN.mirror}
 
6
 
 
7
\title{Miscellaneous utility functions}
 
8
 
 
9
\description{
 
10
}
 
11
 
 
12
\usage{
 
13
rk.rename.in.container(x, old_name, new_name, envir = parent.frame())
 
14
rk.make.repos.string()
 
15
rk.select.CRAN.mirror()
 
16
}
 
17
 
 
18
\arguments{
 
19
\item{x}{a data.frame or list.}
 
20
\item{old_name}{a string, the name of the column or element to be renamed.}
 
21
\item{new_name}{a string, the new name.}
 
22
\item{envir}{an environment where \code{x} is available.}
 
23
}
 
24
 
 
25
\details{
 
26
\code{rk.rename.in.container} renames a named object (column/element) in a data.frame/list without changing its position.
 
27
 
 
28
\code{rk.make.repos.string} just creates a R statement for \code{repos}. A typical user should not need to use this function.
 
29
 
 
30
\code{rk.select.CRAN.mirror} is an in-house replacement for \code{\link{chooseCRANmirror}} without changing \code{options ("repos")}, permanently. It uses native KDE gui and provides more information on each mirror.
 
31
}
 
32
 
 
33
\value{
 
34
\code{rk.rename.in.container} returns \code{NULL} on successfule renaming, otherwise an error.
 
35
 
 
36
\code{rk.make.repos.string} returns a valid R expression as a character string which can then be parsed and evaluated.
 
37
 
 
38
\code{rk.select.CRAN.mirror} returns the URL of the chosen mirror, as a string.
 
39
}
 
40
 
 
41
\author{Thomas Friedrichsmeier \email{rkward-devel@lists.sourceforge.net}}
 
42
 
 
43
\examples{
 
44
## rk.rename.in.container
 
45
ir <- iris
 
46
str (ir)
 
47
rk.rename.in.container(ir, "Species", "Taxonomic.Group")
 
48
str (ir)
 
49
}
 
50
 
 
51
\keyword{attribute}
 
52
\keyword{misc}
 
53
\keyword{utilities}