The R Project SVN R

Rev

Rev 60954 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60954 Rev 61150
Line 59... Line 59...
59
  \code{\link{names}},
59
  \code{\link{names}},
60
  \code{\link{character}},
60
  \code{\link{character}},
61
  \code{\link{data.frame}}.
61
  \code{\link{data.frame}}.
62
}
62
}
63
\examples{
63
\examples{
64
make.names(c("a and b", "a-and-b"), unique=TRUE)
64
make.names(c("a and b", "a-and-b"), unique = TRUE)
65
# "a.and.b"  "a.and.b.1"
65
# "a.and.b"  "a.and.b.1"
66
make.names(c("a and b", "a_and_b"), unique=TRUE)
66
make.names(c("a and b", "a_and_b"), unique = TRUE)
67
# "a.and.b"  "a_and_b"
67
# "a.and.b"  "a_and_b"
68
make.names(c("a and b", "a_and_b"), unique=TRUE, allow_=FALSE)
68
make.names(c("a and b", "a_and_b"), unique = TRUE, allow_ = FALSE)
69
# "a.and.b"  "a.and.b.1"
69
# "a.and.b"  "a.and.b.1"
70
 
70
 
71
state.name[make.names(state.name) != state.name] # those 10 with a space
71
state.name[make.names(state.name) != state.name] # those 10 with a space
72
}
72
}
73
\keyword{character}
73
\keyword{character}