similar to: R: Function to check if a vector contains a given value?

Displaying 11 results from an estimated 11 matches similar to: "R: Function to check if a vector contains a given value?"

2009 Jun 12
0
R: Creating this vector, any suggetions?
try this > a<-c(1, 6, 8, 9) > 1*(1:10 %in% a) [1] 1 0 0 0 0 1 0 1 1 0 Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]Per conto di njhuang86 Inviato: Friday, June 12, 2009 4:45 PM A: r-help at r-project.org Oggetto: [R] Creating this vector, any suggetions? Suppose I have the first vector: c(1, 6, 8, 9) I will
2009 Jun 26
0
R: Deleting repeated rows
?unique as an example > mat<-matrix(c(1,2,3,1,1,2,1,2,3,4,7,5), ncol=3, byrow=T) > mat #rows 1 and 3 are identical [,1] [,2] [,3] [1,] 1 2 3 [2,] 1 1 2 [3,] 1 2 3 [4,] 4 7 5 > unique(mat) [,1] [,2] [,3] [1,] 1 2 3 [2,] 1 1 2 [3,] 4 7 5 Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org
2010 Aug 07
2
R: Confidence Intervals for logistic regression
a closer look to the help on predict.glm will reveal that the function accepts a 'type' argument. In you case 'type = response' will give you the results in probabilities (that it seems to be what you are looking for). There also is an example on use of the 'type' argument at the end of the page. Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org
2009 Sep 23
2
Function to check if a vector contains a given value?
Dear R'rs, is there a function that checks if a given vector contains a certain value. E.g., x<-c(1,2,3,4). How can I get a TRUE or FALSE for whether x contains a 2? -- Dimitri Liakhovitski Ninah.com Dimitri.Liakhovitski at ninah.com
2010 Aug 09
4
Pie Chart in map
Hey R'rs, So im sick of dealing with ESRI products and am looking to stream line a process i now use GIS to do using R. I have made a lot of maps using R but have not yet seen a map that puts pie charts within the map to help represent data like the attachment. http://r.789695.n4.nabble.com/file/n2318816/template1.bmp I found Tanimura et al. work "Proportional Symbol Mapping in
2013 Feb 25
0
Groups not updating on 3.5.10 (centos) or 3.6.12 (enterprise samba)
Hello everybody, we're trying to set-up Samba to share directories with Win users from some Linux servers. We've set up kerberos, gotten a ticket, joined the server to the domain, we get correct users/groups from "wbinfo" and "getent". The problem lies in "id": it does not update its user<->group mappings when they change on AD, even if
2003 Mar 04
2
Profiles and home directory - Samba PDC
I have sucessfully got a windows 2K machine to join the domain but I can not get it to run a logon script, map the drive letter to the home directory or create a roaming profile. All my smb.conf setting look correct as per the samples and How To's so I'm stuck! smb.conf is as follows: # Global parameters [global] workgroup = LINUX netbios name = LINUX1 server string = Samba Server
2011 Nov 18
0
Wine release 1.3.33
The Wine development release 1.3.33 is now available. What's new in this release (see below for details): - Support for text output in the DIB engine. - Improved support for HTTP proxies. - New version of the Gecko engine. - A number of cursor fixes. - Some fixes in bidirectional text layout. - Various bug fixes. The source is available from the following locations:
2006 May 13
10
new user
Hi!!!! I''ve tried ROR! it''s fantastic!!! wonderful!!! I WANT LEARN ALL ABOUT IT!!! Do you have some links ( if exists in italian language ), or suggest me some book i can buy?? thx very much -- /\/\ariano Di Felice Java PHP Python programmer with MySQL, PostgreSql, SQLite and Oracle support Linux Platform Developer mariano.difelice@gmail.com Tel. 0735 703735 Cell +39 339
2008 Dec 16
0
problem install modul R-base-2.5.0-2.1.x86_64.rpm on SLES9 64-bit
> good morging, > > I need to install R-2.x on my host: > > Linux, 2.6.5-7.308-smp #1 SMP Mon Dec 10 11:36:40 UTC 2007 x86_64 > x86_64 x86_64 GNU/Linux > > now I have check the packages on your document: > http://cran.r-project.org/bin/linux/suse/ReadMe.html > but I have a problem whit xorg-x11-lib, in my host I have installed > package:
2006 Jul 06
1
Bug test di Rails
salve a tutti, sentite, non riesco a capire i test automatizzati di Rails. Secondo il libro, il ciclo di vita di un test prevede che per ogni metodo ( che sarebbe in pratica un test da eseguire ) si verificano sempre 3 eventi: 1) la cancellazione di tutti i record della tabella in esame 2) il caricamento di tutti i dati di test elencati nel file di fixture della tabella ( ad esempio