Alwaysbreakitdownintothesethree

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 6.0;
Windows
NT
5.0;
.NETCLR
 1.1.4322)”
 

 •  How
to
extract
the
day
of
month,
month,
 and
year
from
the
log
entry?
 6
 10/18/12
 What
features
of
the
entry
are
useful?
 •  Date
is
between
[
]
 •  Day,
month,
year
are
separated
by
/
 •  Year
is
separated
from
0me
by
:
 Return
to
St
vs
St.
 Another
idea
 >
string
=
"The
Slippery
St
Frances"
 >
chars
=
unlist(strsplit(string,
""))
 >
chars
 
[1]
"T"
"h"
"e"
"
"
"S"
"l"
"i"
"p"
"p"
"e"
"r"
 [12]
"y"
"
"
"S"
"t"
"
"
"F"
"r"
"a"
"n"
"c"
"e"

"s"
 >
possible
=
which(chars
==
"S")
 >
possible
 [1]

5
14
 >
substring(string,
...
View Full Document

Ask a homework question - tutors are online