Re: [R] Help with numeric and character separation

2019-06-16 Thread Jim Lemon
Hi Sam, If I have the structure of your data right, this might help: scdf<-read.csv(text="DD Pack0.00 FTA English News0.00 FTA Complimentary0.00 WB1.18 WION1.18 Al Jazeera0.00 Animal Planet2.36 Asianet Movies17.70 Calcutta News0.00 Comedy Central5.90", header=FALSE, stringsAsFactors=FALSE) digiti

Re: [R] Help with numeric and character separation

2019-06-16 Thread Jeff Newmiller
Posting your question using anything but plain text format (you used HTML) end up as more or less of a mess once the formatting gets stripped by the mailing list. Please read the Posting Guide as use plain text email. Re your question... you should look at ?read.fwf. On June 15, 2019 8:35:17 P

Re: [R] Help with numeric and character separation

2019-06-16 Thread Bert Gunter
1. Post in **plain text** not html, please. 2. This looks like a vector, not a data frame. 3. Use ?strsplit: > ex <- "a.1" > strsplit(ex,"\\.") [[1]] [1] "a" "1" See ?regex for info on regular expressions in R. If you are confused about the data structures of input or output, time to spend ti

[R] Help with numeric and character separation

2019-06-16 Thread Sam Charya via R-help
Dear All, I need help with splitting a string. My data frame is in the following format:                       V11            DD Pack0.002   FTA English News0.003  FTA Complimentary0.004                 WB1.185               WION1.186         Al Jazeera0.007      Animal Planet2.368    Asianet M

Re: [R] Help with a third ggplot error

2019-06-16 Thread Sam Charya via R-help
Hello All, I need help with splitting a string. My data frame is in the following format:                       V11            DD Pack0.002   FTA English News0.003  FTA Complimentary0.004                 WB1.185               WION1.186         Al Jazeera0.007      Animal Planet2.368    Asianet M