search for: numericconst

Displaying 12 results from an estimated 12 matches for "numericconst".

2009 Nov 17
3
Calculating the power of a negative number
Hello, I use R a lot, one thing bugs me is that when I try the following > x<- -8 > x^(1/3) [1] NaN However, it is fine with -8^(1/3). Priority goes to the power. Can you help me out for this? Thanks. Best, Zhiyuan J. ZHENG Ph.D. Candidate Economic Department Virginia Polytechnic Institute and State University Phone: 540-231-5120 , Blacksburg, VA, 24060
2012 May 03
2
Difference between 10 and 10L
Good Evening We have been searching through the R documentation manuals without success on this one. What is the purpose or result of the "L" in the following? n=10 and n=10L or c(5,10) versus c(5L,10L) Thanks Joe Thanks Joe [[alternative HTML version deleted]]
2010 May 23
2
possible bug in formals
Hi, I am a little bit surprised by the following output of 'formals'. Is this the intended behavior? > f <- function(a=1,b=-1) { a+b } > class(formals(f)$a) [1] "numeric" > class(formals(f)$b) [1] "call" Josef -- ----------------------------------------------------------------------------- Josef Leydold | WU (Vienna University of Economics and
2024 Jun 14
0
R 4.4.1 is released
...uired to support these. BUG FIXES: * as.numeric(), scan(), type.convert() and other places which use the internal C function R_strtod now require a _non-empty_ digit sequence in a decimal or binary exponent. This aligns with the C/POSIX standard for strtod and with ?NumericConstants. * as.data.frame(m, make.names=NA) now works correctly for a matrix m with NA's in row names. * The error message from <POSIXlt>[["hour"]] and similar now mentions *[[, "hour"]], as wished for in PR#17409 and proposed by Michael Chirico....
2024 Jun 14
0
R 4.4.1 is released
...uired to support these. BUG FIXES: * as.numeric(), scan(), type.convert() and other places which use the internal C function R_strtod now require a _non-empty_ digit sequence in a decimal or binary exponent. This aligns with the C/POSIX standard for strtod and with ?NumericConstants. * as.data.frame(m, make.names=NA) now works correctly for a matrix m with NA's in row names. * The error message from <POSIXlt>[["hour"]] and similar now mentions *[[, "hour"]], as wished for in PR#17409 and proposed by Michael Chirico....
2024 Jun 14
0
R 4.4.1 is released
...uired to support these. BUG FIXES: * as.numeric(), scan(), type.convert() and other places which use the internal C function R_strtod now require a _non-empty_ digit sequence in a decimal or binary exponent. This aligns with the C/POSIX standard for strtod and with ?NumericConstants. * as.data.frame(m, make.names=NA) now works correctly for a matrix m with NA's in row names. * The error message from <POSIXlt>[["hour"]] and similar now mentions *[[, "hour"]], as wished for in PR#17409 and proposed by Michael Chirico....
2009 Nov 16
4
Where are usages like "== 2L" documented?
Gurus: I keep seeing other people?s code that contain ideas like If (x == 2L) X[-1L] X - 1L I have some idea of what?s going on, but where is the use of concepts like ?2L? documented? Thanks, Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2008 Apr 30
1
+ and - in RODBC : no longer considered factors
I have a large Sweave report that reads data from a database file. Some of the columns are 1-character strings containing only +, - or NA. An example for such a table is shown below, and can be downloaded for easier testing from http://www.menne-biomed.de/uni/test.zip (For security reasons, the file is zipped) table test hp hp1 + a - + library(RODBC) channel =
2011 Feb 23
4
The L Word
I've been wondering what L means in the R computing context, and was wondering if someone could point me to a reference where I could read about it, or tell me what it's called so that I can search for it myself. (L by itself is a little too general for a search term). I encounter it in strange places, most recently in the "save" documentation. save(..., list = character(0L),
2008 Jul 31
2
dput vs unclass to see what a factor really is composed of
I used read.dta() to read in a Stata 9 dataset to R. The "Sex01" variable takes on two values in Stata: 0 and 1, and it is labeled "M" and "F" respectively, analogous to an R factor. Thus, read.dta reads it in as a factor. Now, I wanted to see what this variable *really* is, in R. For instance, sometimes R converts a 0/1 variable into a 1/2 variable when it considers
2008 Apr 22
3
R 2.7.0 is released
...ensures cross-platform consistency, and mitigates the effects of setting LC_NUMERIC (within base R it only applies to output -- packages may differ). The format accepted is more general than before and includes binary exponents in hexadecimal constants: see ?NumericConstants for details. o Dependence specifications for R or packages in the Depends field in a DESCRIPTION file can now make use of operators < > == and != (in addition to <= and >=): such packages will not be installable nor loadable in R < 2.7.0. T...
2008 Apr 22
3
R 2.7.0 is released
...ensures cross-platform consistency, and mitigates the effects of setting LC_NUMERIC (within base R it only applies to output -- packages may differ). The format accepted is more general than before and includes binary exponents in hexadecimal constants: see ?NumericConstants for details. o Dependence specifications for R or packages in the Depends field in a DESCRIPTION file can now make use of operators < > == and != (in addition to <= and >=): such packages will not be installable nor loadable in R < 2.7.0. T...