Write a generic function of a given method

I would like to create a function to get the dimension of an object of class ExpressionSet

I would like to use ds.dim

Is there any way to do that in my package or should this be added to dsBaseClient?

Thanks, Juan

Hi Juan,

My suggestion is: If the existing ds.dim can estimate the dimension of ExpressionSet objects then you can use it without replicating the function in your package. If it can’t estimate the dimension of such specific objects then you can create a modified version of the function for your package, giving to it a different name, e.g. ds.dimExprSet.