hi there,
I need to change a column name in a dataframe.how do i do that
eg
abc<- dataframe
abc
x y z
i wanna change the colum z to w.
Ramya
--
View this message in context:
http://www.nabble.com/cbind-help-tp18532609p18532609.html
Sent from the R help mailing list archive at Nabble.com.
_
hi
I have vector test. It has 3 elements. I want to join the three into one
vector.
"Geneset=HSA04910_INSULIN_SIGNALING_PATHWAY-157- 20".
how can i do it.
> class(test)
[1] "character"
> test
[1] "Geneset=HSA04910_INSULIN_SIGNALING_PATHWAY" "157"
hi there,
I want to write the plots in the pdfs and the details about the graph in a
seperate notepad.
plot(as.numeric(lapply(resultgenes,length)),
main= "Geneset.gene#.bias.test",xlab="Top.Ranked.Genesets",
ylab="gene.number.per.geneset")
lines(loess.smooth(c(1:1000),as.numeric(lapply(resultge
(mean.std.s2n.loss.gain[[1]])
Probe.Set.ID rho_prime r ho_prime_sdpom Expr1
matchinggenes Mean std_dev
29 SNP_A-190846347 2.47 0.75 0 PRKCZ -
0.34560. 1344 30 SNP_A-213137044 2.61
(mean.std.s2n.loss.gain[[1]])
Probe.Set.ID rho_prime rho_prime_sd pom Expr1 matchinggenes
Meanstd_dev
29 SNP_A-190846347 2.47 0.75 0 PRKCZ
-0.345616170.13443676
30 SNP_A-213137044 2.61 0.58 0
hi ,
Is there anyways to delet the list names once created.
i tried
rm(names(mylist))
i didnt work
kindly help me
Ramya
--
View this message in context:
http://www.nabble.com/List-names-help-tp18717742p18717742.html
Sent from the R help mailing list archive at Nabble.com.
_
hi
I have list of matrix of lenggth 61 containg the mean values..I want to make
a boxplot for each of the matrix.
I used a for loop but i cant figure out the way to save in the boxplots
> all.the.mean
[[1]]
mean
0.5
o.6
0.8
[[2]]
0.6
0.6
0.9
now i want the boxplot for each of the matrix in a se
hi there,
Is there any function to append the pdf file.
I want to write in a pdf file some 100 plots(in one single pdf containing
100 plots) while all the plot are created using a for loop.
I can create 100 pdf one for each for each plot using a for loop but i want
only one pdf with 100 plots.
hi there
Can i write two objects in one file.
one is a list and another is a vector.
The vector here is the names of the list.so can i write
for(i in 1:60) # i have 60 list elements.
{
write.table(names(mylist[[i]],mylist[[i]],filename=test.txt,sep="\t",append=TRUE)
}
my testfile.txt should hav
hi there
Is there any way to create automatic bookmarks for the pdf while writing the
plots in the pdf.
Ramya
--
View this message in context:
http://www.nabble.com/PDF-help-tp18893669p18893669.html
Sent from the R help mailing list archive at Nabble.com.
Hi there,
I have a dataset stored in an object which has very huge volume of rows.I
want to reuse it for comparing with other datasets.I dont want it to reload
every time i run the script.Is there a way of saving a particular loaded
object in the workspace and reusing it.
Kindly help me.
Ramya
Hi There,
I have a named List object.I want to access all the list elements that has
the same name
for example
The List
test <- list()
$d2
v1 v2 v3 v4
1 2 3 4 5
$d2
v1 v2 v3 v4
1 2 3 4 5
$d3
v1 v2 v3 v4
8 9 19 10
$d1
v1 v2 v3 v4
12 14 15 16
so if i say test[["d2"]] or test["d2"] i should get
Hi there,
I am very new to R.I have to write the code for the following scenario
Snp_Id Gene name score
1 a
2 b
3 a
4b
are the three columns in my table.There are many snp,s for a particular
gene.I have to group all the snp to its corresponding genname
hi,
I have a data stored in table format. The data is stored in the name map.
500545 rows and 3 columns.
I want to use a for loop to scan through till the end of the row.
can i use like this.
for ( i in 1:row(map)
{
}
Kindly clarify me
Cheers
Ramya
--
View this message in context:
http:/
Hi,
Thank u so much for resolving my problem
Ramya
--
View this message in context:
http://www.nabble.com/R-help-tp18121494p18126036.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.et
Hi,
I have a problem in assessing the list element.
i have list called geneset it contains the following elements
> geneset
[[1]]
V1 V2 V3 ...V200
Genenamegene1 gene2gene200
[[2]]
V1V2 V3 V4...V[240]
Gen
Hi,
Could you please let me know to use a list in a for loop here geneset is a
loop.I am trying to match the names of the list with 1st row of the output.
result<- list()
for(i in 1:length(output)
{
result[[i]] <- geneset(which(geneset %n% output[,1]))
}
Kindly help me out
--
View t
hi
I want to compare two list by its names and get the values of that list.
can anybody let me know the syntax of comparing the list by their names
using a for loop
c.genes<- list()
for(i in 1:100)
c.genes[[1]]<- geneset(which(geneset == tobecampared[i]))
}
here geneset is a list and also to
hi
Can i use a for loop with in the lapply..if so could u plz let me know the
syntax.
Ramya
--
View this message in context:
http://www.nabble.com/lapply-tp18363288p18363288.html
Sent from the R help mailing list archive at Nabble.com.
__
R-hel
hi,
I need to remove the list that does not have any values.Do suggest me the
way to do it.
result<- list()
> head(result)
[[1]]
[,1] [,2] [,3]
[[2]]
[,1] [,2] [,3]
[[3]]
[,1] [,2] [,3]
[[4]]
[,1] [,2] [,3]
[[5]]
[,1] [,2][,3]
[1,] "HIGD1C" "SNP_A
Thank u so much it did work
Rajasekaramya wrote:
>
> hi,
>
> I need to remove the list that does not have any values.Do suggest me the
> way to do it.
>
> result<- list()
>
>> head(result)
>
> [[1]]
> [,1] [,2] [,3]
>
> [[2]]
>
Hi there
I have two object on is a vector T and the other is dataframe C.
vector T has more no of rows when comapred with a dataframe Ccolumn[,2].I
want to find the the missing rows in dataframe C.That is those values that
are not matchig in dataframe C[,2]
Kindly give me suggestion on how to
hi,
I have list of length 5453 and vector of length 14318.I need to compare the
vector with the list and return the list name if matched.I am thinking of
using an lapply but how to retrive the listname is wat i am puzzled abt.
kindly let me know how to go abt it.
Ramya
--
View this message in c
Hi there,
I have a dataframe D.F1
>dim (D.F1)
14351 9
This dataframe has values and for some 1000 rows it holds NULL values.I hace
found the missing values for about 500 and have those in another dataframe
D.F.sub.2
>dim(D.F.sub.2)
500 9
as dataframe is a subset of D.F1 the coulmn 1 in D.F.sub
I have a dataframe D.F1
>dim (D.F1)
14351 9
This dataframe has values and for some 1000 rows it holds NULL values.I hace
found the missing values for about 500 and have those in another dataframe
D.F.sub.2
>dim(D.F.sub.2)
500 9
as dataframe is a subset of D.F1 the coulmn 1 in D.F.sub.2 is
Hi,
I have a dataframe with 14319rows and 9 colums. for some rows there are null
values.I want a dataframe without these null values.I wanna select only
those that have values !=NA.
kindly let me know how to do that.
Ramya
--
View this message in context:
http://www.nabble.com/selecting-dat
Hi there
I want to cbind a vector(contains 20 values) to a dataframe containg (18
rows).The missing value in the dataframe is however a repeated values but
still i want to retain the repeats in the vector and the dataframe values
can even get enterd twice.
how should i go about it
Example:
Vec
Hi there,
I am just wondering if there is any function that could match the vectors
irrespective of the upper and lower case alphabets.
Ramya
--
View this message in context:
http://www.nabble.com/Function-for-case-insensitive-match-tp19672969p19672969.html
Sent from the R help mailing list
Hi there
I have 386 list of vectors.In that i want to delete 23 vector in the 53 list
element.
[[1]]
"abc" "dfg" "dft" "err"
[[2]]
"elm" "erg"" trr" "rtt"
similarly i have [[386]]
now i want to delete or avoid trr in the [[2]].
i just tried something like this
list[-list[[53]][3]]
--
View
Hi,
I have a list(A1) of dataframe and a vector containing a 22 list names.
list(A1)
abc
l m n
p q r
dce
e g h
l k m
kpo
a d c
also i have a vector of list names.
abc,dce similarly i have 22 elements.
I wanna delete or want a list without the list elements whoes name match up
the vector.
Hi there,
I am looking for R/parallel package or some other package that would speed
up the analysis.I am working on computatioanly intensive data so any
suggestions would be really helpful.
Kindly let me know if any
--
View this message in context:
http://www.nabble.com/R-Parallel-tp1425p1
Hi there,
I have a dataframe length.unique.info
> length.unique.info
abc 12 345
def 16 550
lmn 6 600
I want those names that fall under the condition (length.unique.info[,2][i]
<=5 && length.unique.info[,3][i] >=500)
abcder<-length.unique.info[which(length.unique.info[,2][i] <=5 &&
length.
Geneset_name #Chromosome #Hit_in_Biomart
original_geneset_len Missing.genes
[1,] "AGUIRRE_PANCREAS_CHR12" "1" "51"
"59" "8"
[3,] "AGUIRRE_PANCREAS_CHR9" "1" "24"
hi there
I have a vector with a set of data.I just wanna seperate them based on the
first p and q values metioned within the data.
[1] chr10p15.3 /// chr3q29 /// chr4q35 /// chr9q34.3
[2] chr1q22-q24
[3] chr1q22-q24
[4] ch
Hi,
I have a vector of Size 7420. I wanna break down in such a way that every 20
elements of it should be as elements of an list.
Ex
EXAM1
ABC, SDF, LMN,ERF,EGC,EFG,WER,FRE,QWE,ERT,DGW,QWE,YUR,ERT,GHJ,FHH,7420
what i want is
Breakdown.list
[[1]]
ABC,SDF,.20
[[2]]
21.40
[[3]]
41
hi there,
I have a list of list objects i need to remove the top layer
[[1]]
[1].0
"ABC" "DEF""LMN"
[1].1
"WER" "ERT" "TRY"
[[2]]
[2].0
"ASD","wer""qwe"
[2].1
"wdv""ghj""ggj"
I wanna avoid the top layer...that is [[1]] [[2]] shouldnt be there
just a simple list is wat i need.
[1].0
"ABC" "DEF"
hi there
I have a dataframe
abc 123 345
abc 345 456
lmn 567 345
hkl 568 535
lmn 096 456
lmn 768 094
i want the uniques of column 1 and there corresponsing column 2 and 3
output
abc 123 345
lmn 567 345
hkl 568 535
cbind(DF1[,1],DF1[which(unique(DF1[,1]),c(2,3)])
but didnt work
kindly let m
hi there
I have a dataframe
abc 123 234
abc 234 456
def 567 234
elm 123 456
klm 234 678
klm 465 678
I want the unique of first colum along with the values in colum 2 and 3.I By
default it will select the first element for the unique so my out put should
be
abc 123 234
def 567 234
elm 123 456
k
hi there
I have a dataframe
abc 123 345
abc 345 456
lmn 567 345
hkl 568 535
lmn 096 456
lmn 768 094
i want the uniques of column 1 and there corresponsing column 2 and 3
output
abc 123 345
lmn 567 345
hkl 568 535
cbind(DF1[,1],DF1[which(unique(DF1[,1]),c(2,3)])
but didnt work
kindly let m
hi there,
I have a list called MyList.
MyList[[1]]
[1] "SRY"
[2] "RPS4Y1"
[3] "ZFY"
40 matches
Mail list logo