search for: arni

Displaying 20 results from an estimated 82 matches for "arni".

Did you mean: arai
2003 Dec 09
1
arni.colors
Dear r-devel, I have implemented a function to create color palettes with improved contrast and logical order, compared with the built-in ones: source("arni.colors.R") # code is given below barplot(rep(1,100), col=arni.colors(100), space=0, border=0, axes=F) par(mfrow=c(2,1)) # rainbow() has too much green... barplot(rep(1,50), col=rev(rainbow(50,end=0.7)), space=0, border=0, axes=F) barplot(rep(1,50), col=arni.colors(50), space=0, b...
2020 Apr 20
1
stringsAsFactors and type.convert()
...e only user who would appreciate if as.is=TRUE becomes the default at some point. So I am happy to hear that the help page now mentions that the as.is=TRUE is planned to be the default at some point in the future. Looking forward to the 4.0.0 official release - all positive changes! All the best, Arni ________________________________ From: Martin Maechler <maechler at stat.math.ethz.ch> Sent: Monday, April 20, 2020 6:23:31 PM To: Arni Magnusson Cc: r-devel at r-project.org Subject: Re: [Rd] stringsAsFactors and type.convert() >>>>> Arni Magnusson >>>>> o...
2012 Feb 20
1
[LLVMdev] Building Test Suite Still Not Successful
...ke llvm to be installed. I did not give --with-llvmgccdir argument to configure. Because 3.0 doesn't come with llvmgcc source/binaries and I decided upon using the compatible version of dragon egg. 2. I made dragon egg, I updated the makefile of the same in the line "LLVM_CONFIG?=/home/arnie/llvm/llvm-install/bin/llvm-config" (llvm was installed inside llvm-install directory). It successfully produced the dragon egg .so file. Using this .so file I was able to compile simple c programs and manipulate them. 3. I tried to compile test-suite. I downloaded the test-suite into the...
2020 Apr 13
2
stringsAsFactors and type.convert()
...a good time to change the default to type.convert(as.is=TRUE), to align it with the new default in read.table and data.frame. I think many R >=4.0.0 users would be happy with as.is=TRUE as the default in type.convert. I'm happy to work on the patch and run tests if that is helpful. Cheers, Arni
2010 Sep 08
2
Drop single-dimensional array
...() the three-dimensional and two-dimensional objects, but drop() does nothing to the one-dimensional array. Instead, it takes an unintuitive combination of methods to convert a single-dimensional to a vector, while retaining its names. Or I may well be missing something obvious. Best regards, Arni On Wed, 8 Sep 2010, Simon Urbanek wrote: > wrong address - did you mean R-devel? > Simon > > > > On Sep 6, 2010, at 8:35 AM, Arni Magnusson wrote: > >> Bug or not, I was surprised by this behavior: >> >> x <- tapply(chickwts$weight, chickwts$feed, medi...
2024 May 15
1
rsync whole file transfers extremely slow over SSH - but only in a particular virtual guest
Hi all, I am trying to get to the bottom of a strange rsync performance problem. On a specific guest OS, and only on this guest OS, rsync is giving modem-like transfer speeds. This happens on delta transfers, and whole file transfers. [root at arnie ~]# rsync -avz --progress --sparse arnie.example.com:/home/backup/example/cuttysark.example.com/var-lib-libvirt-images-snapshot/ /home/backup/example/cuttysark.example.com/var-lib-libvirt-images-snapshot/ receiving incremental file list ./ .timestamp 0 100% 0.00kB/s 0:00:00 (xf...
2012 May 20
1
[LLVMdev] Error While Inserting New Instruction to LLVM IR
...f LLVM, (e.g no Lexer.l now, we have LLLexer.cpp. Again in the tutorial, files like LLVMBitCodes.h, include/llvm-c/core.h that need to be modified are not mentioned) But I am getting the error while building LLVM. The SelectionDagBuilder.cpp file is giving the error. *In file included from /home/arnie/llvm-svn/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:946:0: * */home/arnie/llvm-svn/llvm/include/llvm/Instruction.def: In member function ‘void llvm::SelectionDAGBuilder::visit(unsigned int, const llvm::User&)’:* */home/arnie/llvm-svn/llvm/include/llvm/Instruction.def:104:1: error: ‘...
1999 Nov 26
4
Programming ....
...t on security,. I would really appreciate it if someone sent me some pointers to writing TCP daemons that are hacker-proof( i know there is nothing like that...but I do not want to be making mistakes in coding that are well known.. ;) The daemon runs as root....so that is why I am woried.... Thx, Arni
2012 Jul 05
3
[LLVMdev] "symbol lookup error" while running a Simple Loop Pass
...D = 0; static RegisterPass<LoopInst> X("loop-inst", "loop instruction Pass"); I put it under llvm-src/lib/Transforms directory and ran a "make" from there to create the .so file. But when I run opt with the library, I get the following error - opt -load=/home/arnie/llvm-development/llvm/Debug+Asserts/lib/LoopInst.so -loops -loop-inst a.s opt: symbol lookup error: /home/arnie/llvm-development/llvm/Debug+Asserts/lib/LoopInst.so: undefined symbol: _ZNK4llvm8LoopBaseINS_10BasicBlockENS_4LoopEE11block_beginEv Can anyone tell me what I am doing wrong? Also what...
2011 May 26
1
Statistical mode
...;stats' package. Currently, it can be quite cumbersome to calculate the mode of a distribution in R, both for experts and beginners. The lack of a function to do this is felt, both when teaching introductory R courses, and when using sapply() or the like. Looking forward to your feedback, Arni -------------- next part -------------- statmode <- function(x, all=FALSE, ...) { if(is.list(x)) { output <- sapply(x, statmode, all=all, ...) } else { freq <- table(x, ...) if(all) output <- names(freq)[freq==max(freq)] else output <- names(freq...
2004 Oct 05
4
U32 Port Range
Hi all... How do i set U32 to filter a port range, instead of a single port? In normal use: source port 80 we use: "... match ip sport 80 0xffff ..." - I know that is something about the 0xffff parameter.... I need to filter ports 1 ~ 1024 to a higher priority class... i tried with IPTABLES MARK and TC FW, but it''s not working.... (...) # iptables -t mangle -A PREROUTING -p
2020 Apr 20
0
stringsAsFactors and type.convert()
>>>>> Arni Magnusson >>>>> on Mon, 13 Apr 2020 22:20:19 +0000 writes: > If read.table() is defaulting to "character" instead of "factor" data type, shouldn't type.convert() also default to "character" in R 4.0.0? > This would seem like a goo...
2003 Sep 18
1
Reverse axis in xyplot()
...the trellis object elements, but with no luck. I have also tried the xyplot(-y~x) workaround, but I don't know how to display the customized labels. Finally, I'm aware of the y<-ordered(y,rev(y)) workaround, but a solution for the continuous case would be preferred. Thanks in advance, Arni
2003 Feb 21
1
POSIX problem in New Zealand (PR#2570)
Full_Name: Arni Magnusson Version: 1.6.2 OS: Windows XP Submission from: (NULL) (210.48.49.68) Hi there. I'm experiencing unexpected behaviour from as.POSIXct: > as.POSIXct("1969-12-24") [1] "1969-12-23 23:00:00 New Zealand Standard Time" > as.POSIXlt("1969-12-24") [1] &q...
2012 Sep 05
2
[LLVMdev] llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool) deprecated?
...Array::get(llvm::LLVMContext&, llvm::StringRef, bool) function but seems it has been deprecated. ProfileDependence.cpp:68:73: error: no matching function for call to ‘llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool)’ ProfileDependence.cpp:68:73: note: candidate is: /home/arnie/llvm-clang/llvm/include/llvm/Constants.h:354:20: note: static llvm::Constant* llvm::ConstantArray::get(llvm::ArrayType*, llvm::ArrayRef<llvm::Constant*>) Could anyone tell me how to give a value (lets say "hello world") to the Array Constant using currently available get method?...
2012 Jul 05
0
[LLVMdev] "symbol lookup error" while running a Simple Loop Pass
...D = 0; static RegisterPass<LoopInst> X("loop-inst", "loop instruction Pass"); I put it under llvm-src/lib/Transforms directory and ran a "make" from there to create the .so file. But when I run opt with the library, I get the following error - opt -load=/home/arnie/llvm-development/llvm/Debug+Asserts/lib/LoopInst.so -loops -loop-inst a.s opt: symbol lookup error: /home/arnie/llvm-development/llvm/Debug+Asserts/lib/LoopInst.so: undefined symbol: _ZNK4llvm8LoopBaseINS_10BasicBlockENS_4LoopEE11block_beginEv Can anyone tell me what I am doing wrong? Also what...
2014 Apr 15
1
ASCIIfy() - a proposal for package:tools
Hi all, I would like to propose the attached function ASCIIfy() to be added to the 'tools' package. Non-ASCII characters in character vectors can be problematic for R packages, but sometimes they cannot be avoided. To make packages portable and build without 'R CMD check' warnings, my solution has been to convert problematic characters in functions and datasets to escaped ASCII, so plot(1,main="S?o Paulo") becomes plot(1,main="S\u00e3o Paulo"). The showNonASCII() function in package:tools is helpful to identify R source files where characters shoul...
2010 Feb 11
1
Rounding multinomial proportions
...it as a vector function during the initial discussion. I'm curious to hear your impressions and ideas. In the worst case, this is a not-so-great solution to a marginal problem. In the best case, this might be worth a short note in the Journal of Statistical Software. Thanks for your time, Arni P.S. In case the mailing list doesn't handle attachments, I've placed the same files on http://www.hafro.is/~arnima/ for your convenience. -------------- next part -------------- \name{round_multinom} \alias{round_multinom} \encoding{UTF-8} \title{ Round Multinomial Proportions (or Allo...
2012 Jul 05
1
[LLVMdev] "symbol lookup error" while running a Simple Loop Pass
...opInst> X("loop-inst", "loop instruction Pass"); > > > I put it under llvm-src/lib/Transforms directory and ran a "make" from there > to create the .so file. But when I run opt with the library, I get the > following error - > > opt -load=/home/arnie/llvm-development/llvm/Debug+Asserts/lib/LoopInst.so > -loops -loop-inst a.s > > opt: symbol lookup error: > /home/arnie/llvm-development/llvm/Debug+Asserts/lib/LoopInst.so: undefined > symbol: _ZNK4llvm8LoopBaseINS_10BasicBlockENS_4LoopEE11block_beginEv > > Can anyone tell me...
2012 Feb 19
2
[LLVMdev] Problem While Running Test Suite
...be installed. I did not give --with-llvmgccdir and the --enable-optimized argument to configure. Because 3.0 doesn't come with llvmgcc source/binaries and I decided upon using the compatible version of dragon egg. While making dragon egg, I updated the makefile in the line LLVM_CONFIG?=/home/arnie/llvm/llvm-install/bin/llvm-config (llvm was installed inside llvm-install directory). It successfully produced the dragon egg .so file. Using this .so file I was able to compile simple c programs and manipulate them. The problem came when I am trying to compile test-suite. I downloaded the tes...