similar to: help with gsub and grep functions

Displaying 20 results from an estimated 1000 matches similar to: "help with gsub and grep functions"

2003 Oct 17
1
heatmap function
Hi all, By default, the heatmap function gives an image with a dendrogram added to the left side and to the top. Is it possible to only add the dendrogram to the left side and let the order of the columns unchanged ? I tried heatmap(mat, col=rbg,Rowv=res.hclust$order,Colv=1:dim(mat)[[2]]). In this case, the order of the columns are unchanged but a dendrogram is added to the top. How can I
2004 Mar 09
2
R and tmp directroy
Hi all, When I start R, it gives mkdir: Ne peut cr?er le r?pertoire `/home/mart/tmp/Rtmp11729'.: No such file or directory (I specify that my home path is /home/mart and the R version is 1.7.1) How I have to configure R to use the directory /tmp instead of /home/mart/tmp ? What is utility of this directory tmp for R? Thanks, Olivier
2003 Aug 12
1
classification with quantitative variables
Hi all, I want to conduct a cluster analysis with quantitative variables. More precisely, it concerns binary and non-ordered categorical variables. For such data, various similarity measures have been proposed, such as the Jaccard index or the simple matching index. So, is there a package such as mva or multiv in the case of quantitative variables? Could you indicate me reviews, papers or
2003 Aug 28
2
how to call a C program from R function
Hi all, I would like to call a C program from R function. I tried to use the .C() function without success. I need a very simple example (such as the hello program) to understand how it works. Could you give a such example? (I use the 1.7.1 Version of R with linux) Does it work in the case of a C++ program instead of a C programm? Best regards, Olivier --
2003 Sep 08
1
graphic of hierachical clustering
Hi all, I would like to save the dendrogram of a hierarchical clustering. Let reshc the result of the fucntion hclust(). To save the dendrogram, I can use the function postscript: postscript(file="hc605.ps") plot(as.dendrogram(reshc),horiz=T,ylab="",main=" ") dev.off() Using the functions plot and as.dendrogram, it is possible to obtain an horizontal tree with
2007 Feb 02
1
R syntaxe
Hi all, Suppose I have a vector x with numerical values. In y, I have a categorial variable : y<-c(1,1,..2,2,...30,30,30) x and y have the same length. I would like to compute the mean for x for the modality 1 to 30 in y. mean(x[y==1]),...,mean(x[y==30]) I do not want to use an iterative procedure such that for (i in 1:30).. Thanks for your help, Regards. Olivier. --
2017 Mar 15
1
Mail restore and single storage attachement
Bonjour, I'm finishing the upgrade of an old installation of Dovecot/postfix mail system for my lab. In the configuration i plan ( dovecot 2.2.27 ), i choose to use: - mdbox format - single storage for attachements - 2 zfs file systems, one for mdboxes, the other for attachments The last tests before production concern my hability to restore a lost mail (or mailbox) ... (lot of
2015 Mar 02
3
CentOS7 buggy freeradius
Bonjour, It seems that freeradius 3.0.1-6.el7 of centOS 7 don't work. When doing very simple authentification (PAP control of ssh login on a switch), I get a segmentation fault when the first accounting packet arrives on the server. Does anyone test succesfully this version of freeradius ? Thanks PS: no error with the compilation of the last source version of freeradius (3.0.7) --
1998 Jun 12
0
strange message in log.smb
Hello, On a Sparcserver10 (Solaris 2.5) running samba 1.9.18p7, the following message : "Can't create or use IPC area" appears in the log.smb file, from time to time. This message in the samba source code is in the file shmem_sysv.c This server is a local master and clients can connect it. Does anybody know what it means ? --
2005 Sep 27
4
regsubsets selection criterion
Hello, I am using the 'regsubsets' function (from leaps package) to get the best linear models to explain 1 variable from 1 to 5 explanatory variables (exhaustive search). Is there anyone who can tell me on which criterion is based the 'regsubsets' function ? Thank you. samuel Samuel BERTRAND Doctorant Laboratoire de Biomecanique LBM - ENSAM - CNRS UMR 8005
2008 Dec 03
3
Strplit code
Dear R-users, The strsplit function does not exist in S-plus and I would like to use it. How could I reproduce the function in Splus or access to its source code? Thank you in advance, Sebastien
2020 May 29
15
[RFC 00/12] Audio DSP VirtIO and vhost drivers
This patch set is a follow up to "Add a vhost RPMsg API" [1], it is marked as an RFC because firstly it depends on the RPMsg API series and secondly it is currently being reviewed on ALSA and SOF mailing lists, but any early comments from virtualisation developers would be highly appreciated too! Thanks Guennadi [1]
2020 May 29
15
[RFC 00/12] Audio DSP VirtIO and vhost drivers
This patch set is a follow up to "Add a vhost RPMsg API" [1], it is marked as an RFC because firstly it depends on the RPMsg API series and secondly it is currently being reviewed on ALSA and SOF mailing lists, but any early comments from virtualisation developers would be highly appreciated too! Thanks Guennadi [1]
2019 Jul 15
2
[PATCH libnbd] examples: Include an example of integrating with the glibc main loop.
** NOT WORKING ** This patch shows how to integrate libnbd and the glib main loop. Posted mainly as a point of discussion as it doesn't quite work yet. Rich.
2004 Feb 17
4
normality test
Hello, I am analysing several samples whose sizes are from 9 to 110. I would like to test their distribution with R, whether they are normal or not. I wonder which test for normality from R should I use . Thank you for help. Samuel Samuel BERTRAND Doctorant Laboratoire de Biomecanique LBM - ENSAM - CNRS UMR 8005 151, bd de l'Hopital 75013 PARIS Tel. +33 (0) 1 44 24 64 53 Fax +33 (0) 1
2008 Aug 22
1
grep, gsub and metacharacters
Hello, I have an expression that I want to substitute for something else. myvector<-c("ajkhfkiuwe","Variable(kg/min)") if I use the following code to extract "variable(kg/min)" and substitute it for "va" gsub(myvector[grep("var", myvector, ignore=T)], "va", myvector) grep identifies the element of the vector that matches my
2019 Jul 17
2
[PATCH libnbd v2] examples: Include an example of integrating with glib main loop.
This is working now, and incorporates all of the changes in Eric's review, *except* that it still doesn't retire commands (although this seems to make no obvious difference, except possibly a performance and memory impact). Rich.
2009 Mar 12
2
R grep & gsub issue - sign seems to be causing an issue...
I would like to use grep and gsub to manipulate a vector to make the names used consistent, i.e. reduce a level or two. However, here is what I found when I attempted to use grep and gsub: > tmp_test<-c("House 1 Plot Plus +100","House 2 Plot Plus +100","House 3 Plot Plus -100","House 4 Plot Plus -100","House 1 Plus +100","House 2
2011 Sep 27
2
searching several subsequences in a single string sequence
Hi all I am analyzing bird song element sequences. I would like to know how can I get how many times a given subsequence is found in single string sequence. For example: If I have this single sequence: ABCABAABABABCAB I am looking for the subsequence "ABC". Want I need to get here is that the subsequence is found twice. Any idea how can I do this? Thanks
2012 May 14
2
How to interpret an ANOVA result?
Hello all, here's a real-world example: I'm measuring a quantity (d) at five sites (site1 thru site5) on a silicon wafer. There is a clear site-dependence of the measured value. To find out if this is a measurement artifact I measured the wafer four times: twice in the normal position (posN), and twice rotated by 180 degrees (posR). My data looks like this (full, self-contained code at