search for: home917

Displaying 6 results from an estimated 6 matches for "home917".

2007 Dec 10
4
Reading through a group of .RData files
...m loading overwrites an object in my environment. I'd like to clean this up so that I can extract the object(s) from each data file, and feed them to my function, whatever their names are, without corrupting my environment. I'd appreciate any assistance. Thanks! -- TMK --212-460-5430 home917-656-5351 cell [[alternative HTML version deleted]]
2008 Jan 07
3
Seeking a more efficient way to find partition maxima
...cbind( seriesIdx, c( ( seriesIdx[ -1 ] - 1 ), length( values ) ) ) return( sapply( ( 1:length(seriesIdx) ), function ( i ) {return( max( values[ parti[ i, 1 ]:parti[ i, 2 ] ] ) ) } ) ) } but I figured someone out there could come up with something cleverer. Thanks! -- TMK --212-460-5430 home917-656-5351 cellt o p k a t z @ m s n . c o m [[alternative HTML version deleted]]
2007 Dec 26
1
Can you recover default argument values of a function?
...efault(y1) is the default value of the y1 argument of f2. Then, inside the loop I'd have v <- f2( y0, y2,..., yn ) Is there any mechanism that tells me how many arguments a function has, and the default values of each one, if there are default values? Thanks! -- TMK --212-460-5430 home917-656-5351 cell [[alternative HTML version deleted]]
2007 Dec 19
1
Function reference
...way to pass function references? I can get the following to work, but it seems awfully clunky: > sapply( 1:length(x), function(i){ return( eval( parse( text = paste( fun, "(", x[i], ")", sep = "" ) ) ) ) } )[1] 1 0 3 10> Thanks! -- TMK --212-460-5430 home917-656-5351 cell [[alternative HTML version deleted]]
2008 Jan 02
2
Seeking a more efficient way to read in a file
...(1:i) ] <- scan( file="C:/mat.dat", skip = i, n = i, quiet = TRUE ) } > mat <- malt + t( malt ) - diag( diag( malt ) )> The for loop took a couple of hours to complete. I suspect there's a much faster way to do this. Any suggestions? Thanks! -- TMK --212-460-5430 home917-656-5351 cell [[alternative HTML version deleted]]
2007 Dec 20
1
Quote: An embedded and charset-unspecified text was scrubbed...
...appears that this scrubbing phenomenon is stable; I've never experienced a case where I could read a message one time but another time it was scrubbed. I can read most messages, but if one has been scrubbed, then it appears that way each time I click on it. Thanks! -- TMK --212-460-5430 home917-656-5351 cell [[alternative HTML version deleted]]