Displaying 20 results from an estimated 4000 matches similar to: "is.na(v)<-b (was: Re: Beginner's query - segmentation fault)"
2003 Oct 08
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
Concerning x[i] <- NA vs is.na(x[i]) <- TRUE
Brian Ripley wrote:
I don't think it can ever `go wrong', but it can do things other
than the user intends.
If the user writes x[i] <- NA, the user has clearly indicated his intention
that the i element(s) of x should become NA. There isn't any clearer way to
say that. The only way it could ever do something "other
2003 Oct 08
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
Note this behaviour:
> a<-"a"
> a<-NA
> mode(a)
[1] "logical"
> a<-"a"
> is.na(a) <- T
> mode(a)
[1] "character"
However after either way of assigning NA to a, is.na(a) is true,
and it prints as NA, so I can't see it's ever likely to matter. [Why
do I say these things? Expect usual flood of examples where it
does
2003 Oct 08
0
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
Well, that's a convincing argument, but maybe
it's the name that's worrying some of us. Maybe it would be
more intuitive if called set.na (sorry, I mean setNA).
Also "is.na<-" cannot be used to create a new variable of
NAs, so is not a universal method, which is a shame for its
advocates.
I note also that for a vector you can assign a new NA using
either TRUE or
2003 Oct 09
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
> -----Original Message-----
> From: Richard A. O'Keefe [mailto:ok at cs.otago.ac.nz]
<snip>
> The very existence of an "is.na<-" which accepts a logical
> vector containing FALSE as well as TRUE ...
And don't forget this is not the only usage of is.na<-. In fact it is
designed to take any valid indexing value. For example:
> a<-1:10
>
2003 Oct 15
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
I think the thread ended up with several people (not only me)
feeling certain they didn't like `is.na<-` but with the
developers defending it and me not really understanding
why.
Uwe Ligges was going to come up with an example of
`<- NA` going wrong (sorry Brian R, I mean behaving
unexpectedly), but never did, and I think the problem
has been fixed. It was apparently a problem with
2006 May 26
2
Plugin Question
I got some advice from Rick last night and started coding this handler
to allow for time-based secure downloading similar to mod_secdownload
that lighttpd offers. I got most of the code in the handler worked out
and packaged into a gem but am still having the following problems:
1) I have a configuration script as follows
require ''mongrel''
config = Mongrel::Configurator.new
2010 Apr 12
1
R CMD check tells me 'no visible binding for global variable ', what does it mean?
When I run R CMD check on a package I have recently started work on I
get the following:
* checking R code for possible problems ... NOTE
addlinear: no visible binding for global variable 'x'
I appreciate that this is only a NOTE and so I assume is R's
equivalent of 'This is perfectly legal but I wonder whether it is
really what you intended' but I would like to understand
2019 Mar 04
2
Where's the optimiser gone (part 11): use the proper instruction for sign extension
Compile with -O3 -m32 (see <https://godbolt.org/z/yCpBpM>):
long lsign(long x)
{
return (x > 0) - (x < 0);
}
long long llsign(long long x)
{
return (x > 0) - (x < 0);
}
While the code generated for the "long" version of this function is quite
OK, the code for the "long long" version misses an obvious optimisation:
lsign: # @lsign
mov
2008 Mar 17
2
Pre-pending certain digits (like 9) to an outbound call number
Hey all,
Working slowly on getting the myriad number of parts to my fax system plan together, and one of the pieces I want to nail is how to go about, for the outbound context (fax-out) pre-pending a digit onto a number? I.e., for all my testing right now, I've been dialing '91XXXXXXXXXX', as the asterisk server doing faxing junctions into my old Rolm CBX switch, and so I need the
2012 Jan 16
4
conntrack entries established before nat
Typically (or at least somewhat occasionally) after a reboot of my
shorewall[-lite] machine I find that I end up with conntrack table
entries for unNATted connections such as:
# conntrack -L -p udp --dport 5060 -d 99.232.11.14
udp 17 59 src=10.75.22.8 dst=99.232.11.14 sport=5060 dport=5060 packets=5472 bytes=3031488 [UNREPLIED] src=99.232.11.14 dst=10.75.22.8 sport=5060 dport=5060 packets=0
2003 Oct 07
4
Beginner's query - segmentation fault
I am dealing with a huge matrix in R (20 columns, 54000 rows) and have
lots of missing values within the dataset which are currently displayed as
the value "-999.00" I am trying to create a new matrix (or change the
existing one) to display these values as "NA" so that I can then perform
the necessary analysis on the columns within the matrix.
The matrix name is temp and the
2005 Nov 22
1
$B%;%l%V$N7hDjHG!*(B?$BVq%g%;(B2d$Bw?%h(B
$B!g!g!g!g!y!g!g!g!g!g!y!g!g!g!g!g!g!g!g!g!y!g!g!g!g!g!y!g!g!g!g!g(B
$B!c(BNO.I don't veceive your mail$B!d"M!!(Becchi_daisuki69@yahoo.com.au
$B!c:#8e!"<u?.$r5qH]$9$k>l9g$O!d"M(Bsweets85433@yahoo.com.au
$B!g!g!g!g!y!g!g!g!g!g!y!g!g!g!g!g!g!g!g!g!y!g!g!g!g!g!y!g!g!g!g!g(B
2010 Jul 26
1
Outlier detection in bimodal distribution
Hi,
I was looking for a package that would help with outlier detection for bimodal
distributions. I have tried 'outliers' and 'extremevalues' packages, but am not
sure if they are ok for bimodal distribution.
Any help would be highly appreciated!
thanks,
[[alternative HTML version deleted]]
2013 Feb 06
12
Certificate nightmares
I think I really hosed my certificates somehow this morning trying to get
PuppetDB and Puppet talking again -- here''s where I stand.
My Puppet master and PuppetDB are again talking, or at least, aren''t
complaining about communication.
From my puppet master, I can run "puppet agent -t", and it runs just fine.
From any other node on which puppet had been running, I
2000 Aug 24
0
Beginner with beginner's problem
Dear all,
I am including a part of the text from smb.log. I have followed the
instructions in "Using Samba" but to no avail. I have checked through the
troubleshooting chapter which directed me to the logs initially, but has
nothing specific to say about bad news contained therein. The output of the
log makes it clear that the problem is related to the smp_passwd file but I
am not
2013 Jan 08
0
New book: Beginner's Guide to GAM with R
Readers of this mailing list may be interested to know that the book "A
Beginner's Guide to Generalized Additive Models with R' is now available
from:
http://www.highstat.com/BGGAM.htm
Upcoming books in 2013:
A Beginner's Guide to GLM with R and JAGS.
AF Zuur, J Hilbe, EN Ieno
A Beginner's Guide to GAMM with R.
AF Zuur, AA Saveliev, EN Ieno
Kind regards,
Alain Zuur
2007 Oct 22
0
beginner's tutorial, books, etc re: time-series analysis, ARMA/ARIMA models...
Thomas,
may I also suggest, from the Documentation>Contributed section of CRAN,
"Econometrics in R" by Grant Farnsworth
http://cran.at.r-project.org/doc/contrib/Farnsworth-EconometricsInR.pdf
(see the chapter on Time series) and, in case you can read Italian,
"Analisi delle serie storiche con R" by Vito Ricci
http://cran.at.r-project.org/doc/contrib/Ricci-ts-italian.pdf
2008 Nov 30
1
[LLVMdev] Beginner's question concerning JIT
Hi,
I have been looking at the LLVM JIT system as a basis for a project I am working on and had a few beginner's questions which I was hoping someone might be able to answer and which I haven't yet been able to figure out reading the source code. If anyone could provide some help I would appreciate it.
1) How does one go about calling a precompiled function external to the JIT from a JIT
2007 Feb 05
1
novice/beginner's reading list for non-programmers learning R?
Can someone please recommend a novice/beginner's reading list for non-programmers learning R?
---------------------------------
8:00? 8:25? 8:40? Find a flick in no time
[[alternative HTML version deleted]]
2009 Dec 27
1
very beginner's question
Begging the list's indulgence, an extremely dumb beginner's question. I've got 24 months' worth of numbers - ranging from 2 events per month, to 66 events per month. I want to take a stab at making a reasonable guess as to what the next year's data would be, approximately, i.e., based on the 24 months I've got, I want to be able to tell someone: "the 12 months after