The R Project SVN R

Rev

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

Rev 27442 Rev 27716
Line 80... Line 80...
80
}
80
}
81
\seealso{
81
\seealso{
82
  \code{\link{summary}}, \code{\link{args}}.
82
  \code{\link{summary}}, \code{\link{args}}.
83
}
83
}
84
\examples{
84
\examples{
-
 
85
require(stats)
85
## The following examples show some of 'str' capabilities
86
## The following examples show some of 'str' capabilities
86
str(1:12)
87
str(1:12)
87
str(ls)
88
str(ls)
88
str(args)#- more useful than  args(args) !
89
str(args) #- more useful than  args(args) !
89
data(freeny); str(freeny)
90
data(freeny); str(freeny)
90
str(str)
91
str(str)
91
str(.Machine, digits = 20)
92
str(.Machine, digits = 20)
92
str( lsfit(1:9,1:9))
93
str( lsfit(1:9,1:9))
93
str( lsfit(1:9,1:9),  max =1)
94
str( lsfit(1:9,1:9),  max = 1)
94
op <- options(); str(op)#- save first; otherwise internal options() is used.
95
op <- options(); str(op) #- save first; otherwise internal options() is used.
95
need.dev <- !exists(".Device") || is.null(.Device)
96
need.dev <- !exists(".Device") || is.null(.Device)
96
if(need.dev) postscript()
97
if(need.dev) postscript()
97
str(par()); if(need.dev) graphics.off()
98
str(par()); if(need.dev) graphics.off()
98
 
99
 
99
ch <- letters[1:12]; is.na(ch) <- 3:5
100
ch <- letters[1:12]; is.na(ch) <- 3:5
Line 102... Line 103...
102
nchar(longch <- paste(rep(letters,100), collapse=""))
103
nchar(longch <- paste(rep(letters,100), collapse=""))
103
str(longch)
104
str(longch)
104
str(longch, nchar.max = 52)
105
str(longch, nchar.max = 52)
105
 
106
 
106
lsf.str()#- how do the functions look like which I am using?
107
lsf.str()#- how do the functions look like which I am using?
107
ls.str(mode = "list")#- what are the structured objects I have defined?
108
ls.str(mode = "list") #- what are the structured objects I have defined?
108
## which base functions have "file" in their name ?
109
## which base functions have "file" in their name ?
109
lsf.str(pos = length(search()), pattern = "file")
110
lsf.str(pos = length(search()), pattern = "file")
110
\dontshow{
111
\dontshow{
111
 ##-- Some "crazy" objects
112
 ##-- Some "crazy" objects
112
 str(array(1:5, dim=20))
113
 str(array(1:5, dim=20))