On Apr 11, 2011, at 23:53 , Joris Meys wrote:
> Based on a discussion on SO I ran some tests and found that converting
> to a factor is best done early in the process. Hence, I propose to
> rewrite the gl() function as :
>
> gl2 <- function(n, k, length = n * k, labels = 1:n, ordered = FALSE){
>
Based on a discussion on SO I ran some tests and found that converting
to a factor is best done early in the process. Hence, I propose to
rewrite the gl() function as :
gl2 <- function(n, k, length = n * k, labels = 1:n, ordered = FALSE){
rep(
rep(
factor(1:n,levels=1:n,labels=labe
On Mon, 11 Apr 2011, Hadley Wickham wrote:
To me this reads as being in the wheelhouse of what 'Suggests' is supposed
to imply, as per the R Extensions manual. The problem here is that if PkgB
is put down as 'Suggests', it is required for R CMD check to pass which
seems to defeat the purpose of
On Mon, Apr 11, 2011 at 1:34 PM, Geoff Jentry wrote:
> Hi ...
>
> I came across an old post on R-devel that describes a situation very similar
> to one I find myself in:
> https://stat.ethz.ch/pipermail/r-devel/2006-December/043917.html
>
> As you can see in Gregor's example, the situation is that
On 11/04/2011 3:41 PM, Roebuck,Paul L wrote:
On 4/11/11 11:04 AM, "Spencer Graves" wrote:
> On 4/11/2011 8:46 AM, Simon Urbanek wrote:
>> On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote:
>>
>>> On 2011-04-09, at 2:08 PM, Ted Harding wrote:
>>>
I think the right thing to so is to i
On 4/11/11 11:04 AM, "Spencer Graves" wrote:
> On 4/11/2011 8:46 AM, Simon Urbanek wrote:
>> On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote:
>>
>>> On 2011-04-09, at 2:08 PM, Ted Harding wrote:
>>>
I think the right thing to so is to introduce the students to the
basics of scop
Another example:
plot.landsurveydata: no visible binding for global variable 'value'
plot.landsurveydata: no visible binding for global variable 'variable'
plot.landsurveydata <- function(...){
# ...
qplot(time., value, data=X, color=variable, ...)
# where value and variable are columns of the
Hi ...
I came across an old post on R-devel that describes a situation very
similar to one I find myself in:
https://stat.ethz.ch/pipermail/r-devel/2006-December/043917.html
As you can see in Gregor's example, the situation is that if I am writing
Pkg A, I want to detect if Pkg B exists - if
On 11/04/2011 1:10 PM, William Dunlap wrote:
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
Fixed in R-devel as of r55409.
Duncan Murdoch
> x<- structure(1
On 08/04/2011 11:39 AM, Joshua Ulrich wrote:
On Fri, Apr 8, 2011 at 10:15 AM, Duncan Murdoch
wrote:
> On 08/04/2011 11:08 AM, Joshua Ulrich wrote:
>>
>> How about:
>>
>> y<- rep(NA,length(x))
>> y[duplicated(x)]<- match(x[duplicated(x)] ,x)
>
> That's a nice solution for vectors. Unfortun
On 11/04/2011 1:10 PM, William Dunlap wrote:
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
I think your analysis is correct. It's too late for 2.13.0, but I'll
> -Original Message-
> From: r-devel-boun...@r-project.org
> [mailto:r-devel-boun...@r-project.org] On Behalf Of William Dunlap
> Sent: Monday, April 11, 2011 10:10 AM
> To: R-devel@r-project.org
> Subject: [Rd] sort.int(S3object) strips class but not the
> is.object flag
>
> If x has an
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
> x <- structure(1:3, class="unrecognizedClass")
> y <- sort.int(x)
> t <- 1:3
> identical(y, t) # expect TRUE
On 4/11/2011 8:46 AM, Simon Urbanek wrote:
On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote:
On 2011-04-09, at 2:08 PM, Ted Harding wrote:
I think the right thing to so is to introduce the students to the
basics of scoping, early in the process of learning R.
I know the basics of scoping p
On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote:
> On 2011-04-09, at 2:08 PM, Ted Harding wrote:
>
>> I think the right thing to so is to introduce the students to the
>> basics of scoping, early in the process of learning R.
>
> I know the basics of scoping perfectly well, but that doesn't
On 2011-04-09, at 2:08 PM, Ted Harding wrote:
> I think the right thing to so is to introduce the students to the
> basics of scoping, early in the process of learning R.
I know the basics of scoping perfectly well, but that doesn't stop me from
occasionally misspelling a variable name that only
Thanks for your answer, but:
1. can you please cite the question? It is hard for mailing list readers
to follow now.
2. I think
which(duplicated(x))
should be simpler, faster and less confusing, if your code would be the
solution - which is not.
3. Please read the original question carefuly
On 11.04.2011 02:47, Hervé Pagès wrote:
Hi,
More about the new --resave-data option
As mentioned previously here
https://stat.ethz.ch/pipermail/r-devel/2011-April/060511.html
'R CMD build' and 'R CMD INSTALL' handle this new option
inconsistently. The former does --resave-data="gzip" by def
On Mon, 2011-04-11 at 15:57 +0100, Prof Brian Ripley wrote:
> I suspect you omitted some of the help page:
Yes. My apologies, I don't know how I missed that - I did read it
several times aware that I might be overlooking something sensible such
as the sentence you quote.
Sorry for the noise.
G
I suspect you omitted some of the help page:
As they are written for speed, they blur over some of the subtleties
of ‘NaN’ and ‘NA’.
So, given that (and that real NA is a specific NaN) I think it is
perfectly reasonable to claim they are consistent with mean.
On Tue, 5 Apr 2011, Gavin Sim
marc rousseau tlb.sympatico.ca> writes:
>
> Hi
> I'd like to know what does the letter in pd stand for ?
> thx
In what context?
The only R-context answers I can think of are "Peter Dalgaard"
(an R-core member) or "positive definite" (see ?pdClasses in
the nlme package).
You're probab
On Apr 10, 2011, at 09:43 , Costas Vorlow wrote:
> Hello,
>
> I am not sure if this is the correct mailing list to send this email...
>
> I was trying to install on windows XP latest R-2.12.2 and my unvirus program
> (Immunet 3.0) reports a virus at open.exe while this is unpacked:
>
> W32.AT
采购流程优化及供应商评估与管理
深圳 上海 广州 开课
适合对象:高层管理者、采购、品管、物流、财务等部门及其他相关部门的职业经理人。
课 程 大 纲 内 容 请 查 收 附 件!__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Hi
I'd like to know what does the letter in pd stand for ?
thx
[[alternative HTML version deleted]]
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
which(duplicated(x)=="TRUE")
--
View this message in context:
http://r.789695.n4.nabble.com/duplicates-function-tp3436584p3437614.html
Sent from the R devel mailing list archive at Nabble.com.
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/
Fixed in R-devel by 55385 and R-2-113-branch by 55386.
The problem was a call to install() in the C srouce code without
protecting another value before the install call. This particular
issue was very unlikely to cause a problem outside of a gctorture
context, but in that context with the memory
--- On Fri, 8/4/11, Martin Maechler wrote:
> Fantastic. Thanks a lot, Luke!
>
> I can close the thread just to say the final
> "it wasn't
> Matrix after all!"
> ;-)
I am glad it is all working out - I have spent way too much time on this,
having gone through about 4 different package
Given the configure settings this looks like its probably an issue in
regexpr's internals rather than in Matrix per se. I can confirm that
with
gctorture()
for (i in 1:100) regexpr("package:", "package:lattice", fixed = TRUE)
Error in regexpr("package:", "package:lattice", fixed = TRUE) :
unp
Hello,
I am not sure if this is the correct mailing list to send this email...
I was trying to install on windows XP latest R-2.12.2 and my unvirus program
(Immunet 3.0) reports a virus at open.exe while this is unpacked:
W32.ATRAPS
Has anyone come across the same problem?
Best,
Costas
Fantastic. Thanks a lot, Luke!
I can close the thread just to say the final"it wasn't
Matrix after all!"
;-)
On Fri, Apr 8, 2011 at 20:48, wrote:
> Fixed in R-devel by 55385 and R-2-113-branch by 55386.
>
> The problem was a call to install() in the C srouce code without
> protectin
> Pages, Herve
> on Tue, 29 Mar 2011 23:56:47 -0700 (PDT) writes:
> Hi, It's unfortunate that with recent revisions of R 2.13
> (this appeared in revision 54640, March 2), 'R CMD build'
> now removes empty dirs in the package. People might have
> good reasons for havin
On Sat, Apr 9, 2011 at 10:08 PM, Ted Harding wrote:
> I'm with Duncan on this one! On the other hand, I can understand the
> issues that Paul's students might encounter.
>
> I think the right thing to so is to introduce the students to the
> basics of scoping, early in the process of learning R.
32 matches
Mail list logo