Displaying 20 results from an estimated 21 matches for "rmcgehee".
Did you mean:
mcgehee
2017 Jun 16
2
'ordered' destroyed to 'factor'
> On 16 Jun 2017, at 15:59 , Robert McGehee <rmcgehee at walleyetrading.net> wrote:
>
> For instance, what would you expect to get from unlist() if each element of the list had different levels, or were both ordered, but in a different way, or if some elements of the list were factors and others were ordered factors?
>> unlist(list(ord...
2017 Jun 18
0
'ordered' destroyed to 'factor'
...ractice. Has r-devel really lost the momentum for continuous improvement, to converge R to an optimum? I struggle to recognize the project I loved in 2000.
?
Gesendet:?Freitag, 16. Juni 2017 um 18:31 Uhr
Von:?"peter dalgaard" <pdalgd at gmail.com>
An:?"Robert McGehee" <rmcgehee at walleyetrading.net>
Cc:?"Jens Oehlschl?gel" <jens.oehlschlaegel at truecluster.com>, "r-devel at r-project.org" <r-devel at r-project.org>
Betreff:?Re: [Rd] 'ordered' destroyed to 'factor'
> On 16 Jun 2017, at 15:59 , Robert McGehee <rmcge...
2017 Apr 05
2
Very hard to reproduce bug (?) in R-devel
On Wed, Apr 5, 2017 at 2:24 PM, Robert McGehee <rmcgehee at walleyetrading.net>
wrote:
> Winston,
> I had a similar experience to you tracking down an insanely difficult bug
> in my R code that "disappeared" whenever slight changes were made to the
> script (e.g. like adding cat() statements). In my case, it coincided with
>...
2018 Jan 22
1
as.character(list(NA))
...element is not a scalar there is an
error. as.character()
does not seem to make a distinction between the all-scalar and
not-all-scalar cases
but does various things with NA's of various types.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Mon, Jan 22, 2018 at 11:14 AM, Robert McGehee <
rmcgehee at walleyetrading.net> wrote:
> Also perhaps a surprise that the behavior depends on the mode of the NA.
>
> > is.na(as.character(list(NA_real_)))
> [1] FALSE
> > is.na(as.character(list(NA_character_)))
> [1] TRUE
>
> Does this mean deparse() preserves NA-ness for...
2017 Jan 30
0
Matrix package breaks as.matrix method
...implying a bug where none exists, or that there was something wrong with Matrix or S4.
Thanks again,
Robert
-----Original Message-----
From: Georgi Boshnakov [mailto:georgi.boshnakov at manchester.ac.uk]
Sent: Sunday, January 29, 2017 1:40 PM
To: r-devel at r-project.org
Cc: Robert McGehee <rmcgehee at walleyetrading.net>
Subject: RE: R-devel Digest, Vol 167, Issue 25
Hi,
Short answer: import 'as.matrix' and export your method(s) for it. From WRE:
"All S4 classes to be used outside the package need to be listed in an exportClasses directive. Alternatively, they can be speci...
2017 Jul 13
0
Extracting sentences with combinations of target words/terms from cancer patient text medical records
...bably use the PCRE regex library anyway. However, as this is basically what you did, I'm not sure why you're not happy with your existing approach.
-----Original Message-----
From: Paul Miller [mailto:pjmiller_57 at yahoo.com]
Sent: Thursday, July 13, 2017 3:01 PM
To: Robert McGehee <rmcgehee at walleyetrading.net>
Cc: r-help at r-project.org
Subject: Re: [R] Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Robert,
Thank you for your reply. An attempt to solve this via a regular expression query is particularly helpful. Unfort...
2017 Jul 13
1
Extracting sentences with combinations of target words/terms from cancer patient text medical records
...d the word breast.
"
[4] "1: This sentence contains the words breast and the term metastatic. 2: This sentence contains the word breast and the term stage IV."
________________________________
From: Robert McGehee <rmcgehee at walleyetrading.net>
Cc: "r-help at r-project.org" <r-help at r-project.org>
Sent: Wednesday, July 12, 2017 12:47 PM
Subject: RE: [R] Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Paul,
Sounds like you have your ans...
2017 Apr 05
0
Very hard to reproduce bug (?) in R-devel
On 5 April 2017 at 15:46, Winston Chang wrote:
| On Wed, Apr 5, 2017 at 2:24 PM, Robert McGehee <rmcgehee at walleyetrading.net>
| wrote:
|
| > Winston,
| > I had a similar experience to you tracking down an insanely difficult bug
| > in my R code that "disappeared" whenever slight changes were made to the
| > script (e.g. like adding cat() statements). In my case, it coincide...
2017 Jul 12
0
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Paul,
Sounds like you have your answer, but for fun I thought I'd try solving your problem using only a regular expression query and base R. I believe this works:
> txt <- "Patient had stage IV breast cancer. Nothing matches this sentence. Metastatic and breast match this sentence. French bike champion takes stage IV victory in Tour de France."
> pattern <-
2018 Jan 22
2
as.character(list(NA))
On 01/20/2018 08:24 AM, William Dunlap via R-devel wrote:
> I believe that for a list as.character() applies deparse() to each element
> of the list. deparse() does not preserve NA-ness, as it is intended to
> make text that the parser can read.
>
>> str(as.character(list(Na=NA, LglVec=c(TRUE,NA),
> Function=function(x){x+1})))
> chr [1:3] "NA" "c(TRUE,
2017 Jan 29
0
R-devel Digest, Vol 167, Issue 25
...ife easier during initial development, import the whole 'Matrix' and when things work think about cleaning up and importing only stuff that you need.
Best regards,
Georgi Boshnakov
------------------------------
Message: 15
Date: Fri, 27 Jan 2017 22:41:10 +0000
From: Robert McGehee <rmcgehee at walleyetrading.net>
To: "r-devel at r-project.org" <r-devel at r-project.org>
Subject: [Rd] Matrix package breaks as.matrix method
Message-ID:
<30D28A63376088428E8318DD67FD407F705B2E at ny-mailstore1.walleyetrading.net>
Content-Type: text/plain; charset="us-ascii...
2017 Jun 16
3
'ordered' destroyed to 'factor'
Dear all,
?
I don't know if you consider this a bug or feature, but it breaks reasonable code: 'unlist' and 'sapply' convert 'ordered' to 'factor' even if all levels are equal. Here is a simple example:
o <- ordered(letters)
o[[1]]
lapply(o, min)[[1]]??????????# ordered factor
unlist(lapply(o, min))[[1]]? # no longer ordered
sapply(o, min)[[1]]??????????# no
2017 Apr 05
6
Very hard to reproduce bug (?) in R-devel
)
On Wed, Apr 5, 2017 at 2:59 AM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
>
> >>>>> Winston Chang <winstonchang1 at gmail.com>
> >>>>> on Tue, 4 Apr 2017 15:29:40 -0500 writes:
>
> > I've done some more investigation into the problem, and it is very
> > difficult to pin down. What it looks like is
2019 Mar 21
3
prettyNum digits=0 not compatible with scientific notation
R developers,
Seems I get a bad result ("%#4.0-1e" in particular) when trying to use prettyNum digits=0 with scientific notation. I tried on both my Linux box and on an online R evaluator and saw the same problem, so it's not limited to my box at least. I see the problem in both R 3.5.3 and R 3.3.2.
options(scipen=-100)
prettyNum(1, digits=0)
[1] "%#4.0-1e"
prettyNum(2,
2017 Jul 12
2
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Bert,
Thanks for your reply. It appears that I didn't replace the variable name "sampletxt" with the argument "x" in my function. I've corrected that and now my code seems to be working fine.
Paul
________________________________
From: Bert Gunter <bgunter.4567 at gmail.com>
Cc: R-help <r-help at r-project.org>
Sent: Tuesday, July 11, 2017 2:00 PM
2017 Jan 27
0
Matrix package breaks as.matrix method
Hi,
The Matrix package and the as.matrix method do not seem to be compatible inside of a package.
Here's an example. I've created a simple package "mat" that defines an eponymous class and as.matrix method on that class. All is well, unless that package has the Matrix package in its Depends or Imports (and imports, e.g. the "Diagonal" function). Then my as.matrix
2017 May 23
0
Allow dot in RHS of update.formula's old formula
Feature request:
I want to use update.formula to subtract an intercept (or other) term from a formula with a dot on the RHS. However, as this causes an error, I propose a patch below.
Thus, I want:
> update.formula(y ~ ., ~ . -1)
[1] y ~ . - 1
Instead I get this error:
Error in terms.formula(tmp, simplify = TRUE) :
'.' in formula and no 'data' argument
While the error
2018 Jan 22
0
as.character(list(NA))
Also perhaps a surprise that the behavior depends on the mode of the NA.
> is.na(as.character(list(NA_real_)))
[1] FALSE
> is.na(as.character(list(NA_character_)))
[1] TRUE
Does this mean deparse() preserves NA-ness for NA_character_ but not NA_real_?
-----Original Message-----
From: R-devel [mailto:r-devel-bounces at r-project.org] On Behalf Of Herv? Pag?s
Sent: Monday, January 22,
2017 Jun 15
0
Estimating Unbiased Standard Deviation with Autocorrelation
Hello,
I have a vector of values with significant autocorrelation, and I want to calculate an unbiased standard deviation that adjusts for the autocorrelation. The formula linked below purports to provide what I want:
https://en.wikipedia.org/wiki/Unbiased_estimation_of_standard_deviation#Effect_of_autocorrelation_.28serial_correlation.29
However, rather than just implementing this equation in
2017 Jun 16
0
'ordered' destroyed to 'factor'
Hi,
It's been my experience that when you combine or aggregate vectors of factors using a function, you should be prepared for surprises, as it's not obvious what the "right" way to combine factors is (ordered or not), especially if two vectors of factors have different levels or (if ordered) are ordered in a different way.
For instance, what would you expect to get from