R and/or Python codes related to RF