Re: [R] Please guide

2022-07-10 Thread Avi Gross via R-help
Cultures differ and we can put up with it but the feedback you get is that plenty of parts of the wider world are not like Pakistan. We simply do not invent honorifics for people who we do not know for sure has earned them, and even then, many people do not want or need a title used when not in

Re: [R] Please guide

2022-07-10 Thread Muhammad Zubair Chishti
Dear Jeff, 1) Being a PhD student, I am obliged to pay deep homage to all experts like you on this forum who provide free knowledge. 2) Since the data is too large and I cannot cut it, I have no other suitable option to send my full data. 3) This is the same file that I used in the codes mentione

Re: [R] grep

2022-07-10 Thread John Fox
Dear Steven, Beyond ?regex, the Wikipedia article on regular expressions is quite helpful and not too long. I hope this helps, John On 2022-07-10 9:43 p.m., Steven T. Yen wrote: Thanks Jeff. It works. If there is a good reference I should r

Re: [R] grep

2022-07-10 Thread Andrew Simmons
?regex is a nice starting point, it's got plenty of details on meta characters and characters classes, if you need more advanced stuff you'll probably have to look at the perl regex documentation, I believe it's linked in ?regex. I might try something like grep("^[xz]\\.") or grep("^[xz][.]")

Re: [R] rmoving dates from an xts object...

2022-07-10 Thread Gabor Grothendieck
Look at the examples at the end of ?xts for more info. library(quantmod) getSymbols("AAPL") class(AAPL) ## [1] "xts" "zoo" range(time(AAPL)) ## [1] "2007-01-03" "2022-07-08" # everything up to indicated date a1 <- AAPL["/2018-02-01"] # remove non consecutive dates d <- as.D

Re: [R] rmoving dates from an xts object...

2022-07-10 Thread Bert Gunter
Time to do your homework: https://rpubs.com/odenipinedo/manipulating-time-series-data-with-xts-and-zoo-in-R Bert On Sun, Jul 10, 2022, 6:42 PM akshay kulkarni wrote: > Dear members, > I have OHLC data of 500 stocks: OHLCData and > dates. These are of xts object. I want

Re: [R] printing with bothe print and cat...

2022-07-10 Thread akshay kulkarni
Dear Rui, Many thanks... Yours Akshay M Kulkarni From: Rui Barradas Sent: Sunday, July 10, 2022 12:39 AM To: akshay kulkarni ; R help Mailing list Subject: Re: [R] printing with bothe print and cat... Hello, Like this? testprint <- function() { for(i in