Followed by t yes followed by a blank

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: 2)! [1] "St"! > substring(test, 1, 2) == "St"! [1] TRUE! > newName = ! paste("St.", ! substring(test, 3, nchar(test)), ! sep ="")! Do you see any problems with this? Second possible solu+on > substring(test, 1, 3)! [1] "St "! > substring(test, 1, 3) == "St "! [1] TRUE! > newName = ! paste("St. ", ! substring(test, 4, nchar(test)), ! sep ="")! Do you see any problems with this? Prac+ce with paste(), substring(), nchar(), strsplit()! The Web log 169.237.46.168 - - [26/Jan/2004:10:47:58 - 0800] "GET /stat141/Winter04 HTTP/1.1" 301 328 "hMp://anson.ucdavis.edu/courses/" "Mozilla/4.0 (compa+ble; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)” •  How to extract the day of month, month, and year from the log entry? What features of the entry are useful? •  Date is betwe...
View Full Document

Ask a homework question - tutors are online