similar to: Error in substring: invalid multibyte string

Displaying 20 results from an estimated 1000 matches similar to: "Error in substring: invalid multibyte string"

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
2020 Jun 27
0
Error in substring: invalid multibyte string
On Fri, 26 Jun 2020 15:57:06 -0700 Toby Hocking <tdhock5 at gmail.com> wrote: >invalid multibyte string at '<e4>gel-A<6b>iyoshi' >https://stat.ethz.ch/pipermail/r-devel/1999-November/author.html The server says that the text is UTF-8: curl -sI \ https://stat.ethz.ch/pipermail/r-devel/1999-November/author.html | \ grep Content-Type # Content-Type: text/html;
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
2000 Feb 29
3
standing ovations
I think this is a moment to lean back from daily business, details or whatsoever and appreciate the impressive achievment of Ross, Robert and the R-core team. Incredible! They created an impressive and extremely useful software, for teaching, research and more. Besides these direct practical benefits, I think this project is more: it gives an outstanding example of international cooperation and
1999 Oct 18
2
Solving problems with read.fwf(), perl under WinNT (was: Re: Using metric scaling)
Some days ago a problem with perl under WinNT was reported, which lead to > > t1 <- read.fwf("d:/maj/consulting/MarkStevens/matrix.txt", width=c(4, 22, > rep(7, 8))) > Error: "scan" can't open file I installed perl from the WindowsNt Recource Kit CD (Sept. 98) and encountered the same problem: Scan couldn't open the file - because perl did not produce
2000 Jan 31
1
long character data
Hi, When trying to generate very long strings, my R hangs without any error message, even if given much memory. # e.g. x <- character(10) for (i in 1:10) x[i] <- paste(1:1000, collapse="abc") paste(x, collapse="") # or directly paste(1:10000, collapse="abc") Am I violating any max(nchar(character())) or is this a bug? Regards Jens Oehlschl?gel-Akiyoshi
2019 Feb 20
2
Bug: time complexity of substring is quadratic as string size and number of substrings increases
Hi all, (and especially hi to Tomas Kalibera who accepted my patch sent yesterday) I believe that I have found another bug, this time in the substring function. The use case that I am concerned with is when there is a single (character scalar) text/subject, and many substrings to extract. For example substring("AAAA", 1:4, 1:4) or more generally, N=1000
1999 Nov 12
1
some related problems
I just tried to batch-start rgui.exe (not rterm.exe) in a way, that it read.table()s data from a file with changing filename. As I understand no command line parameters are available for that, so instead I tried to pass the filename to an approbriate .RProfile, which works roughly, BUT ## this is my %R_USER%\.RProfile im <- read.table("d:/temp/im/temp.csv", header=TRUE,
2019 Feb 22
1
Bug: time complexity of substring is quadratic as string size and number of substrings increases
On 2/20/19 7:55 PM, Toby Hocking wrote: > Update: I have observed that stringi::stri_sub is linear time complexity, > and it computes the same thing as base::substring. figure > https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.png > source: > https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.R > > To me this is a
2000 Jun 27
2
R as a server in client server computing
I like to have a continuously running R process, which can receive a dataframe from a client (over TCP/IP), does some processing, and sends some data back. What is the prefered way to do this? Using the socket interface? Using omega's CORBA stuff? Does anyone has example code for doing so? Thanks for any help Regards -- Dr. Jens Oehlschl?gel-Akiyoshi Analyse MD FACTORY GmbH Gr?nstr. 15
1999 Oct 04
1
SQL-Interface
Can anyone give advice how to interactively exchange data between R and SQL-Databases like DB2, ORACLE, MS-SQL-Server ? If the answer is: 'currently not', this would be information for me as well. I will summarize to the list. Best 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
1999 Dec 20
1
BUG?
Hi, under RW0.651 and RW0.091 I found > x <- data.frame(char=I(letters[1:3]), num=1:3, log=c(TRUE, FALSE, NA), fak=factor(letters[24:26])) > x char num log fak 1 a 1 TRUE x 2 b 2 FALSE y 3 c 3 NA z > > x[1,1] <- 'a' > x[1,1] [1] "1" > > x$char[1] <- 'a' > x$char[1] [1] "a" > >
2000 Jan 26
1
paste with a matrix
Hi, below is a function which pastes a matrix, but uses parsing (deparse(substitute()) and eval()). Does anyone know a more standard solution to pasting a matrix? Best Jens > paste.matrix(dd, sep=" ", collapse=NULL) [1] "1 a" "2 b" "3 c" > paste.matrix <- function(mtext, sep=" ", collapse=NULL){ + rcode <- paste( +
1999 Oct 25
1
Summary: SQL-Interface
Some days ago I asked for general methods to access SQL-Databases. Thanks to: Terry Westley [twestley at buffalo.veridian.com], partha_bagchi at hgsi.com, F.Tusell [etptupaf at bs.ehu.es], Michael Lapsley [mlapsley at ndirect.co.uk], Robert Gentleman [rgentlem at jimmy.harvard.edu], Torsten Hothorn [hothorn at statistik.uni-dortmund.de] Several solutions were suggested: (1) using Michael
1999 Nov 10
1
read.table problems
Yesterday I asked for help about read.table with a CSV file. I received the following help. As always many thanks for the prompt responses. Now I load my csv file in a text editor ( pfe) and delete all spaces. My original mail is at the end. From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> Do you have spaces before the commas in your file? > Yes, number , space,
1999 Nov 10
1
read.table problems
Yesterday I asked for help about read.table with a CSV file. I received the following help. As always many thanks for the prompt responses. Now I load my csv file in a text editor ( pfe) and delete all spaces. My original mail is at the end. From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> Do you have spaces before the commas in your file? > Yes, number , space,
1999 Dec 06
1
No subject
Hi, can anyone help with two questions concerning persp? (1) Is there a function in R to project points onto a persp() plot, as is in S+ (perspp() I think) ? (2) How can I label and tickmark axes x,y and z in a persp plot? (I am still using RW065) Thanks for any help -- Dr. Jens Oehlschl?gel-Akiyoshi MD FACTORY GmbH Bayerstrasse 21 80335 M?nchen Tel.: 089 545 28-27 Fax.: 089 545 28-10
1999 Dec 17
1
... and parameter checking
Hi, when writing a wrapper function, I would like to be able to pass additional arguments to more than one function inside, e.g. density.panel <- function(x, na.rm=TRUE, ...){ usr <- par("usr") on.exit(par(usr)) par(usr = c(usr[1:2], 0, 1) ) lines( density(x, na.rm=na.rm, ...), ... ) } and then call it like density.panel(x, col="red",
1999 Dec 22
0
data.frame(I(matrix)) ?
Before sending to r-bugs I ask here: > mat <- matrix(letters, 2, 2) > dimnames(mat) <- list(c(1:2), c("x","y")) > mat x y 1 "a" "c" 2 "b" "d" > dd <- data.frame(I(mat)) > ddd I.mat..x I.mat..y 1 a a 2 b b 3 c c doesn't look too bad, but only one column name: