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
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
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
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
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
5 matches
Mail list logo