Displaying 2 results from an estimated 2 matches for "caspase".
Did you mean:
cascade
2009 Dec 17
2
some help regarding combining columns from different files
Dear all,
Here is my code which am using to combine 5th column from different data
sets.
Here is the function to do my job
genesymbol.append.file <-NULL
gene.column <- NULL
readGeneSymbol <- function(files,genesymbol.column=5){
for(i in fnames){
temp <- read.table(fnames,header=T,sep="\t",stringsAsFactors=F,quote="\"")
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame.
For instance
> ddTable <-
data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry"))
I want a dataset that is
Id Name
1 Paul
2 Bob
> unique(ddTable)
Will give me all 4 rows, and
> unique(ddTable$Id)
Will give me c(1,2), but not accompanied by the name column.