R

Hvordan klarer de politiske partier sig på Facebook?

For ganske nyligt opdagede jeg, at der er lavet en RFacebook pakke til at trække data fra Facebooks Graph API. Det blev brugt til en analyse af Donald Trump og Hillary Clintons kampagner under den seneste amerikanske valgkamp. Det kunne være interessant at se hvad vi kan sige om de danske politiske partier baseret på deres facebook-aktivitet. Hvem er mest aktive? Hvem er mest effektive i sin kommunikation? Dele af R-koden i dette indlæg er skjult for at øge læsbarheden, men den fulde kildekode er tilgængelig på Github.

Combining R and Python for data analysis

As part of my PhD work I characterise nanomaterials using Energy-dispersive X-ray spectroscopy (EDX) in a Scanning Transmission Electron Microscope. We do this to obtain spatial information about the chemical composition of a sample on the nanoscale. Basically, an image is obtained by raster-scanning the electron beam and recording an X-ray spectrum in each position. This effectively gives a 3-dimensional dataset, where for each pixel a full spectrum is recorded. Since different elements emit X-rays at different energies, we can essentially make images of each element in a sample by extracting that part of the spectrum.

Open Science tools for our research group

Currently in the Organic Surface Chemistry group, there are large variations between our group members when it comes to the tools used for data analysis. Some people feel most comfortable in spreadsheet programs such as Origin or Excel, while others rely on a mix of Matlab, R, Python or other tools. We use a lot of different experimental techniques in our research, and therefore generate data in a lot of different formats.