The R Project SVN R

Rev

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

Rev 68948 Rev 74206
Line 1... Line 1...
1
% File src/library/methods/man/cbind2.Rd
1
% File src/library/methods/man/cbind2.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-2015 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Copyright 2001-2011 The R Foundation
4
% Copyright 2001-2018 The R Foundation
5
% Distributed under GPL 2 or later
5
% Distributed under GPL 2 or later
6
 
6
 
7
\name{cbind2}
7
\name{cbind2}
8
\alias{cbind2}
8
\alias{cbind2}
9
\alias{rbind2}
9
\alias{rbind2}
Line 99... Line 99...
99
cbind(a, four=4, 7:9)# calling cbind2() twice
99
cbind(a, four=4, 7:9)# calling cbind2() twice
100
 
100
 
101
cbind(m,a, ch=c("D","E"), a*3)
101
cbind(m,a, ch=c("D","E"), a*3)
102
cbind(1,a, m) # ok with a warning
102
cbind(1,a, m) # ok with a warning
103
untrace("cbind2")
103
untrace("cbind2")
104
\dontshow{%% FIXME -- do deprecate  bind_activation() !
-
 
105
### Note: Use the following activation if you want cbind() to work
-
 
106
### ----  on S4 objects -- be careful otherwise!
-
 
107
 
-
 
108
methods:::bind_activation(on = TRUE)
-
 
109
trace("cbind2")
-
 
110
cbind(a=1:3)# no call to cbind2()
-
 
111
cbind(a=1:3, four=4, 7:9)# calling cbind2() twice
-
 
112
untrace("cbind2")
-
 
113
 
-
 
114
cbind(m,m+1,m+2)
-
 
115
cbind(m,a=1, ch=c("D","E"))
-
 
116
cbind(1,a=1:3, m) # ok with a warning
-
 
117
cbind(A=1, B=3, m, C=4)
-
 
118
 
-
 
119
cbind(m, a=1, b=3)
-
 
120
 
-
 
121
## turn off the `special cbind()' :
-
 
122
methods:::bind_activation(FALSE)
-
 
123
}%dont
-
 
124
}
104
}
125
\keyword{array}
105
\keyword{array}
126
\keyword{manip}
106
\keyword{manip}