Displaying 20 results from an estimated 20000 matches similar to: "Is there a way to deactivate partial matching in R?"
2004 Feb 27
0
Re: [R] Is there a way to deactivate partial matching in R?
Dear Prof. Ripley,
Thank you for reminding me to the possibility to place the dots as first
argument.
If this is the solution against partial argument matching, we e.g. cannot
safely define a plot method which gives a demo plot in case of no object
(because we have to obey the class paramter conventions).
plot.someobject <- function(x=NULL, ...)
# another example would be paramter pairs
2003 Aug 26
3
matching-case sensitivity
Hi All,
I am trying to match two character arrays (email lists) using either
pmatch(), match() or charmatch() functions. However the function is
"missing" some matches due to differences in the cases of some letters
between the two arrays. Is there any way to disable case sensitivity or is
there an entirely better way to match two character arrays that have
identical entries but written
2006 Mar 07
3
Expanding partial names
I'm writing wrappers for some functions that change some of the default
arguments. I'd rather not list all of the arguments for the low level
functions because there are about a dozen wrapper functions, and about
20 arguments to lowlevel. Instead I'm trying something like this:
lowlevel <- function(longname = 1) {
cat("longname = ", longname, "\n")
}
2006 Sep 06
1
How to get multiple partial matches?
Hi,
I'm very new to R, and am not at all a software
programmer of any sort. I appreciate any help you
may have. I have figured out how to get my data into
a dataframe and order it alphabetically according to a
particular column. Now, I would like to seperate out
certain rows based on partial character matches. Here
is an (extremely) abreviated example of my data set
Probe Ch1
2020 Jun 26
2
Error in substring: invalid multibyte string
Hi all,
I'm getting the following error from substring:
> substr("<I>Jens Oehlschl\xe4gel-Akiyoshi", 1, 100)
Error in substr("<I>Jens Oehlschl\xe4gel-Akiyoshi", 1, 100) :
invalid multibyte string at '<e4>gel-A<6b>iyoshi'
Is that normal / intended? I've tried setting the Encoding/locale to
Latin-1/UTF-8 but that does not help. nchar
2000 Feb 28
1
mapping of colornames into hsv?
I couldn't find this in online help or the archives:
Is there any R function or object giving the mapping of the colornames as
given by colors() into the hsv() model?
Regards
--
Dr. Jens Oehlschl?gel-Akiyoshi
MD FACTORY GmbH
Bayerstrasse 21
80335 M?nchen
Tel.: 089 545 28-27
Fax.: 089 545 28-10
http://www.mdfactory.de
2000 Feb 28
1
mapping of colornames into hsv?
I couldn't find this in online help or the archives:
Is there any R function or object giving the mapping of the colornames as
given by colors() into the hsv() model?
Regards
--
Dr. Jens Oehlschl?gel-Akiyoshi
MD FACTORY GmbH
Bayerstrasse 21
80335 M?nchen
Tel.: 089 545 28-27
Fax.: 089 545 28-10
http://www.mdfactory.de
2007 Nov 13
5
How to overload the assignment operator?
Dear all,
what is the proper way to make the assignment operator generic and define methods depending on the class of the assigned value?
Best regards
Jens Oehlschl?gel
P.S. I vaguely remember that this was possible in S+. In R I tried to no avail:
# using this like h<-1:3 gives Error: in `<-.default`(h, 1:3) : invalid (do_set) left-hand side to assignment
2020 Jun 27
1
Error in substring: invalid multibyte string
Thanks for the quick response Ivan. readLines with encoding='latin1' works
for me (on Ubuntu).
However I was more concerned with the inconsistency in results between
substr and regexpr. I was expecting that if one of them errors because of
an unknown encoding then the other should as well. Even better, if regexpr
works, why shouldn't substr work as well?
Incidentally the analogous
2008 Jun 27
1
Similarity matching with probabilities
Hello,
It's just a strange coincidence that someone posted just very recently a
question about matching. I know there are several match function in the base
package (such as match, pmatch, charmatch, and the gsub etc) but I can't
seem to use them wisely to be able to get what I need.
suppose I have the following strings:
"tets"
"estt"
"rtes7"
2000 Jul 27
3
R under Win2000?
Dear all,
Will R run under Win2000 or is it safer to stay with NT4.0 for a while?
Regards
--
Dr. Jens Oehlschl?gel
Analyse
BBDO InterOne
Gr?nstr. 15
40212 D?sseldorf
Tel.: +49 (0)211 1379-187
Fax.: +49 (0)211 1379-461
http://www.bbdo-interone.de
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2009 Sep 18
4
basename returns "." not in filename (PR#13958)
Full_Name: Jens Oehlschl?gel
Version: 2.9.2
OS: Win32
Submission from: (NULL) (85.181.152.156)
# Obviously an empty basename is allowed (if the filepath is a pure path)
> basename("/")
[1] ""
# but here we get the dot from the path
> basename("./")
[1] "."
> version
_
platform i386-pc-mingw32
2003 Nov 05
3
How to represent pure linefeeds chr(10) under R for Windows
I need to write out with write.table() a csv file allowing for line feeds
(pure chr(10)) as part of character field (not as a line seperator).
How can I do that?
Best regards
Jens Oehlschl?gel
--
2023 Dec 13
1
Partial matching performance in data frame rownames using [
Dear Ivan,
thanks a lot, that is helpful.
Still, I feel that default partial matching cripples the functionality
of data.frame for larger tables.
Thanks again and best regards
Hilmar
On 12.12.23 13:55, Ivan Krylov wrote:
> ? Mon, 11 Dec 2023 21:11:48 +0100
> Hilmar Berger via R-devel <r-devel at r-project.org> ?????:
>
>> What was unexpected is that in this case was that
2016 Sep 27
2
problem in levels<- and other inconsistencies
# A couple of years ago
# I helped making R's character NA handling more consistent
# Today I report an issue with R's factor NA handling
# The core problem is that
# levels(g) <- levels(g)
# can change the levels of g
# more details below
# Kind regards
# Jens Oehlschl?gel
# Say I have an NA element in a vector or list
x <- c("a","b",NA)
# then using split()
2004 May 13
2
please help with estimation of true correlations and reliabilities
Can someone point me to literature and/or R software to solve the following
problem:
Assume n true scores t measured as x with uncorrelated errors e , i.e.
x = t + e
and assume each true score to a have a certain amount of correlation with
some of the other true scores.
The correlation matrix cx of x will have its off-diagonal entries reduced by
measurement error compared to the true
2003 Oct 23
2
GIS re-mapping / polygon overlap
In Germany the Unemployment Agency uses a sectioning of the german map that
is different from the usual Administrative Boundaries.
Some demographic data are available in Administrative Boundaries only, some
in Unemployment Boundaries only.
I would like to generate estimates in one boundary system of data availabe
in the other boundary system, and would appreciate advice concerning the
following
2007 Jul 13
2
nearest correlation to polychoric
Dear all,
Has someone implemented in R (or any other language)
Knol DL, ten Berge JMF. Least-squares approximation of an improper correlation matrix by a proper one. Psychometrika, 1989, 54, 53-61.
or any other similar algorithm?
Best regards
Jens Oehlschl?gel
Background:
I want to factanal() matrices of polychoric correlations which have negative eigenvalue. I coded
Highham 2002
2009 Dec 28
2
Ops method does not dispatch on either of two classes
I have defined boolean methods for bit and bitwhich objects, for example
|.bit <- function(e1,e2)
and
|.bitwhich <- function(e1,e2)
Both methods coerce their arguments to the respective class, however if I do something like
bit_obj | bitwhich_obj
then I get a warning
Warning message:
Incompatible methods ("|.bit", "|.bitwhich") for "|"
and none of the
2023 Dec 16
2
Partial matching performance in data frame rownames using [
On Wed, 13 Dec 2023 09:04:18 +0100
Hilmar Berger via R-devel <r-devel at r-project.org> wrote:
> Still, I feel that default partial matching cripples the functionality
> of data.frame for larger tables.
Changing the default now would require a long deprecation cycle to give
everyone who uses `[.data.frame` and relies on partial matching
(whether they know it or not) enough time to