similar to: is.na(v)<-b (was: Re: Beginner's query - segmentation fault)

Displaying 20 results from an estimated 10000 matches similar to: "is.na(v)<-b (was: Re: Beginner's query - segmentation fault)"

2003 Oct 07
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
I am puzzled by the advice to use is.na(x) <- TRUE instead of x <- NA. ?NA says Function `is.na<-' may provide a safer way to set missingness. It behaves differently for factors, for example. However, "MAY provide" is a bit scary, and it doesn't say WHAT the difference in behaviour is. I must say that "is.na(x) <- ..." is rather repugnant,
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 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 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 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
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
2015 Aug 27
3
please block user
On 08/27/15 13:07, John R Pierce wrote: > On 8/27/2015 10:56 AM, g wrote: >> we had a vary serious and meaningful intercourse that only someone of >> a high amount of education and intelligence would have been able to >> maintain. > > PLEASE tell me this whole post is tongue-in-cheek. > . that is one place for a tongue. ;-) look at the meaning of the word.
2009 Aug 21
1
LASSO: glmpath and cv.glmpath
Hi, perhaps you can help me to find out, how to find the best Lambda in a LASSO-model. I have a feature selection problem with 150 proteins potentially predicting Cancer or Noncancer. With a lasso model fit.glm <- glmpath(x=as.matrix(X), y=target, family="binomial") (target is 0, 1 <- Cancer non cancer, X the proteins, numerical in expression), I get following path (PICTURE
2006 Apr 13
10
Code Igniter
Hi all, I was just made aware of this: <http://www.codeigniter.com> I wonder where the inspiration comes from? Lots of very similar concepts there ;) I''ve only watched the intro movie so far, but very interesting. jt
2010 Mar 14
2
Why doesn't vec[-real.number] give an error or warning? Kids do the darndest things!
Hi all... My students were conflating grepping for a value in a vector to get the index, and then removing it with [-index], for instance like this: set.seed(17) v <- rnorm(20) s <- v[-1.18] They were trying to remove the 12th value in v, which is -1.18 or so. But the result is, as documented in ?Extract, to coerce 1.18 to the next lowest integer, and remove the 1st value of v, not the
2017 Aug 24
2
Dovecot - Postfix Calender Synchronisation
RG> Re: portable formats and their mime type RG> https://en.m.wikipedia.org/wiki/ICalendar RG> https://en.m.wikipedia.org/wiki/VCard RG> Re: dependencies RG> - db: why? just use the ical and vcard files! They are files, RG> they are in a directory, they can be used like dovecot uses eml RG> files! No need for postgresql or mysql. RG> - webmail: why? We use dovecot!!!
2024 Sep 29
1
Is there a sexy way ...?
On Sat, 28 Sep 2024 10:26:31 +0100 CALUM POLWART <polc1410 at gmail.com> wrote: > Avi > > I fear this was all a huge social experiment. > > Testing if a post titled "sexy way" would increase engagement... <SNIP> I conjecture that this conjecture was tongue-in-cheek. Be that as it were ??, let me assure everyone that such was not my intention. The usage
2024 Sep 29
1
Is there a sexy way ...?
Admit it, Rolf. Haven't you wondered if S, in a more private way, is sexier than R? OK, kidding aside, we have talked this to death. Just FYI, the conversation was stimulating for some of us and I have continued on my own and located functions I see as useful in the stringi and stringr packages to make my silly version ever less silly! LOL! -----Original Message----- From: Rolf Turner
2015 Aug 27
5
please block user
On 08/27/15 12:12, Alice Wonder wrote: > On 08/27/2015 08:58 AM, g wrote: >> On 08/27/15 09:31, m.roth at 5-cent.us wrote: >> <> >> >>> *sigh* >>> And they're probably sent by a script running on the PC of a fat, >>> 47 yr old guy living in a basement and making money this way.... >>> >> . >> i seriously doubt it.
2008 Dec 03
8
Indentation Conventions for Ruby and Cucumber
On Thu, Nov 27, 2008 at 4:28 PM, Aslak Helles?y <aslak.hellesoy at gmail.com>wrote: > When (if) this thread ends, let''s start a discussion about indentation > conventions! > Oh... let the pleasure be mine!... and why wait? _EVERYONE_ knows that the only way to indent ruby code is 2 plain spaces. Tabs are known to be the source of all evil and 4 spaces obviously wastes
2005 Dec 29
7
Laszlo on Rails kicking off
The Laszlo on Rails effort, bringing the rich web interface of OpenLaszlo (http://openlaszlo.org) to the simplicity of Rails (http://www.rubyonrails.com) will be kicking off next week. We have a list going at http://groups.google.com/group/laszlo-on-rails/ -- 88 people so far and we haven''t even begun! -- but if you really want to be close to the action, email me with your firstname,
2007 Dec 18
2
Asterisk 1.4.16 and 1.2.26 released
The Asterisk.org development team has released Asterisk versions 1.4.16 and 1.2.26. Both releases contain a fix for a security vulnerability. The 1.4.16 release also contains a number of other bug fixes made over the past few weeks. The details of the security issue have been published in a security advisory: http://downloads.digium.com/pub/security/AST-2007-027.pdf The issue affects users of
2007 Dec 18
2
Asterisk 1.4.16 and 1.2.26 released
The Asterisk.org development team has released Asterisk versions 1.4.16 and 1.2.26. Both releases contain a fix for a security vulnerability. The 1.4.16 release also contains a number of other bug fixes made over the past few weeks. The details of the security issue have been published in a security advisory: http://downloads.digium.com/pub/security/AST-2007-027.pdf The issue affects users of
2020 Jan 16
1
[CentOS-announce] Release for CentOS Linux 8 (1911)
On Jan 16, 2020, at 12:06 PM, Lamar Owen <lowen at pari.edu> wrote: > > ...or maybe even 8.1.1911 (which is part of the name of the DVD ISO file), but officially it's CentOS 8 (1911). $ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 8.1.1911 (Core) Release: 8.1.1911 Codename: Core
2011 Sep 12
3
Solve your R problems
R-help is all about solving R problems. So here ya go: http://www.portfolioprobe.com/2011/09/12/solve-your-r-problems/ -- Patrick Burns pburns at pburns.seanet.com twitter: @portfolioprobe http://www.portfolioprobe.com/blog http://www.burns-stat.com (home of 'Some hints for the R beginner' and 'The R Inferno')