Displaying 20 results from an estimated 7000 matches similar to: "binary numbers"
2003 Oct 23
1
Re: ichar() function in R : 1st implementation, RFC
(RFC := Request For Comments)
>>>>> "Tim" == Tim Keighley <Tim.Keighley@csiro.au>
>>>>> on Thu, 23 Oct 2003 11:45:22 +1000 writes:
Tim> Hi Martin,
Tim> In October 2000 you wrote to r-help:
>>> which reminds me that I've had a desire for something like
>>> the old S function [from the blue book, and
2004 Mar 04
2
adding trend to an arima model
Hi,
Does anyone know a method for adding a linear/polynominal trend to a
simulated arima model using the arima.sim function?
Any help will be greatly appreciated.
Cheers,
Sam.
2004 Dec 08
2
memory problem
Hi,
I am trying to run a very computationally expensive procedure in
R-2.0.0. and the process always gets killed after approx 8 minutes. This
procedure calls some of my own C++ code - in case it was this code
causing a memory leak I unload and then reload the .so file every time,
however I still get the same problem. The procedure is run 16000 times
and always calls the lm() function. My
2004 Mar 21
4
writing text on graphics' window
Hi,
Does anyone know of a method for writing text to the graphics window,
where there is *no* plot? Basically, I have developed a 'significance
test' and I would like the output on the graphics window to say
something about the input parameters and the stats of the significance test.
Any help would be appreciated.
Cheers,
Sam.
2005 Jan 07
3
R packages on Mac
Hi,
I am considering whether or not to buy an apple mac. I have noticed on
one of the R FAQs for Mac OS X that you cannot install packages from
other OS's if C++ code is contained. My question is: Is it possible to
build the package sources containing C++ code on the Mac and then
install them?
Thanks in advance,
Sam.
2006 Mar 26
1
addition using binary
Dear R users
I looked around for a package which can help me with the task of binary arithmetic, the closest I found is sfsmisc with digitsBase function, which may help a little in this task, but still wondering how to get this problem solved.
example:
given the addition operation of 2 real numbers to equal as below
99.30
2.11
===
102.09 <--- desired output as explained below
2007 Feb 15
3
count sequence of integers
Hi,
I would like to be able to count a sequence of numbers. For example, given a
vector of the following integers
(1,1,1,2,2,2,2,3,3,3,3,3,3,1,1,1,1, 3,3)
the function would return
(3, 4, 6, 4,2)
Does anyone have any cool ideas to solve this?
Any help appreciated.
Regards,
Sam.
[[alternative HTML version deleted]]
2006 May 12
4
bitwise addition
Hello all again,
I want to do bitwise addition in R. I am trying to generate a matrix
0000
0001
0010
....
....
1111
I know the other ways of generating this matrix but I need to look at bitwise
addition.
Any suggestions???
thanks a lot
Nameeta
-------------------------------------------------
This email is intended only for the use of the individual or...{{dropped}}
2004 Jun 01
4
S/R programming books
Hi,
I have been using R for a few months now and I am confident that the
language has everything I will need to complete my PhD. I can create
functions, script files and packages, but I would like to write my
programs more efficiently (maybe using OO). Can anyone recommend a good
book on the "art" of good R programming?
Kind Regards,
Sam.
2004 Sep 28
1
package error message
Hi,
I am trying to make my own package in Windows XP with R 1.9.1. using
Rcmd build/ Rcmd.
The initial Rcmd build compiles ok with no error messages. However, when
I run Rcmd check it runs ok up until
* checking for file 'GammaTest/DESCRIPTION' ... OK
* checking if this is a source package ... OK
* checking whether package 'GammaTest' can be installed ... ERROR
Installation
2008 Dec 09
4
extract the digits of a number
Hello,
Anyone knows how can I do this in a cleaner way?
mynumber = 1001
as.numeric(unlist(strsplit(as.character(mynumber),"")))
[1] 1 0 0 1
Thanks in advance,
Gustavo
2008 Jan 14
2
knnFinder package
Dear all,
I have found some serious bugs in the knnFinder package (which supports
data structures and algorithms for both exact and approximate nearest
neighbor searching in arbitrarily high dimensions) that may trigger
segmentation faults.
I have fixed them but I had troubles to contact its maintainer Samuel E.
Kemp (previously with the University of Glamorgan, UK). Do someone know
where I
2004 Oct 01
2
Rnewsletter article example
Hi,
I am trying to write an article for the Rnewsletter, but keep getting
errors. I have googled around for some decent examples that contain
figures, maths, etc but with no joy. Would any be so kind as to send me
an example article in latex code?
Cheers,
Sam.
2004 Mar 01
2
dynamic linking
Hi,
I want to set up a dynamic link between a library e.g. myLibrary.a and a
C++ file myProgram.cc to use in R. Is this possible? If so how does one
go about doing it?
Any help will be greatly appreciated.
Cheers,
Sam.
2004 Jan 14
1
univariant time series
Hi,
I am trying to use the stl function in the ts package. It requires that
the data is a univariant time series at the moment my data is in a
vector. I have coerced it to a time series using....
crimets <- ts(crimeData)
However, this does not work.
Does anyone have any suggestions?
Cheers,
Sam.
p.s. I am fairly new to R so apologies if this is a stupid posting.
2007 Oct 09
2
window (x,y) co-ordinates of datapoints
Hi,
In the getGraphicsEvent function the (x,y) co-ordinates returned from the
mouse move are in relation to where the mouse is located within the device
window (i.e. the lower left corner of the window is '(0,0)', the upper
right is '(1,1)'). Is there a way of returning the (x,y) co-ordinates of
data points plotted where instead of x and y being the actual data points
they are
2003 Sep 14
2
Convert decimal to binary data
Hi,
I would like to convert a decimal into a binary number, for instance :
2->(1,0)
Any one knows how to do that ?
Thanks a lot
paul
---
[[alternative HTML version deleted]]
2004 Oct 18
1
nnet learning
Hi,
I am trying to make a neural network learning a "noisy sine wave".
Suppose I generate my data like so..
x <- seq(-2*pi, 2*pi, length=500)
y <- sin(x) + rnorm(500, sd=sqrt(0.075))
I then train the neural net on the first 400 points using
c <- nnet(as.matrix(x[1:400]),as.matrix(y[1:400]), size=3, maxit=10000,
abstol=0.075, decay=0.007)
Inspecting the fit of the training
2011 Dec 01
2
How to speed up int2bin conversion?
Dear R-help members,
I'm processing a large amount of MODIS data where quality assessment
information is stored as an integer value for each pixel. I have to
converted this number to an 8 digit binary flag to get access to the
stored quality code (e.g. in2bin(165,8) = 1 0 1 0 0 1 0 1).
Unfortunately, I did not manage to find a package providing a fast
function to do so. I need to run
2005 Jun 14
1
RGui crashes on wle call
Hi all --
I'm seeing the following commands reliably produce a crash in RGui,
version 2.0.1, for both my home and office machine:
> rm(list = ls(all = TRUE));
> load("dataset.R");
> library("wle");
> data.wle = wle.lm(abortion ~ year * lib.con + age + gender +
+ urbanism + census + income + church.att + children + educ +
+ religion.imp, data =