Dear all, I was wondering if someone could tell me what function I must use to know how long a computing problem has taken using R, I mean, I want to know the amount of time R has need to compute some certain task that has developed. Could anyone answer this? Thanks
On Wed, 2003-11-05 at 08:03, Fuensanta Saura Igual wrote:> Dear all, > > I was wondering if someone could tell me what function I must use to know how > long a computing problem has taken using R, I mean, I want to know the amount > of time R has need to compute some certain task that has developed. > > Could anyone answer this? > > ThanksSee ?system.time HTH, Marc Schwartz
Does anyone know how I can read from a .txt file the lines that are between two strings whose location is unknown? My problem is that I have a .txt file with data separated by a sentence, for example: 2.22 3.45 1.56 2.31 pattern 1 4.67 7.91 3.34 2.15 5.32 3.88 pattern 2 ... I do not know the number of lines where these separating sentences are located, because the number of lines in between them can be random. If it was fixed, I think I could use "read.table" using the option "skip", but in this case, I do not know how I could manage to do that automatically. Thanks.
With "scan" and "match" (pattern1,pattern2,..) you should be able to build a function to perform what do you want. A.S. ---------------------------- Alessandro Semeria Models and Simulations Laboratory Montecatini Environmental Research Center (Edison Group), Via Ciro Menotti 48, 48023 Marina di Ravenna (RA), Italy Tel. +39 544 536811 Fax. +39 544 538663 E-mail: alessandro.semeria at cramont.it