search for: testf2

Displaying 3 results from an estimated 3 matches for "testf2".

Did you mean: test2
2012 Jan 13
2
question: how to select a column from a dataframe in a function
Hi, I am creating a function and ran into the problem of selecting a column from a dataset. It seems as though the $ function (as in data$columnname) does not apply in the function. In simplified version: This works: testf2<-function(data,columnnumber){print(data[,columnnumber])} But this doesn't: testf<-function(data,column){print(data$column)} Even though the first solution works, I would like to be able to insert the columnname in the function, instead of the columnnumber. How do I do that? Thank you i...
2010 Dec 17
1
help with function
...ontext_score column of deMirPresGenes. This is easy peasy! Where I'm falling down is that if I run this function it complains that 'geneMetric' can't be found. Hmm - I've run it all line by line (i.e. not as a function) and it works but wrapped up like this it fails! e.g. >testF2 <- cumulMetric(testF1, deMirs$up) Error in eval(expr, envir, enclos) : object 'geneMetric' not found deMirs$up looks like this: Probe? ? FC hsa-miR-183? ? 2.63 hsa-miR-1275? ? 2.74 hsa-miR-495? ? 3.13 hsa-miR-886-3p? ? 3.73 hsa-miR-886-5p? ? 3.97 hsa-miR-144*? ? 6.62 hsa-miR-451? ? 7.9...
2010 Dec 18
0
[BioC] problem with function
...line (i.e. not > as a > >> function) > >>>> and it > >>>>>> works but wrapped up like this it > fails! > >>>>>>> > >>>>>>> e.g. > >>>>>>> > >>>>>>>> testF2<- > cumulMetric(testF1, > >>>> deMirs$up) > >>>>>>> Error in eval(expr, envir, > enclos) : > >> object > >>>>>> 'geneMetric' not found > >>>>>>> > >>>>>>> deMirs$up...