Displaying 17 results from an estimated 17 matches similar to: "intervals from cut() as numerics?"
2006 Jan 20
1
Loop through factors without changing to numerics
Hi all,
If I want to write a for loop to loop through a set of factors, which
are not coded in 1,2,3, for e.g in character, possible to write the for
loop without changing it to categorical variables? I saw the manual
mentions for loop will take a list, but I'm not sure how to create a
list here. Any input will be appreciated. Thanks.
Yen Lin
[[alternative HTML version deleted]]
2013 Mar 15
1
numerics from a factor
A problem has been pointed out by a French user of the survival package and I'm looking
for a pointer.
> options(OutDec= ",")
> fit <- survfit(Surv(1:6 /2) ~ 1)
> fit$time
[1] NA 1 NA 2 NA 3
A year or two ago some test cases that broke survfit were presented to me. The heart of
the problem was numbers that were almost identical, where table(x) and unique(x) gave
2019 Apr 01
2
EuroLLVM Numerics issues
On Fri, Mar 29, 2019 at 5:51 PM Arsenault, Matthew via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> A few things I’ve been thinking about:
>
> - Is anyone working on finishing the migration to using the new fneg
> instruction?
>
> What did you have in mind? I was not aware that there is work pending.
> - Controls for allowing and/or mandating denormal
2003 Oct 09
0
Sun, Visual Numerics and DM Review invite you to a Web Seminar
Sun Visual Numerics and DM Review Present
"Java Based Analytics and Visualization: Driving Next Generation Business Analytics"
Date: Wednesday, October 22, 2003
Time: 11:00 a.m. PDT/2:00 p.m. EDT
Duration: One hour
Tune into Sun Microsystems' BIDW Network Series
Hosted by DM Review, 3rd in a 6-part series
Executives today are more challenged than ever to make quick, well
2009 Apr 22
1
Subsetting a vector of numerics such that standard deviation is less than 0.5 ?
> set.seed(999)
> abs(rnorm(20))
[1] 0.28174016 1.31255963 0.79518398 0.27007049 0.27730642 0.56602374
1.87865826 1.26679114 0.96774968 1.12100936 1.32546371 0.13397739
0.93874945
[14] 0.17253810 0.95765045 1.36268625 0.06833513 0.10065765 0.90134475
2.07435711
> v <- abs(rnorm(20))
> v
[1] 1.2285633 0.6430443 0.3597629 0.2940356 1.1252685 0.6422657
1.1067376 0.8848404 1.5540951
2010 Jul 09
2
nls error regarding numerics vs logicals
I am trying to perform an nls for a valid negative exponential function:
zz=nls(y~constant+a.est*2.7183^(b.est*x),start=list(constant=4.0,a.est=-4,b.est
= -.005),trace=T)
and am getting a number of different error messages, the most problematic
of which is "Error in nls(ring.area ~ constant + a.est * 2.7183^(b.est *
ba.beg), start = list(constant = 4, :
REAL() can only be applied to a
2011 Oct 19
3
converting string fractions to numerics
Dear R People:
Suppose I have the following:
"pi/2"
and I would like it to be 1.57.....
Using as.numeric, here is my result:
> as.numeric("pi/2")
[1] NA
Warning message:
NAs introduced by coercion
>
Is there a way to produce the numeric result, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of
2007 Dec 05
2
Displaying numerics to full double precision
I'm working on a shared library of C functions for use with R, and I want to
create a matrix in R and pass it to the C routines. I know R computes and
supposedly stores numerics in double precision, but when I create a matrix
of random numerics using rnorm(), the values are displayed in single
precision, and also exported in single precision when I pass them out to my
C routines. An example
2009 Dec 31
2
Benefit of treating NA and NaN differently for numerics
Hello,
I notice in main/arithmetic.c, that NA and NaN are encoded
differently(since every numeric NA comes from R_NaReal which is
defined via ValueOfNA)
. What is the benefit of treating these two differently? Why can't NA
be a synonym for NaN?
Thank you
Saptarshi
(R-2.9)
2014 Sep 04
2
negative numerics in []
Hello,
I'm a bit puzzled by what looks (to me) like a discrepancy between documentation and implementation.
The documentation for [] says this about the indices: "Numeric values are coerced to integer as by as.integer (and hence truncated towards zero)."
> as.integer(-3.1)
[1] -3
Good. But:
> x <- c(1,2,3)
> x[-3.1]
[1] 1 2 3
Given the documentation, I'd have
2011 Oct 06
1
Issue with read.csv treatment of numerics enclosed in quotes (and a confession)
Dear Help-Rs,
I've been dealing with this problem for some time, using a work-around to deal with it. It's time for me to come clean with my ineptitude and seek a what has got to be a more streamlined solution from the Help-Rverse.
I regularly import delimited text data that contains numerics enclosed in quotes (e.g., "00765288071"). Thing is, for some of these data, I need
2019 Mar 28
2
EuroLLVM Numerics info
All: There will be a BoF talk at the EuroLLVM conference regarding Numerics (FMF and module flags which control fp behavior and optimization).
Even if you are not going to be in attendance, please reply to this thread as we are collecting open issues and ideas for future direction in all layers of LLVM for which optimizations are controlled by numerics flags.
Please read over the numerics blog
2004 Oct 09
2
conversion of a data.frame of numerics to a data.frame of factors
Hi,
I am trying to convert a data.frame of numerics (this could be a matrix as well in this case) into a data.frame of factors.
I did it in a way that is less than direct...
myforet2<-t(myforet)
for (i in 1:length(myforet2[1,])) {
if (i == 1)myforetfact<-list(as.factor(myforet2[,i]))
else myforetfact<-c(myforetfact,list(as.factor(myforet2[,i])))
}
2012 Aug 02
2
Rd] Numerics behind splineDesign
On 08/02/2012 05:00 AM, r-devel-request at r-project.org wrote:
> Now I just have to grovel over the R code in ns() and bs() to figure
> out how exactly they pick knots and handle boundary conditions, plus
> there is some code that I don't understand in ns() that uses qr() to
> postprocess the output from spline.des. I assume this is involved
> somehow in imposing the boundary
2002 Oct 28
2
subsetting character vector into groups of numerics
I'm sure there's a simple way to do this, but I can only think of
complicated ones.
I have a number of character vectors that look something like this:
"12 78 23 9 76 43 2 15 41 81 92 5(92 12) (81 78 5 76 9 41) (23 2 15 43)"
I wish to get it into a list of numerical vectors like this:
$Group
[1] 12 78 23 9 76 43 2 15 41 81 92 5
$Subgroup1
[1] 92 12
$Subgroup2
[1] 81 78 5
2019 Apr 04
3
EuroLLVM Numerics info
Hi Micheal,
Thanks for the blog post. Just like to point out few things that I thought
is related to FP Numerics.
LLVM could do some additional transformation with "sqrt" and "division"
under fast math on X86 like 1/sqrt(x)* 1/sqrt(x) to 1/x. These are long
latency instructions and could get benefit if enabled under unsafe math.
Also are we considering doing such FP
2019 Mar 29
8
EuroLLVM Numerics issues
All: There will be a BoF talk at the EuroLLVM conference regarding Numerics (FMF and module flags which control fp behavior and optimization).
Even if you are not going to be in attendance, please reply to this thread as we are collecting open issues and ideas for future direction in all layers of LLVM for which optimizations are controlled by numerics flags. Please read over the numerics blog