Displaying 14 results from an estimated 14 matches for "mostattribut".
Did you mean:
mostattributes
2000 Jun 13
3
Question on closure (lexical scoping) and encapsulation
...can think of 3 possibilities, but I
don't know if there's a good and reliable standard way:
- I tried using attributes(), but found out that subset() gets rid
of
user attributes and didn't see an easy way to reset them on a subsetted
frame
(doing it one by one is not an option, and mostattributes() doesn't seem
to
be there anymore)
- Something like the example used in 'scoping.R'
- Using class()? Documentation for class() talks about providing
methods
for generic functions, but I didn't see an example of accessing
user-defined
data members/attributes.
Many thanks!...
2009 Dec 21
1
proposal for new axis.Date/axis.POSIXct
...", s), cex = 2)
text(x, 0.33, paste(format(times), collapse="\n"))
text(x, 0.05, "current axis.POSIXct")
text(x, 0.95, "proposed new prettyDate axis")
## draw new proposed axis function at top of plot
timelim <- par("usr")[1:2]
mostattributes(timelim) <- attributes(from)
axis(side = 3, at = prettyDate(timelim),
labels = prettyDate(timelim, do.format=TRUE))
})
devAskNewPage(FALSE)
Is it appropriate / desirable for this to be incorporated into R?
--
Felix Andrews / ???
Postdoctoral Fellow
Integrated Catchment Assess...
2012 Mar 28
1
fun.zero.omit {GLDEX}
Hello. Sorry for the newbie question. When I run the function
fun.zero.omit (from the GLDEX package), I get a matrix and some descriptive
information. Can someone tell me how to strip out the descriptive
information so that I'm only left with the matrix? Here's an example:
> x=fun.zero.omit(c(0,1,2,3,4,0))
> x
[,1]
[1,] 1
[2,] 2
[3,] 3
[4,] 4
2008 Mar 03
1
Losing attributes in data.frame() (PR#10873)
Folks:
Problem: [<-.data,frame() is losing attributes under certain curcumstances
shown below.
I think this is a bug, at least in documentation, as I was unable to find
explicit documentation of the behavior. Indeed, the only documentation I
found told me attributes are preserved. Here is a detailed description:
> df <- data.frame(a=1:3, b=letters[1:3])
> attr(df,"foo")
2010 May 21
0
pretty.Date(): changes to axis() methods?
...[2]), pos = 2)
text(mean(x), 0.05, "current axis.Date()")
text(mean(x), 0.95, "proposed new pretty() axis, with")
text(mean(x), 0.85, paste("n =", n), cex = 1.5)
## draw new proposed axis function at top of plot
timelim <- par("usr")[1:2]
mostattributes(timelim) <- attributes(times)
at <- prettyDate(timelim, n = n)
axis(side = 3, at = at, labels = attr(at, "labels"))
})
Here is a posible modification to axis.Date. As it calls pretty(), it
will only work in R 2.12.
axis.Date <- function(side, x = NA, at, format, labels...
2003 Jan 10
6
R-1.6.2 is released
I've rolled up R-1.6.2.tgz a short while ago. This is a minor upgrade,
fixing an assortment of bugs.
You can get it from the developer site at
http://cvs.r-project.org/pub/CRAN/src/base/R-1.6.2.tgz
or wait for it to be mirrored at a CRAN site near you. Binaries for
various platforms will appear in due course.
There is also a version split for floppies, but due to the inclusion
of
2003 Jan 10
6
R-1.6.2 is released
I've rolled up R-1.6.2.tgz a short while ago. This is a minor upgrade,
fixing an assortment of bugs.
You can get it from the developer site at
http://cvs.r-project.org/pub/CRAN/src/base/R-1.6.2.tgz
or wait for it to be mirrored at a CRAN site near you. Binaries for
various platforms will appear in due course.
There is also a version split for floppies, but due to the inclusion
of
2000 Feb 29
7
R-1.0.0 is released
...epts vector "col", "cex" and "font" arguments.
o "default" is now a valid argument to RNGkind().
o nlm() and optim() will now give up immediately they try to
step to a non-finite value: nlm at least would go into an
infinite loop.
o "mostattributes(obj) <- value" utility useful for careful
attributes' inheritance; e.g. for fixing pmax/pmin (see below).
BUG FIXES
o (0.99.0a) The internal code for strsplit no longer destroys
other internal structures, e.g. postscript file output on
Linux.
o (0.99.0a) nlm(...
2000 Feb 29
7
R-1.0.0 is released
...epts vector "col", "cex" and "font" arguments.
o "default" is now a valid argument to RNGkind().
o nlm() and optim() will now give up immediately they try to
step to a non-finite value: nlm at least would go into an
infinite loop.
o "mostattributes(obj) <- value" utility useful for careful
attributes' inheritance; e.g. for fixing pmax/pmin (see below).
BUG FIXES
o (0.99.0a) The internal code for strsplit no longer destroys
other internal structures, e.g. postscript file output on
Linux.
o (0.99.0a) nlm(...
2019 Apr 26
0
R 3.6.0 is released
...Bolker's prompting.
* The documentation for attributes and `attributes<-` now gives x
as name of the first and main argument which the implementation
has been requiring, fixing PR#17434. For consistency, the first
argument name is also changed from obj to x for
`mostattributes<-`.
* strwidth() now uses par("font") as default font face (PR#17352).
* plot(<table>, log="x") no longer warns about log.
* The print() method for "htest" objects now formats the test
statistic and parameter directly and hence no longer...
2019 Apr 26
0
R 3.6.0 is released
...Bolker's prompting.
* The documentation for attributes and `attributes<-` now gives x
as name of the first and main argument which the implementation
has been requiring, fixing PR#17434. For consistency, the first
argument name is also changed from obj to x for
`mostattributes<-`.
* strwidth() now uses par("font") as default font face (PR#17352).
* plot(<table>, log="x") no longer warns about log.
* The print() method for "htest" objects now formats the test
statistic and parameter directly and hence no longer...
2019 Apr 26
0
R 3.6.0 is released
...Bolker's prompting.
* The documentation for attributes and `attributes<-` now gives x
as name of the first and main argument which the implementation
has been requiring, fixing PR#17434. For consistency, the first
argument name is also changed from obj to x for
`mostattributes<-`.
* strwidth() now uses par("font") as default font face (PR#17352).
* plot(<table>, log="x") no longer warns about log.
* The print() method for "htest" objects now formats the test
statistic and parameter directly and hence no longer...
2011 Apr 13
0
R 2.13.0 is released
...hat for
class "POSIXt".
? New function file.link() to create hard links on those file
systems (POSIX, NTFS but not FAT) that support them.
? New Summary() group method for class "ordered" implements min(),
max() and range() for ordered factors.
? mostattributes<-() now consults the "dim" attribute and not the
dim() function, making it more useful for objects (such as data
frames) from classes with methods for dim(). It also uses
attr<-() in preference to the generics name<-(), dim<-() and
dimnames<-()....
2011 Apr 13
0
R 2.13.0 is released
...hat for
class "POSIXt".
? New function file.link() to create hard links on those file
systems (POSIX, NTFS but not FAT) that support them.
? New Summary() group method for class "ordered" implements min(),
max() and range() for ordered factors.
? mostattributes<-() now consults the "dim" attribute and not the
dim() function, making it more useful for objects (such as data
frames) from classes with methods for dim(). It also uses
attr<-() in preference to the generics name<-(), dim<-() and
dimnames<-()....