similar to: Using grep

Displaying 20 results from an estimated 10000 matches similar to: "Using grep"

2018 Jul 10
4
Construcción de archivo de texto
Hola a todos, A partir de los siguientes datos: d <- list(`1` = structure(list(ped = c(1L, 1L, 1L, 1L, 1L, 1L, 1L), id = 1:7, father = c(2L, 0L, 0L, 2L, 2L, 2L, 2L), mother = c(3L, 0L, 0L, 3L, 3L, 3L, 3L), sex = c(2L, 1L, 2L, 2L, 2L, 1L, 2L), affected = c(1L, 2L, 1L, 1L, 2L, 2L, 2L)), row.names = c("1", "2", "3", "4", "5",
2013 Apr 08
2
cbind for list of zoo objects
Can someone explain why this happens when one of the list elements is named 'all'? > zz <- list( zoo(1:10,1:10), zoo(101:110,1:10), zoo(201:210,1:10) ) > names(zz)<-c('test','bar','foo') > do.call(cbind,zz) test bar foo 1 1 101 201 2 2 102 202 3 3 103 203 4 4 104 204 5 5 105 205 6 6 106 206 7 7 107 207 8 8 108 208 9
2007 Sep 12
1
reshape help
Hi, I'm trying to use reshape but I cannot quite understand how it works. Could somebody help me on this? Example, my data is something like: mydat <- data.frame(tree= 1:10, serra=rep(1:2, c(5,5)), bt01= 101:110, bt02= 201:210, bt03= 301:310, mm01= 9101:9110, mm02= 9201:9210, mm03= 9301:9310) > mydat tree serra bt01 bt02 bt03 mm01 mm02 mm03 1 1 1 101 201 301 9101 9201
2013 Nov 26
7
[PATCH RESEND 0/1] libxl: introduce an option for disabling the non-O_DIRECT
I think I posted this patch before, but it looks like it was in December 2012 (!). 1/1 libxl: introduce an option for disabling the non-O_DIRECT workaround Ideally it would go into 4.4, at least. Provided the corresponding qemu part has gone into qemu-xen, which I think it has. Can anyone confirm ?
2003 Mar 09
3
not able to add machines on FreeBSD 4.7
I'm setting up a new install of samba 2.2.7a on FreeBSD 4.7 Here's a little run-through of what I have done. I added a machine account in /etc/group as follows: machines:*:201 I have added all of my machine accounts in to /etc/passwd as follows: sclepy$:*:201:201::0:0:Machine account for Sclepy:/dev/null:false lexus$:*:202:201::0:0:Machine
2011 Apr 15
2
str() on a data frame with 600 variables
Hello.. How do I get str() to show all variables in a data frame? It seems to be "list output truncated" at about 99 variables, the data frame has over 600 but i can't seem to figure out how to show all variables, we see list.len() but again can't seem to figure this out - help will be appreciated. R> str(raw) 'data.frame': 1201 obs. of 626 variables: . . $
2015 Aug 01
2
[LLVMdev] Strange code generation issue
Hi, I am using the LLVM release_37 branch and have a strange issue. Please see the two IR outputs I have saved below: https://github.com/dibyendumajumdar/ravi/tree/master/ravi-tests/comp_issue The original.ll is the code I am generating. The aftercompiling.ll is the output from LLVM with opt level 0. The issue is that LLVM is deciding to remove the blocks with labels updatei and updatei.64
2007 Jan 16
2
Polycom IP601 - some hints working, not others?
Are all of the sip phones in the same context? > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Robert Jenkins > Sent: Tuesday, January 16, 2007 1:44 PM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: [asterisk-users] Polycom IP601 - some hints working,
2008 Apr 09
3
permutation/randomization
Hello, I have what I suspect might be an easy problem but I am new to R and stumped. I have a data set that looks something like this b<-c(2,3,4,5,6,7,8,9) x<-c(2,3,4,5,6,7,8,9) y<-c(9,8,7,6,5,4,3,2) z<-c(9,8,7,6,1,2,3,4) data<-cbind(x,y,z) row.names(data)<-c('a','b','c','d','e','f','g','h') which gives: x y z
2007 Mar 28
5
Large matrix into a vector
Hi, I have a matrix HR(9x27). I would like to make a single vector with elements: t(HR[,1]) followed by t(HR[,2]) and then t(HR[,3] ... etc. Is there any neat way of converting this matrix into a vector rather doing something like c(t(HR[,1]), t(HR[,2]), t(HR[,3]) ..)? Thanks in Advance. Kind regards, Ezhil ____________________________________________________________________________________
2010 Jul 29
1
R Equivalent of SAS Datastep Line-Hold (@@) Specifier?
Hello Everyone,   Below is some SAS code that uses a "line hold specifier" to read multiple observations from each of several input lines of data. There are 3 patients per line in the in-stream data.   Is there a way in R to read this kind of data? I've looked in my books and online but haven't found anything   Thanks,   Paul     DATA EXAMP.TRIAL; INPUT TRT $ CENTER PAT SEX $ AGE
2007 Jan 16
2
force ulaw passthrough if call from modem extension?
I have Teliax trunk set to ulaw and g729 and I have a modem/fax extension from a sipura forced to ulaw. When the call goes out through Teliax IAX trunk, asterisk transcodes to g729. Is there a way to tell asterisk not to transcode calls from/to a specific extension? I'm running asterisk 1.2.4 and that extension is for my home alarm/dish network and fax calls. Thanks -------------- next part
2007 Oct 03
1
Reimplement order somehow
Hello, I have a script in R language that makes sorting using the order() method of R language. What I need is to reimplement this method in any other language (PHP, Perl, Python, Java maybe). First I tried to reimplement it in php, here is some numbers that i need to sort: 1,2,3,4,5,6,7,8,9,10,300,231,11,12,0,1 R language: n = c(1,2,3,4,5,6,7,8,9,10,300,231,11,12,0,1) n [1] 1 2 3 4 5
2010 Nov 05
2
segmentation fault in blazer_status().
Hi All, i'm running blazer_usb on my home orvaldi ups and i'm observing in dmesg one, two or three segafults of blazer_usb per day and notifications about broken/re-established communication like this: blazer_usb[2985]: Communications with UPS lost: status read failed! blazer_usb[2985]: Communications with UPS re-established today i've started ups service again with attached (c)gdb
2004 Mar 24
2
Where does the "prompt come from"
Hi All ! I have a little question about the shell that is run when establishing a connection towards an SSH server. The client(OpenSSH) displays a prompt(as usual) when a command is executed, but my question is, where does the prompt come from. Is it sent by the remote shell or is it handled in the client ?? The reason I ask is that we have developed a product that redirects stdin/stdout/stderr
2009 Aug 27
5
Transform data for repeated measures
I have a dataset that I'm trying to rearrange for a repeated measures analysis: It looks like: patient basefev1 fev11h fev12h fev13h fev14h fev15h fev16h fev17h fev18h drug 201 2.46 2.68 2.76 2.50 2.30 2.14 2.40 2.33 2.20 a 202 3.50 3.95 3.65 2.93 2.53 3.04 3.37 3.14 2.62 a 203 1.96 2.28 2.34 2.29 2.43 2.06 2.18 2.28 2.29 a
2009 Nov 25
3
Random data
Hi, how can I produce random data which lies around a straight line with angle 45 degree. Similar to this image: http://zoonek2.free.fr/UNIX/48_R/g134.png Cheers -- View this message in context: http://old.nabble.com/Random-data-tp26513822p26513822.html Sent from the R help mailing list archive at Nabble.com.
2008 Nov 09
2
Delete rows from matrix having at least one zero value
Hi, I have a further question about matrix manipulation. Imagine the following two matrices: > test [,1] [,2] [,3] [,4] [1,] 1 0 6 4 [2,] 2 5 7 5 [3,] 3 6 8 6 [4,] 4 0 0 0 > matrix(is.element(test,0), ncol=4) [,1] [,2] [,3] [,4] [1,] FALSE TRUE FALSE FALSE [2,] FALSE FALSE FALSE FALSE [3,] FALSE FALSE FALSE FALSE [4,] FALSE
2011 Oct 16
3
Which function to use: grep, replace, substr etc.?
Hello, I have a simple question but I don't know which method is best to use for my problem. I have the following strings: str1 <- "My_name_is_peter" str2 <- "what_is_your_surname_peter" I would like to apply predefined abbreviations for peter=p and name=n to both strings so that the new strings look like the followings: str1: "My_n_is_p" str2:
2009 Mar 11
2
Question about datatypes/plotting issue
Hi, I am trying to plot the Case-Shiller index found at: http://www2.standardandpoors.com/spf/pdf/index/CSHomePrice_History_022445.xls The way I'm importing it into R is as follows: library(gdata) W <- read.xls("http://www2.standardandpoors.com/spf/pdf/index/CSHomePrice_History_022445.xls ", header=TRUE) attach(W) To give you and idea of what the data looks like: >