Displaying 20 results from an estimated 3000 matches similar to: "Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8"
2019 Feb 07
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
I can confirm that it doesn't happen on Ubuntu 18.04.1 so Peter is
most likely correct; it looks like its Windows specific.
On Thu, 7 Feb 2019 at 12:55, peter dalgaard <pdalgd at gmail.com> wrote:
>
> This doesn't seem to be happening on MacOS, neither in Terminal nor RStudio, (R 3.5.1, R-devel, R-patched). So probably Windows specific.
>
> -pd
>
> > On 7 Feb
2019 Feb 08
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
I can reproduce this behavior on my Windows 10 system in RGui (cp1252):
when I paste the Unicode infinity symbol into the console, it is treated
as number 8. This is caused by Windows "best fit" default behavior in
conversion of unicode characters to characters in the current native
encoding: at some point in the past, 8 has been chosen as a good fit for
infinity in Windows. In my
2019 Feb 07
0
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
This doesn't seem to be happening on MacOS, neither in Terminal nor RStudio, (R 3.5.1, R-devel, R-patched). So probably Windows specific.
-pd
> On 7 Feb 2019, at 11:17 , David Byrne <david.byrne222 at gmail.com> wrote:
>
> Bug
> Using read.table(file, encoding="UTF-8") to import a UTF-8 encoded
> file containing the infinity symbol (' ? ') results in
2019 Feb 07
0
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
There seems to be something odd with "?" on Windows (and not only with
read.table)
In native encoding (cp-1252 in my case), "?" gets converted to "8"
x <- "?"
Encoding(x)
#> [1] "unknown"
print(x)
#> [1] "8"
charToRaw(x)
#> [1] 38
"?" is indeed "8"
identical(x, "8")
#> [1] TRUE
Everything
2019 Feb 08
0
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
Tomas,
> In my scenario, the conversion is invoked by RGui before returning the
input to the main R loop, even before the input gets to the parser. In
principle, we could change this particular conversion in RGui to avoid the
substitution.
Not sure whether I am missing something here, but I used RStudio for my
examples (I should have said) and David's mentioned RStudio as well, so it
does
2007 Feb 21
2
[LLVMdev] Trouble with sample project's autoconf
I'm trying to follow docs/Projects.html to use llvm in a project of my own.
If I just copy the sample directory, running configure in the new one
works fine:
~/programming/llvm-1.9/projects $ cp -a sample/ zhe
~/programming/llvm-1.9/projects $ cd zhe/
~/programming/llvm-1.9/projects/zhe $ ./configure
configure: creating ./config.status
config.status: creating Makefile.common
config.status:
2007 Feb 23
1
[LLVMdev] Trouble with sample project's autoconf
On 2/23/07, Reid Spencer <rspencer at reidspencer.com> wrote:
> > However, if I run the AutoRegen.sh script (after modifying it to
> > accept autoconf 2.61, which I think is fine as gentoo slots it the
> > same as the 2.5[0-9] versions), the configure no longer works:
> > ~/programming/llvm-1.9/projects/zhe $ cd autoconf/
> >
2007 Feb 23
0
[LLVMdev] Trouble with sample project's autoconf
Hello Scott,
On Wed, 2007-02-21 at 18:57 -0500, me22 wrote:
> I'm trying to follow docs/Projects.html to use llvm in a project of my own.
>
> If I just copy the sample directory, running configure in the new one
> works fine:
> ~/programming/llvm-1.9/projects $ cp -a sample/ zhe
> ~/programming/llvm-1.9/projects $ cd zhe/
> ~/programming/llvm-1.9/projects/zhe $
2006 Jul 12
1
-Infinity for Doule type column
Hi list.
I''m writing a program that stores a lot of Floats into MySQL database.
Simplified version of the program use the following form of class.
class Val < ActiveRecord::BASE
end
And Vals table contains one column:
num double
One of my data contains -Infinity for num and when I try to
Val.new
Val.num = <- Here goes -Inifinity
Val.save!
Then the program crashes:
2007 Dec 30
2
Symbolic substitution in parallel; use infinity symbol?
I'd like to be able to modify axlab in (C) below so that 'Inf'
is replaced by the infinity symbol.
y <- rnorm(40)
breaks <- c(-Inf, -1, 1, Inf)
x <- cut(y, breaks=breaks)
plot(unclass(x), y, xaxt="n", xlab="")
## A: The following gives the axis labels "(-Inf, 1]", etc.
axis(1, at=1:3, labels=expression("(-Inf,-1]", "(-1,1]",
2000 Nov 07
3
infinity in integrate function in R
sorry the integration was from -Inf to 1.96
The integrate function in R is not taking Inf (infinity). How do you use
infinity in R. I was doing: integrate(dnorm,- Inf, 1.96) and I was getting
Error: NA/NaN/Inf in foreign function call (arg 2). Obviously this should
be equal to pnorm(1.96)= 0.9750021. How do you get around the infinity
problem in R?
2013 Feb 19
4
Float::INFINITY ranges in where() clause
This seems like such an obvious idea that I''m having trouble believing
I''m the first to think of it. Why not take ranges containing
Float::INFINITY and translate them to the appropriate greater than or
less than comparisons? Example:
class Person
scope :voters, -> { where(born_on: (-Float::INFINITY..18.years.ago)) }
end
This would generate something along the lines of
2005 Dec 05
3
The gamma function and infinity
I have to calculate some formula like:
gamma(x)/(gamma(x+y)
and I observed that for relatively big values of x, R
returns infinity and so cannot compute the formula. Is
it possible to force R to give the real value of
gamma(x) instead of Inf ?
thanks
2009 Mar 26
2
sum to infinity
Hi r-users,
How do we evaluate the summation of (1/m!) from 0 to infinity (for example).
Any help is very much appreciated.
Thank you.
2007 Feb 13
1
nls: "missing value or an infinity" (Error in numericDeriv) and "singular gradient matrix"Error in nlsModel
Hi,
I am a non-expert user of R. I am essaying the fit of two different functions to my data, but I receive two different error messages. I suppose I have two different problems here... But, of which nature? In the first instance I did try with some different starting values for the parameters, but without success.
If anyone could suggest a sensible way to proceed to solve these I would be
2003 Apr 23
1
nls: Missing value or an Infinity produced when evaluating the model
Hi,
I am trying to fit a sigmoid curve to some data with nls but I am getting
into some trouble.
Seems that the optimization method is getting down to some parameter
estimates that make the equation unsolvable. This is an example:
>growth<-data.frame(Time=c(5,7,9,11,13,15,17,19,21,23,25,27),BodyMass=c(45,85,125,210,300,485,570,700,830,940,1030,1120))
2010 Nov 12
6
help with bridging
Hello,
There is a xen setup in which "brctl show" gives the following output.
bridge name bridge id STP enabled interfaces
eth1 8000.003048c9d4df no peth1
vif1.0
vif2.0
2009 Nov 06
1
dome domU''s can''t connect to the internet, while others can
Hi all,
I have a very strange situation, which I can''t explain.
On a Core 2Quad server with 8GB RAM, we have 10 xen domU''s, as follows:
vps.animalsaregreat.info login: root@zaxen01:[~]$ xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 512 4 r----- 232.2
actionco.vm
2011 Apr 11
1
heatmap clustering dendrogram export
Hi,
I am a beginner for R.
I had use gplots to generate a heatmap as following:
>heatmap.2(matrix, col=topo.colors(75), dendrogram="column", Rowv=FALSE,
trace="none", key=TRUE, keysize=0.8, density.info="none", cexRow=0.2,
cexCol=0.6)
It work well. It generate heatmap whith rcolumn clustering dendrogram and I
can export a very nice graph. But I don not know how
2012 Aug 21
2
define subset argument for function lm as variable?
Hi
I want to do a series of linear models, and would like to define the input arguments for lm() as
variables. I managed easily to define the formula arguments in a variable, but I also would like to
have the "subset" in a variable. My reasoning is, that I have the subset in the results object.
So I wiould like to add a line like:
subs <- dead==FALSE & recTreat==FALSE
which