rbind error: numbers of columns of arguments do not match
If you are having this rbind error “numbers of columns of arguments do not match”, there might be a solution to this problem.…
Extract text based on match of multiple possible strings in R
Sometimes there are multiple possible strings that you can locate in text. If you would like to extract text based on the first…
ifelse and NA problem in R
If your data frame contains NA values, then the R function ifelse might return results you don’t desire. Missing values might be a…
Replace R data frame column values conditionally
Here are multiple examples of how to replace R data frame values conditionally. Sometimes it is a specific value like NA, but sometimes…
Check if a column has a missing values (NA) in R
Here are easy ways how to check if an R data frame column has missing values (NA). It might impact results by using…
Last or first date of the month in R
Here is probably the easiest way how to get the last or first date of the month that might be helpful in further…
Remove or replace unwanted characters in R
In a messy text might be a lot of characters that you don’t want to export to CSV or text files. That might…
Start every string with a capital letter in R
If you want to start every string with a capital letter in R, you should know a reliable function that works in every…
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…
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.