search for: mygen

Displaying 4 results from an estimated 4 matches for "mygen".

Did you mean: magen
2014 Jan 07
1
Why do methods of "initialize" have no "srcref" attribute as other S4 mehtods?
...he defining source code for objects like methods to extract the comments from it. Here is an R session that shows how this works for several kinds of methods and (at the end of the session) how if fails for methods of "initialize" > require("methods") > setGeneric( "myGen",function(arg){standardGeneric("myGen")}) [1] "myGen" > setMethod( + f="myGen", + signature="numeric", + definition=function # a function with comments in its source + ### that are used to document it with inlinedocs + (arg ##<< an...
2004 Aug 19
0
How to convert a vector into a list
1. When you don't know (or are not sure) what an object is, str() is your friend. 2. My guess is that `lidnames' is a character vector with names. 3. If genes.txt has only only column, you might as well use: mygenes <- scan("genes.txt", what="") which reads the data into mygenes as a character vector. Then your command should work. [read.table() returns a data frame. You index mygenes, a data frame, with a logical vector, which means selecting columns that are TRUE. I suspect...
2004 Aug 19
7
A question about external time-dependent covariates in co x model
Dear Rui, >From my understanding of time-dependent covariates (not an expert but have been working on a similar problem), it would appear that the coding of the status column is not correct. Unless you have observed an event at each interval you should only have status=1 for the last interval. In your example I see 3 in total. Also, I think that if "end" is proportional to your
2010 Jan 24
2
fetching columns from another file
Hi! All, I am trying to fetch rows from a data frame which matches to first 2 columns of another data frame. Here is the example what I am trying to do: > ptable=read.table(file="All.txt",header=T,sep="\t") > ptable=as.matrix(ptable) > dim(ptable) [1] 9275 6 > head(ptable) Gene1 Gene2 PCC PCC3 PCC23 PCC123 [1,]