The R Project SVN R

Rev

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

Rev 68948 Rev 69952
Line 1... Line 1...
1
% File src/library/base/man/encodeString.Rd
1
% File src/library/base/man/encodeString.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2008 R Core Team
3
% Copyright 1995-2008, 2015 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{encodeString}
6
\name{encodeString}
7
\alias{encodeString}
7
\alias{encodeString}
8
\title{
8
\title{
Line 70... Line 70...
70
cat(encodeString(x), "\n", sep = "") # similar to print()
70
cat(encodeString(x), "\n", sep = "") # similar to print()
71
 
71
 
72
factor(x) # makes use of this to print the levels
72
factor(x) # makes use of this to print the levels
73
 
73
 
74
x <- c("a", "ab", "abcde")
74
x <- c("a", "ab", "abcde")
-
 
75
encodeString(x) # width = 0: use as little as possible
-
 
76
encodeString(x, 2) # use two or more (left justified)
75
encodeString(x, width = NA) # left justification
77
encodeString(x, width = NA) # left justification
76
encodeString(x, width = NA, justify = "c")
78
encodeString(x, width = NA, justify = "c")
77
encodeString(x, width = NA, justify = "r")
79
encodeString(x, width = NA, justify = "r")
78
encodeString(x, width = NA, quote = "'", justify = "r")
80
encodeString(x, width = NA, quote = "'", justify = "r")
79
}
81
}
80
\keyword{ utilities }
82
\keyword{ utilities }
81
 
-