53072/convert-character-to-integer-type-r
Hi, I'm using superstore dataset for visualizations.
I want to use sales and profit values, but they have currency along with digits.
Like this below
How to use the values now? Can someone help me to use the values from dataset?
Use substring() function to extract value from 2nd position and load it into the same field.
df$sales = as.numeric(substring(ds$sales, 2))
This is a good question. READ MORE
Let's assume your list of lists is ...READ MORE
You can use the plyr function: data <- ...READ MORE
> trial.table.df <- as.data.frame(trial.table) //assuming that trial.table ...READ MORE
Basically here we are making an equation ...READ MORE
By assuming that all the values are ...READ MORE
For avoiding rowwise(), I prefer to use ...READ MORE
Basically all we have to do is ...READ MORE
You missed out " " for variables ...READ MORE
If you used sub() to replace the ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.