Displaying 3 results from an estimated 3 matches for "bmcc".
Did you mean:
bcc
2010 Dec 01
3
How to pass selection criteria in a function
...wTable <- function( data, criteria){
subset( data, criteria) }
and then calling: newTable(myData, score > 75)
But this doesn't work. I am sure there is a simple way to do this,
but I am stuck! Please help. Thanks!
Chris McCarthy, PhD
Department of Mathematics BMCC
Office: N522 Extension: 5235
cmccarthy@bmcc.cuny.edu
[[alternative HTML version deleted]]
2013 Jan 16
1
equivalent code that doesn't return same results?
I need to automate changing the reference value for factors in analysis, and
it is my understanding that the following two sets of code should produce
identical results, but they do not:
1)dataset$method
2)eval(parse(text=paste("dataset",IVcat[k],sep="$"))) (in this case I
have IVcat[k]=method, which is why they are equal)
I even tested them in R, which says that these
2013 Jan 17
0
help with error: DV "converted to a factor"
I've spent several days compiling the following code (I apologize in advance
- this code is very inelegant, and I'm sure could be written much more
efficiently, but I've stuck with whatever method I could get to work -
sometimes the more efficient code I just couldn't get to work without an
error, because of my R inexperience).
My main motivation for writing the code is that