search for: octmod

Displaying 20 results from an estimated 39 matches for "octmod".

Did you mean: octmode
2001 Dec 26
3
bug with var(rep(1e30, 3)) (PR#1228)
There seems to be a bug with var() when the argument is a vector with exactly three values of 1e30 (or close to this value). This does not happen with twice, four (or more) times this value, or another value. > var(rep(1e30, 3)) [1] 2.971056e+28 > var(rep(1.2e30, 3)) [1] 2.971056e+28 > var(rep(0.9e30, 3)) [1] 2.971056e+28 > var(rep(0.8e30, 3)) [1] 0 > var(rep(1e29, 3)) [1] 0 >
2009 Oct 23
2
reg-tests-1.R failure with unstable
...rom one of the test files tests/reg-tests-1.R using the unstable version (r50179). (i've learned my lessons; this is a clean build.) The tail of reg-tests-1.Rout.fail is Loading required package: myTst building package pkgA ... installing package pkgA using file pkgA_1.0.tar.gz ... Error in as.octmode(mode) : invalid digits Error in install.packages(r, lib = "myLib", repos = NULL, type = "source") : (converted from warning) installation of package 'pkgA_1.0.tar.gz' had non-zero exit status Execution halted The error from as.octmode() appears to be coming from R CM...
2002 Jun 18
3
Maybe a problem in binary read/write (PR#1688)
...yte, and writing a second byte, R hangs on the next read for an unknown reason. I guess this is a bug in the read/write functions. If you have a PS/2 device you may try to run the following code: ascii <- sapply(1:255, function(i) parse(text=paste("\"\\",structure(i,class="octmode"),"\"",sep=""))[[1]]) dev <- file("/dev/psaux") open(dev, "w+b") writeChar(ascii[246], dev, eos=NULL) readBin(dev, what=integer(), n=1, size=1, signed=FALSE) writeChar(ascii[246], dev, eos=NULL) readBin(dev, what=integer(), n=1, size=1, signed=F...
2010 Sep 13
2
as.Date() add a day to a date
I'm trying to understand why as.Date() is converting a the modified date of a file from August 22 to August 23. > foo <- file.info(file.to.process) > str(foo) 'data.frame': 1 obs. of 10 variables: $ size : num 5.37e+09 $ isdir : logi FALSE $ mode :Class 'octmode' int 436 $ mtime : POSIXct, format: "2010-08-22 23:14:52" $ ctime : POSIXct, format: "2010-09-13 11:34:31" $ atime : POSIXct, format: "2010-09-09 15:42:00" $ uid : int 503 $ gid : int 503 $ uname : chr "ayee" $ grname: chr "ayee" &...
2007 Feb 15
1
convert to binary to decimal
Hello, we need to convert a logical vector to a (decimal) integer. Example: a=c(TRUE, FALSE, TRUE) (binary number 101) the function we are looking for should return dec2bin(a)=5 Is there a package for such a function or is it even implemented in the base package? We found the hexmode and octmode command, but not a binmode. We know how to program it ourselves however we are looking for a computationally efficient algorithm. Martin and Stefan
2012 Jun 08
2
remove leading slash
Hello, How do I change this: > cnt_str [1] "\002" "\001" "\102" ...to this: > cnt_str [1] "2" "1" "102" Having trouble because of this: > nchar(cnt_str[1]) [1] 1 Thanks! Ben [[alternative HTML version deleted]]
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list, I read in ?plotmath that I can use bgroup to draw scalable delimiters such as [ ] and ( ). The same technique fails with < > however, and I cannot find a workaround, grid.text(expression(bgroup("<",atop(x,y),">"))) Error in bgroup("<", atop(x, y), ">") : invalid group delimiter Regards, baptiste sessionInfo() R version
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list, I read in ?plotmath that I can use bgroup to draw scalable delimiters such as [ ] and ( ). The same technique fails with < > however, and I cannot find a workaround, grid.text(expression(bgroup("<",atop(x,y),">"))) Error in bgroup("<", atop(x, y), ">") : invalid group delimiter Regards, baptiste sessionInfo() R version
2003 Aug 20
0
SJava in R
...all.equal.POSIXct all.names all.vars anova anova.glm anova.glmlist anova.glm.null anovalist.lm anova.lm anova.lmlist anova.lm.null anova.mlm any aov aperm append apply approx approxfun apropos Arg args array arrows as.array as.call as.character as.character.default as.character.factor as.character.octmode as.character.POSIXt ... yinch zapsmall zip.file.extract function call [objects('package:base')] ^ ~ < <<- <= <- = == > >= | || - : :: ! != ? / ( [ [<- [[ [[<- { @ $ $<- * & && %/% %*% %% + abbreviate abline abs acos acosh add1 add1.default add1.gl...
2013 Apr 16
1
testInstalledBasic / testInstalledPackages
...s.numeric( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.numeric( f ))) [1] TRUE > f <- try(as.numeric_version( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.numeric_version( f ))) [1] TRUE > f <- try(as.octmode( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.octmode( f ))) [1] TRUE > f <- try(as.ordered( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.ordered( f ))) [1] TRUE > f <- try(as.package_version( x ), si...
2023 Apr 08
0
Time to add is.formula() to 'stats'?
...esponding is.Y()? [1] "Date" "POSIXct" "POSIXlt" "dendrogram" [5] "difftime" "dist" "formula" "graphicsAnnot" [9] "hclust" "hexmode" "octmode" "person" [13] "personList" "roman" 3. For which Z does is.Z() just call inherits(., "Z")? [1] "data.frame" "factor" "numeric_version" "ordered" [5] "package_version" "raste...
2003 Jun 27
1
sprintf("%c",...)
How does one get the character that corresponds to a number? Also the inverse? The %c format code is not supported by the R sprintf function and I could not find another way to do it.
2001 Oct 04
1
Bug when trying to save a character vector with an embedded / (PR#1115)
Here is an example involving "VIA\B". > version _ platform sparc-sun-solaris2.6 arch sparc os solaris2.6 system sparc, solaris2.6 status major 1 minor 3.0 year 2001 month 06 day 22 language
2010 Apr 22
2
R2.11.0 - rasterImage() and barplot fill-patterns
...f8() now map NA inputs to NA outputs. > > o file() has a new argument 'raw' which may help if it is used > with something other than a regular file, e.g. a character device. > > o New function strtoi(), a wrapper for the C function strtol. > > o as.octmode() and as.hexmode() now allow inputs of length other > than one. > > The format() and print() methods for "octmode" now preserve > names and dimensions (as those for "hexmode" did). > > The format() methods for classes "octmode&...
2010 Apr 22
0
R 2.11.0 is released
...o utf8ToInt() and intToUtf8() now map NA inputs to NA outputs. o file() has a new argument 'raw' which may help if it is used with something other than a regular file, e.g. a character device. o New function strtoi(), a wrapper for the C function strtol. o as.octmode() and as.hexmode() now allow inputs of length other than one. The format() and print() methods for "octmode" now preserve names and dimensions (as those for "hexmode" did). The format() methods for classes "octmode" and "hexmode&...
2010 Apr 22
0
R 2.11.0 is released
...o utf8ToInt() and intToUtf8() now map NA inputs to NA outputs. o file() has a new argument 'raw' which may help if it is used with something other than a regular file, e.g. a character device. o New function strtoi(), a wrapper for the C function strtol. o as.octmode() and as.hexmode() now allow inputs of length other than one. The format() and print() methods for "octmode" now preserve names and dimensions (as those for "hexmode" did). The format() methods for classes "octmode" and "hexmode&...
2002 Feb 04
2
ASCII characters: from decimal code to R octal?
Is there a straightforward way to convert character information from decimal representation to the octal one used by R? I'd like something like a function ascii(number,base=10), such that > ascii(91) [1] "\133" I can easily do the mapping from 91 to 133, but what is a good way to operate on 133 to deliver "\133"? Would a lookup table be a better solution? David
2010 Nov 29
1
tar R command
Hello, The documentation for the tar command leads me to think there is an internal implementation when the command can't be found in the OS. However, it doesn't seem to be the case, as I get an empty .tar file generated on a small example I made : > dir(pattern = "jpg") [1] "MA56237502_635.jpg" > file.info("MA56237502_635.jpg")
2023 Apr 21
0
[Rd] R 4.3.0 is released
...quot; for abbreviating (unrealistically large) sizes beyond 10^{27} in standard = "SI", thanks to Henrik Bengtsson's PR#18435. * as.data.frame()'s default method now also works fine with atomic objects inheriting from classes such as "roman", "octmode" and "hexmode", such fulfilling the wish of PR#18421, by Benjamin Feakins. * The as.data.frame.vector() utility now errors for wrong-length row.names. It warned for almost six years, with "Will be an error!". * sessionInfo() now also cont...
2023 Apr 21
0
[Rd] R 4.3.0 is released
...quot; for abbreviating (unrealistically large) sizes beyond 10^{27} in standard = "SI", thanks to Henrik Bengtsson's PR#18435. * as.data.frame()'s default method now also works fine with atomic objects inheriting from classes such as "roman", "octmode" and "hexmode", such fulfilling the wish of PR#18421, by Benjamin Feakins. * The as.data.frame.vector() utility now errors for wrong-length row.names. It warned for almost six years, with "Will be an error!". * sessionInfo() now also cont...