similar to: Symbolic substitution in parallel; use infinity symbol?

Displaying 20 results from an estimated 7000 matches similar to: "Symbolic substitution in parallel; use infinity symbol?"

2005 Oct 01
2
Multiple expressions, when using substitute()
expression() accepts multiple expressions as arguments, thus: plot(1:2, 1:2) legend("topleft", expression(y == a * x^b, "where "* paste(y=="wood; ", x=="dbh"))) Is there a way to do this when values are to be substituted for a and b? i.e., the first element of the legend argument to legend() becomes,
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 Jul 19
1
substitute and expression (Peter Dalgaard)
In this connection, note the following > a4 <- 4 > plotThis <- bquote(alpha==.(a), list(a=a4)) > do.call(plot, list(1:10, main=do.call(expression, c(plotThis)))) > do.call(plot, list(1:10, main=do.call(expression, plotThis))) Error in do.call(expression, plotThis) : second argument must be a list > ## Whereas plotThis has class "call", c(plotThis) has class
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?
2001 May 07
2
Symbolic substitution of expressions into expressions
In the following titletxt <- substitute(paste(tx, tilde(y) == sqrt(y)), list(tx="Replace y by ")) I'd like to be able to replace e.g. sqrt(y) by a symbol or symbolic expression that has the effect of inserting sqrt(y) into the place that it occupies. This would allow me to put an arbitrary expression into that position. [One can use text() or mtext() etc. to place titletxt
2019 Feb 07
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
Bug Using read.table(file, encoding="UTF-8") to import a UTF-8 encoded file containing the infinity symbol (' ? ') results in the infinity symbol imported as the number 8. Other Unicode characters seem unaffected, example, Zhe: ? Expected Behavior: The imported data.frame should represent the infinity symbol as the expected 'Inf' so that normal mathematical operations
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
2006 Sep 13
3
unexpected result in glm (family=poisson) for data with an only zero response in one factor
Dear members, here is my trouble: My data consists of counts of trapped insects in different attractive traps. I usually use GLMs with a poisson error distribution to find out the differences between my traitments (and to look at other factor effects). But for some dataset where one traitment contains only zeros, GLM with poisson family fail to find any difference between this particular traitment
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
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.
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
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))
2009 Dec 11
1
Array of legend text with math symbols from predefined variables
Hello, I am trying to include legend text with math symbols from a predefined character variable that is read in from a file. ? If there is only one line of text in the legend, the following, although cumbersome, works for me: ? > LegendText = " 'U' [infinity], '=10 m/s' "?? # (read in from a file) ??> LegendName = paste("bquote(paste(",LegendText,
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
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
2012 Apr 27
3
kiteChart to show real values with scalebar
Dear R-users I hope someone could help me on this problem. I want to create a multiple kiteChart showing the real values with a scalebar on each indicating the scale . Here are some sample data to show what I want to achieve. Y <- read.table(textConnection("Sample1 Sample2 60 20 150 50 300
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
2008 Jun 25
0
Use plotmath expressions read from a text file in mtext/bquote
Hello R-help List I am writing some R scripts to create graphs of water quality trends that will be called by a web service running R. The axis titles will need to change as the input data (ie. water quality variable) changes according to a user's choice made via a web page. The way I am currently passing call-specific parameters to the R script is via a text file created on the fly by the
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