I have a vector which looks something like this, c(61,33,"67*",98,"32*", "73*"). I need to clean the data using R by transforming this into a vector without the extra *. The result in this example should be c(61,33,67,98,32,73).
We can use sub to remove the * by specifying fixed = TRUE as it is a metacharacter that denotes zero or more characters.
you can use na.omit
x <- c(NA, 3, ...READ MORE
Use below function to create a ...READ MORE
You can use the filter keyword to ...READ MORE
You can use the tail function in ...READ MORE
The goal of this step is to ...READ MORE
You can use dplyr function arrange() like ...READ MORE
You can use the scan function in ...READ MORE
First see what rows meet t$ps04==1 & t$rectyp==1. ...READ MORE
You can use dimensionality reduction methods such as ...READ MORE
R offers a command to save its ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.