search for: oehlschl

Displaying 20 results from an estimated 137 matches for "oehlschl".

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...
2020 Jun 27
1
Error in substring: invalid multibyte string
.... 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 stringi function stri_sub works fine in this case: > stringi::stri_sub("<I>Jens Oehlschl\xe4gel-Akiyoshi", 1, 100) [1] "<I>Jens Oehlschl\xe4gel-Akiyoshi" But the stringi analog to nchar gives a similar warning: > stringi::stri_length("<I>Jens Oehlschl\xe4gel-Akiyoshi") [1] NA Warning message: In stringi::stri_length("<I>Jens Oehlschl...
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 "<-.default" <- get("<-") # using this does fail on subassi...
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...
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 http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send &...
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 --
2004 May 13
2
please help with estimation of true correlations and reliabilities
...the correlation of a score with itself attenuated by its measurement error (as if we had two measurements of the same score). but I don't have predefined asumptions about structure in the variable set as I guess would be needed for SEM. Is R software available to do this? Best regards Jens Oehlschl??gel --
2009 Nov 15
3
file.rename overwrites existing target (PR#14065)
Full_Name: Jens Oehlschl?gel Version: 2.10.0 OS: Windows XP Professional Submission from: (NULL) (85.181.158.112) file.rename() will successfully rename file a to b - even if b exists already. Though the documentation does not state what file.rename() will do in this case, I guess the expected behaviour is to fail and r...
2003 Oct 23
2
GIS re-mapping / polygon overlap
...OR - is there an efficient R function that can determine the amount of area overlap between two general polygons (beyond gpclib) I am willing to share developed code for this problem (that's why I would prefer gpl code over gpclib, which is not really free) Thanks for any help Jens Oehlschl?gel -- NEU F?R ALLE - GMX MediaCenter - f?r Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gru?, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse f?r Mail, Message, More! +++
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() it gets lost split(x, x) # as it is (somewhat) when converting to a default factor table(as.factor(x)) # for table the workaround is table(as.factor(x), exclude=NULL) # but for...
2004 Feb 27
2
Is there a way to deactivate partial matching in R?
...ets more and more dangerous. I would like to deactivate partial matching in R (partial argument matching as well as partial matching of list elements), e.g. using an environment variable. If this is currently not possible this would be my current most important wishlist topic. Best regards Jens Oehlschl?gel --
2004 Feb 27
2
Is there a way to deactivate partial matching in R?
...ets more and more dangerous. I would like to deactivate partial matching in R (partial argument matching as well as partial matching of list elements), e.g. using an environment variable. If this is currently not possible this would be my current most important wishlist topic. Best regards Jens Oehlschl?gel --
2009 Dec 28
2
Ops method does not dispatch on either of two classes
...which") for "|" and none of the two methods is called. Instead the (internal) method for logicals seems to be called - not even coercing its arguments to logical. Same problem with Ops.bit and Ops.bitwhich . What is the recommended way to get my methods reliably dispatched? Jens Oehlschl?gel
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 Computing the nearest correlation matrix - a problem from finance, IMA Journal of Numerical Analysis (2002), 22, 329-343. which basically works but still leaves very sm...
2003 Oct 31
2
How to grow an R object from C (.Call Interface)
...ECT mechanism, UNPROTECT would not work to remove the smaller one, after the bigger has been protected. Is this an indication to use UNPROTECT_PTR ? Or is another approach recommended? May be the solution to this is worth a sentence in "Wrtiting R Extensions". Thanks for any help Jens Oehlschl?gel -- NEU F?R ALLE - GMX MediaCenter - f?r Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gru?, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse f?r Mail, Message, More! +++
2017 Jun 16
3
'ordered' destroyed to 'factor'
...39;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 longer ordered Jens?Oehlschl?gel ? ? P.S: The above examples are silly for simple reproduction. The current behavior broke my use-case which had a structure like this ? # have some data x <- 1:20 # apply some function to each element somefunc <- function(x){ ? # do something and return an ordinal level ? sample(o, 1) } x...
2004 May 13
1
please help with estimation of true correlations andreliabilities
...ors, and I do not know which items belong to which factors but I still want to estimate single item reliabilities Is this impossible? How can one specify such unspecified model to sem? Which (exploratory?) function would me help doing this? Or just: what should I read? Thanks for any help Jens Oehlschl??gel --
2009 Oct 01
2
(no subject)
Hi, Does anyone know where the following package is available: Holleczek B, Gondos A, Brenner H. PeriodR - an R package to calculate long term survival estimates using period analysis. Methods of Information in Medicine 2009; 48: 123-128. Thanks Jens Oehlschl?gel -- GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT!
2007 Aug 03
2
How to properly finalize external pointers?
...ng runtime that it can be done immediately. Shouldn't R_ClearExternalPtr call the finalizer and then unregister it? (this would also work when removing the SEXP external pointer object is difficult because it was handed over to the closing function directly as a parameter) Best regards Jens Oehlschl?gel // C-code static void rindex_finalize(SEXP extPtr){ pINT ptr = R_ExternalPtrAddr(extPtr); if(ptr){ Free(ptr); Rprintf("finalized\n"); }else{ Rprintf("nothing to finalize\n"); } return; } SEXP rindex_open( SEXP Sn ){ int i,n = INTEGER(Sn)[0];...
2007 May 03
3
factanal AIC?
Dear list members, Could any expert on factor analysis be so kind to explain how to calculate AIC on the output of factanal. Do I calculate AIC wrong or is factanal$criteria["objective"] not a negative log-likelihood? Best regards Jens Oehlschl?gel The AIC calculated using summary.factanal below don't appear correct to me: n items factors total.df rest.df model.df LL AIC AICc BIC 1 1000 20 1 210 170 40 -5.192975386 90.38595 93.80618 286.6962 2 1000 20 2 21...