search for: gg

Displaying 20 results from an estimated 518 matches for "gg".

2006 Jun 30
3
data extraction
Dear mailing list I have a data that have 20,000 rows and 20 columns. Io wonted to extract the 10th row only. Example the 10th, 20th, 30th 40th…..20000 th. can you please help me how do I do that.Than kyou. Example is below. Inpute: AG GG GG AG CC CC CC CC CT CC CT CT GG GG GG GG CC CC CC CC GG GG GG GG CC CC CC CC GG CG CG GG GG GG GG GG *CC CC CC CC* AA AG AG AA AA AA AA AA GG AG AG GG GG AG AG GG GG GG GG GG TT TT TT TT AA AG AG AA CT CC CT TT AG AA AG GG *AA AA AG AG* AA AA AA AA CC CC CC CG GG GG GG AG CT TT CT CT AT AA AT AT G...
2013 Jan 09
4
how to count "A","C","T","G" in each row in a big data.frame?
Dear All I have a data.frame like that: structure(list(name = c("Gga_rs10722041", "Gga_rs10722249", "Gga_rs10722565", "Gga_rs10723082", "Gga_rs10723993", "Gga_rs10724555", "Gga_rs10726238", "Gga_rs10726461", "Gga_rs10726774", "Gga_rs10726967", "Gga_rs10727581",...
2009 Jun 03
1
strsplit for multiple columns
Hi, I am trying to split multiple columns. One column works just fine, but I want to do it for multiple columns??? Example > a ID V2 V3 V4 V5 V6 V7 V8 V9 V10 1 PBBA0644 -- GG AA -- AA -- AA GG GG 2 PBBA1010 -- GG AA -- AA -- AA GG GG 3 0127ATPR -- GG AA -- AA -- AA GG GG 4 0128EHAB -- GG AA -- AG -- AA AG GG 5 PBBA0829 -- GG AA -- AA -- AA GG AG 6 01605BGA -- GG AA -- AA -- AA GG GG 7 01624BGA -- GG AA -- AG -- AA GG GG 8 01853BGA --...
2009 Mar 30
1
Sum of character vector
Dear list, I am trying to evaluate how many elements in a vector equal a certain value. The vectors are the columns of a data.frame, read in using read.table(): > dim(data) [1] 2600 742 > data[1:5,1:5] SNP001 SNP002 SNP003 SNP004 SNP005 1 GG AA TT TT GG 2 GG AA TC TT GG 3 GG AC CC TT GG 4 AG AA TT TT GG 5 GG AA TC TT GG > table(data[,1]) AA AG GG 251 1093 1252 but if I do > sum(data[,1]=="GG") [1] NA I have trie...
2006 May 09
1
transposing a big data file
I HAVE A VERY BIG DATA OF 67 COLMS AND 25000 ROWS AND WOULD LIKE TO TRANSPOSE IT THE R HELP WAS NOT ENOUGH INFORMATION BECOUSE I AM NOT A PROGRAMMER AND FIRST TIME R USER. SO CAN YOU GIVE SOME HINTS OF CODING, AA TT GG GG CC AA TT GG GG CC AA TT GG GG CC AA TT GG GG CC AA TT GG GG CC TO AA AA AA AA AA TT TT TT TT TT GG GG GG GG GG GG GG GG GG GG CC CC CC CC CC [[alternative HTML version deleted]]
2006 Mar 28
6
Remove [1] ... from output
...6 0.280175548279658 Any hints how to solve my task? -- Lep pozdrav / With regards, Gregor Gorjanc ---------------------------------------------------------------------- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan Groblje 3 mail: gregor.gorjanc <at> bfro.uni-lj.si SI-1230 Domzale tel: +386 (0)1 72 17 861 Slovenia, Europe fax: +386 (0)1 72 17 888 ---------------------------------------------------------------------- "One must learn by doing the thing;...
2013 Jul 02
2
Recoding variables based on reference values in data frame
...used SAS primarily) and I have a genetics data frame consisting of genotypes for each of 300+ subjects (ID1, ID2, ID3, ...) at 3000+ genetic locations (SNP1, SNP2, SNP3...). A small subset of the data is shown below: SNP_ID SNP1 SNP2 SNP3 SNP4 Maj_Allele C G C A Min_Allele T A T G ID1 CC GG CT AA ID2 CC GG CC AA ID3 CC GG nc AA ID4 _ _ _ _ ID5 CC GG CC AA ID6 CC GG CC AA ID7 CC GG CT AA ID8 _ _ _ _ ID9 CT GG CC AG ID10 CC GG CC AA ID11 CC GG CT AA ID12 _...
2009 Apr 01
2
Assignment to string
...[1] FALSE Is this a documentation error or an implementation error? The coercion is not happening at parse time: class(quote("foo"<-3)[[2]]) [1] "character" In fact, bizarrely, not only does it coerce to a name, it actually *modifies* the parse tree: > gg <- quote("hij" <- 4) > gg "hij" <- 4 > eval(gg) > gg hij <- 4 *** The cases below only come up with expression trees generated programmatically as far as I know, so are much more marginal cases. *** The <- operator even allows the le...
2007 Sep 04
2
Confusion using "functions to access the function call stack" example section
I was going through the example below which is taken from the example section in the R documentation for accessing the function call stack. I am confused and I have 3 questions that I was hoping someone could answer. 1) why is y equal to zero even though the call was done with gg(3) 2) what does parents are 0,1,2,0,4,5,6,7 mean ? I understand what a parent frame is but how do the #'s relate to this particular example ? Why is the current frame # 8 ? 3) it says that sys.function(2) should be gg but I would think that sys.function(1) would be gg since it's one up fr...
2009 Aug 25
1
Filling in empty arrays/lists from using "paste" function
...t according to distinct "id") from objects produced from arbitrary data set below. a <- data.frame(id=rep(c("idA1","idA2","idA3","idA4","idA5"),2),pro=c("bb","uu","ee","tt","uu","gg","tt","bb","gg","ee"),sal=rpois(10,2)) id pro sal 1 idA1 bb 2 2 idA2 uu 0 3 idA3 ee 3 4 idA4 tt 2 5 idA5 uu 4 6 idA1 gg 3 7 idA2 tt 0 8 idA3 bb 1 9 idA4 gg 0 10 idA5 ee 5 My desired outputs (5 arrays/lists...
2010 Mar 23
2
Creating pdfs using qplot in qqplot2
I am trying to create plots within a for loop and output them to a pdf. Here is a working example using plot: gg <- data.frame(datadate=1:4, spread=5:8) pdf() for (i in 1:3) { plot(gg$datadate, gg$spread, main=i) } dev.off() I am trying to learn more about ggplot2 so I try a slight modification and it doesn't work. Anyone know how to do this using...
2011 Sep 28
1
Wilcox test and data collection
...ion of data from the results of a test. I need to perform a comparative test over groups of data , recall the value of the pvalue and create a table. My problem is in the way to replicate the analysis over and over again over subsets of data according to a condition. I have this database, called y: gg t1 t2 d 40 1 1 2 50 2 2 1 45 1 3 1 49 2 1 1 5 2 1 3 40 1 1 2 where gg takes values from 1 to 100, t1 and t2 have values in (1,2,3) and d in (0,1,2,3) I want to perfo...
2009 Mar 20
1
reshape dataframe
Hi, I have a large dataset on which I would like to do the following: x<-data.frame(id=c(1,2,3), snp1=c("AA","GG", "AG"),snp2=c("GG","AG","GG"),snp3=c("GG","AG","AA")) > x id snp1 snp2 snp3 1 1 AA GG GG 2 2 GG AG AG 3 3 AG GG AA And then reshape the dataset in such a way that the i...
2008 Sep 25
1
ggplot: adding layer using different data, groups and also controlling appearance
...nal layer. # Toy data: foo <- data.frame ( x = 1:4, y = 4:1 , membership = c( "A", "A", "B", "B" ) ) bar <- data.frame ( x = 1:4 + 1 , y = 4:1 + 1, membership = rep ( "C", 4 ) ) # This works, and produces a sensible (unified!) legend: foo.gg <- ggplot ( mapping = aes ( x = x, y = y , colour = membership ) ) foo.gg <- foo.gg + geom_point(data = foo) foobar.gg <- foo.gg + geom_point ( data = bar ) # works fine, creates a unified scale showing "membership" foobar.gg # This does not work: booboo.gg <- foo.gg + ge...
2005 Jun 07
1
Problems with userPassword when it's base64 encoded
...ause when I try to change the password using the "ctrl+alt+del -> Change Password" method I get the following error in samba.log (with log level = passdb:5) -- cut here -- [2005/06/07 19:27:45, 2] passdb/pdb_ldap.c:init_sam_from_ldap(511) init_sam_from_ldap: Entry found for user: gg [2005/06/07 19:27:45, 2] passdb/pdb_ldap.c:init_sam_from_ldap(511) init_sam_from_ldap: Entry found for user: gg [2005/06/07 19:27:45, 4] passdb/pdb_ldap.c:ldapsam_update_sam_account(1704) ldapsam_update_sam_account: user gg to be modified has dn: uid=gg,ou=People,dc=kung,dc=foo [2005/06/07 1...
2010 Apr 17
2
grid.cap() requires more time?
Dear all, I am puzzled by the following behavior of the new grid.cap() function, which appears to run out of time when capturing the output of a graphic. It works fine if I introduce a Sys.sleep(1) before executing more code, library(grid) quartz() grid.circle(gp=gpar(fill="black")) gg <- grid.cap() dev.new() grid.raster(gg) ## completely blank gg[gg!="white"] ## indeed quartz() grid.circle(gp=gpar(fill="black")) Sys.sleep(1) gg <- grid.cap() dev.new() grid.raster(gg) ## OK gg[gg!="white"] I tried to see if the problem was limited to the quar...
2019 Feb 03
2
Crash when using dict quotas with sqlite database
Can you try out the attached patch? Aki > On 03 February 2019 at 17:17 Marcel Menzel <mail at mcl.gg> wrote: > > > All I did was > > ??? - create a sqlite database with: # sqlite3 /tmp/storage.db (/run > only to test for perm issues in other folders) > > ??? - change it's owner to mail (that's the user owning the mail files): > # chown mail:mail /tmp/stora...
2009 Aug 02
1
Competing Risks Regression with qualitative predictor with more than 2 categories
Hello, I have a question regarding competing risk regression using cmprsk package (function crr()). I am using R2.9.1. How can I do to assess the effect of qualitative predictor (gg) with more than two categories (a,b,c) categorie c is the reference category. See above results, gg is considered like a ordered predictor ! Thank you for your help Jan > # simulated data to test > set.seed(10) > ftime <- rexp(200) > fstatus <- sample(0:2,200,replace=TRUE) > g...
2019 Feb 03
2
Crash when using dict quotas with sqlite database
...</div> <div> <br> </div> <div> Aki </div> <div> <br> </div> <blockquote type="cite"> <div> On 03 February 2019 at 16:44 Marcel Menzel < <a href="mailto:mail@mcl.gg">mail@mcl.gg</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> Hello Aki, </div> <div> <br> </div> <div> unfortunately, this pat...
2011 Oct 18
1
How to read data sequentially into R (line by line)?
I have a data set like this in one .txt file (cols separated by !): APE!KKU!684! APE!VAL!! APE!UASU!! APE!PLA!1! APE!E!10! APE!TPVA!17122009! APE!STAP!1! GG!KK!KK! APE!KKU!684! APE!VAL!! APE!UASU!! APE!PLA!1! APE!E!10! APE!TPVA!17122009! APE!STAP!1! GG!KK!KK! APE!KKU!684! APE!VAL!! APE!UASU!! APE!PLA!1! APE!E!10! APE!TPVA!17122009! APE!STAP!1! GG!KK!KK! it contains over 14 000 000 records. Now because I'm out of memory when trying to handle this d...