Updated: 2023-07-31 17:01:40
Finally! I've used binary literals in real code. This feature, and the digits separator have been good additions to the C# language.
public static byte[] BreakIntoTwos(byte value)
{
var result = new byte[4];
result[0] = (byte)((value & 0b1100_0000) >> 6);
result[1] = (byte)((value & 0b0011_0000) >> 4);
result[2] = (byte)((value & 0b0000_1100) >> 2);
result[3] = (byte) (value & 0b0000_0011);
return result;
}
Updated: 2023-07-31 17:01:40
The C# Interactive window in VS is not the best interactive C# experience, LINQPad still has the honor, I believe, but it is a quick and convenient option for trying out a few lines of code.
Updated: 2023-07-27 04:00:00
We follow the steps from Welcome to Text Mining with R to import text and reshape it into a format where can can apply what we know from the Tidyverse to analyze word and document frequency.
This is a summary of the start of one of my workshops t...
Continue reading: Text Analysis in R – Exploring Barbie and Oppenheimer Reviews – Part 1