Monthly Archives: March 2011

R: Efficient data loading

I’m working with the HOG_01 directory from this dataset.  They have organized so that each data point is a 1568 line text file.  The data sets are also separated in 43 types.  Unzip the data and you will see what … Continue reading

Posted in commands, PhD, R | Leave a comment

R filter rows based on an element

I need to separate a matrix based on the existence of an element in a row.  I will end up with two matrices: the first will not contain the element on any of its rows and the second will contain … Continue reading

Posted in PhD, R | Leave a comment

Remove defined variables from R environment

When I am debugging a piece of code I usually do it inside the R-terminal.  It’s nice to do things this way because you can poke at things when something goes wrong.  The only disadvantage is that you mush “refresh” … Continue reading

Posted in PhD, R | Leave a comment

opencv add padding

I was surprised that this function was so difficult to find.  I googled with the title of this post and did not find any real solution to what I was looking for.  I just want to add some pixels of … Continue reading

Posted in opencv | 1 Comment

R : Finding the ordering index vector

The ordering index vector is a vector that contains indices of another vector.  It’s basically the other vector, but ordered (decreasing or increasing).  Instead of having the values it has the indices :)  I spent close to an hour to … Continue reading

Posted in commands, R | 3 Comments