Every time I think I understand about working with vectors, what appears to be a simple problem turns my head inside out. Lot\'s of reading and trying different examples hasn\'t helped on this occasio
I know that loops are slow in R and that I should try to do things in a vectorised manner instead. But, why? Why are loops slow and apply is fast? apply calls several sub-functions -- that doesn\'t s
I want to apply a patch to a file in the current directory. The path in the patch file says just a/FILETOPATCH.something b/FILETOPATCH.something. If I use this with git apply it isn\'t working. The fi
I have Date/Time information where I want to get the average, min, max, range of the dates across \"seasons\" grouped by years and the only way I have been slightly successful of doing this is with ta
Every time I see a question on parallel processing in R, it uses the foreach function.Sinc开发者_C百科e for loops are not very R-like, is there a parallel version of apply, and if so why isn\'t it mor
I\'m trying to create a DSL and running into a problem.I have these definitions: case class Var(name: String)
>str(set) \'data.frame\':1000 obs. of6 variables: $ ID: Factor .. $ a : Factor .. $ b: Factor .. $ c: Factor ..
How do I partially bind/apply arguments to a function in R? This is how far I got, then I realized that this approach doesn\'t work...
I am trying to perform a linkage disequilibrium calculation using the LD() function from the genetics package. For those who don\'t know, it is written as follows:
I\'m new to R and I\'m trying to sum 2 columns of开发者_如何学JAVA a given dataframe, if both the elements to be summed satisfy a given condition. To make things clear, what I want to do is: