Displaying 20 results from an estimated 6000 matches similar to: "spliting"
2006 May 22
1
editing a big file
I have a file that has 90 columns and 20,000 rows and looks like
C/G CC GG CG G/T GG TT GT C/T CC TT CT A/G AA GG AG A/C AA CC AC A/T AA
TT AT
I want to write a code that will read through each row first the first looks
at the first column and then replace the three columns with 12 if it is the
same as the first column e.g. third column 11 if it is a repeat of the first
alphabet like the
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
2006 Jun 17
2
managing data
Dear mailing list, may some one be kind to help me solve following problem.
I am trying to write a code that will combine two tables "x" and "y". The
first columns of both tables are unique identification for the rows. The
first column of table "X" is a sub set of the first column of "Y". I need to
find the matching rows in both tables by looking on their
2006 Jun 14
2
data managment
First I would really like to thank the mailing list for help I got in the
past, as a new to R I am really needing some support on hoe to code the
following problem.
I am trying to sort some data I have in a big file. The file has 4 columns
and 19000 rows. An example of it looks like this:-
G 0.892 A 0.108
G 0.883 T 0.117
T 0.5 C
2006 Aug 14
3
column to row
Dear mailing list
I have a data in two columns and how can i convert it to one row . thank you
in advance
inpute
1 2
3 4
5 6
7 8
9 1
out put
1 2 3 4 5 6 7 8 9 1
[[alternative HTML version deleted]]
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
2010 May 09
4
Fwd: R apply() help -urgent
---------- Forwarded message ----------
From: Dr. Venkatesh <drvenki at liv.ac.uk>
Date: Sun, May 9, 2010 at 4:55 AM
Subject: R apply() help -urgent
To: r-help at r-project.org
I have a file with 4873 rows of 1s or 0s and has 26 alphabets (A-Z) as
columns. the 27th column also has 1s and 0s but stands for a different
variable (pLoss). columns 1 and 2 are not significant and hence lets
2011 Sep 30
1
need help on forest plot with ggplot
Dear R users,
I am trying to do the forest plot follow the function given on web. However,
the order of the tests has been sorted alphabetically. I would prefer
keeping the order as data frame input so that I can group and compare (from
the graph) the target immune NS1, IgG and IgM (where SD, BioRad, Pb etc are
the brand names)
> d
x y ylo yhi
SD.NS1
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",
"Gga_rs10728004",
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
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
2009 Apr 01
2
Assignment to string
The documentation for assignment says:
In all the assignment operator expressions, 'x' can be a name or
an expression defining a part of an object to be replaced (e.g.,
'z[[1]]'). A syntactic name does not need to be quoted, though it
can be (preferably by backticks).
But the implementation allows assignment to a character string (i.e. not a
name), which it
2009 Aug 25
1
Filling in empty arrays/lists from using "paste" function
Dear R users,
I am trying to fill in arrays (5 different according to distinct "id")
from objects produced from arbitrary data set below.
a <-
2011 Sep 28
1
Wilcox test and data collection
Dear Contributors
I have a problem with the collection 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
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
2008 Sep 25
1
ggplot: adding layer using different data, groups and also controlling appearance
I have a more complicated function I am trying to write, but I run in to a problem when I want to
add something to the plot from more than one data set while simultaneously controlling the
appearance of the additional 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
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
2005 Jun 07
1
Problems with userPassword when it's base64 encoded
I'm switching from OpenLDAP to the newly released Fedora Directory
Server (formely known as the Netscape Directory Server) as a LDAP
backend for my Samba domain.
I'm now faced with a problem regarding how Fedora DS handles the
userPassword field.
Unlike OpenLDAP it encodes it in base64 so instead of reading
userPassword: {SSHA}0lP+r3Z1NVan7Caf4CG9oSgnTbQRrv/p
it reads:
userPassword::
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
2013 Jul 02
2
Recoding variables based on reference values in data frame
I'm new to R (previously 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