Blog Archives

Searching for chemical substances based on ATC codes from WHO search engine.

July 20, 2013
By

The concept of how to grep search engine results with R had been one of my lingering thoughts. Because sometimes it's just feels easier if I could just grep search engine results than to find a dataset or complete database of a certain thing.So when...

Read more »

Searching for chemical substances based on ATC codes from WHO search engine.

July 20, 2013
By

The concept of how to grep search engine results with R had been one of my lingering thoughts. Because sometimes it's just feels easier if I could just grep search engine results than to find a dataset or complete database of a certain thing.So when...

Read more »

A Merging Test Bench

March 24, 2013
By

As requested here's the packed data and a test bench you can test your own merging function ideas and replicate my results (hopefully). If you want the plots you can use the end part of scripts in part1 part2.The data is a bunch of super secret Eve...

Read more »

RMark: data.table merge vs core merge

March 21, 2013
By

This is the third post concerning fast merging in R, first here and second here. This time we are going to look at how the merge function from data.table package works in our case, requested by Uwe Block.As a reminder the first post concerns doing a...

Read more »

RMark: Parallel fast merging

March 3, 2013
By

Last time we looked at a different method of merging multiple files via fast mergin g. I highly recommend checking the fast merging function before we will translate it to a parallel solution. Parallel programming in this case means we are using more t...

Read more »

R Benchmark: Merge vs fast.merging

January 14, 2013
By

Last summer as a trainee I ran into a bit of trouble with the merge function in R. The main problem is that it's slower then your avarage tortoise in a tard field. Also I could not use rbind because of the different lengths of the frames. In code I mea...

Read more »

Comment: Search and Replace

January 7, 2013
By

A post in R bloggers caught my attention this morning. The main idea was that how can you change objects in a string. For example given a basket of fruits we would like to change apples to bananas by using R and the ifelse funtion. There are two main solutions how to change one object into another:#Given a...

Read more »

National identification number: Finland part 3

January 5, 2013
By

Last part of our short series about the Finnish social security number (Fssn). You can check part 1 here, and part 2 here.This last post we are interested in generating random Fssn's. This has no real world applications. It is just a coding excercis...

Read more »

National identification number: Finland part2

January 5, 2013
By

Continuing our theme from last time. The Finnish social security number (FSSn) has the form xxxxxxyzzzq, where the check digit is q.If you want to check if the FSSn is real the check digit is matched to the remainder of xxxxxxzzz / 31. The check di...

Read more »

National idenftification number: Finland

December 30, 2012
By

The Finnish Social Security number (FSSn) is a common variable in a Finnish population based study. Within FSSn are individuals birthday, and gender. We can also check if the FSSn correct because it has a check digit. If the data doesn't have birthday ...

Read more »