Month: December 2020
Extract date from datetime in R
Here are a couple of examples on how to extract date from datetime in R – with the results class of Date or POSIXct. If you have a large dataset, then here is my favorite solution at this moment with the function fastPOSIXct from the fasttime package that can extract date as POSIXct.
Run batch file minimized
If you are running scheduled Windows batch files, then sometimes it could be more convenient to run batch file minimized.
How to preview part of PowerShell array
As I’m working in PowerShell ISE, I would like to take a quick look at my results in an array or hash table. Here is how to preview part of that.
Count unique values in column by using R
Here is the easy method of how to calculate the count of unique values in one or multiple columns by using R.
Remove duplicates and keep last in R
Here is how to remove duplicates but keep the last row in the R data frame.