Re: [R] Bar Chart

2011-03-23 Thread Francisco Gochez
Hi, It's difficult to know what is going wrong from what you say below (please include some reproducible code in the future as indicated in the posting guide). If you want to produce a bar chart of the numbers with the corresponding names as labels for these numbers, you can do something like

Re: [R] create data set from selection of rows

2011-03-15 Thread Francisco Gochez
Hi, What you are after is: datasubset - dataset[ dataset[,3] == text3, ] Equivalently, you can use: datasubset - subset(dataset, subset = dataset[,3] == text3) HTH, Francisco On Tue, Mar 15, 2011 at 3:09 PM, e-letter inp...@gmail.com wrote: Readers, For a data set: text1,23,text2,45

Re: [R] Selecting ranges of dates from a dataframe

2011-03-10 Thread Francisco Gochez
Benjamin, A more elegant R-style solution would be to use one of R's apply/aggregation routines, of which there are many. For example, the by function can split a data.frame by some factor/categorical variable(s), and then apply a function to each slice. The result can then be pieced back

Re: [R] Associating the day of week to a daily xts object

2011-03-07 Thread Francisco Gochez
Victor, The weekdays function will return the days of the week (as a character vector of names) that a given vector of dates (Date or POSIXct) fall on. These can then be converted into numbers using a look-up table/vector. See below for an example using the sample_matrix data included with the

Re: [R] Writing Rd files

2011-03-06 Thread Francisco Gochez
Hi Nipesh, Try \cr. See section 2.2 of the Writing R Extensions document for more information. HTH, - Francisco On Sun, Mar 6, 2011 at 2:03 PM, Nipesh Bajaj bajaj141...@gmail.com wrote: Hi all, I have created a package and now into writing it's help files. However I am having problem on,

Re: [R] Generic mixup?

2011-03-04 Thread Francisco Gochez
Hi Nick, There is a difference between the newer S4 generic functions/methods and S3 generic functions. See for example: methods(print) showMethods(show) ?Methods HTH, -Francisco On Fri, Mar 4, 2011 at 10:14 AM, Nick Sabbe nick.sa...@ugent.be wrote: Hello list. This is from an R

[R] LondonR meeting - 21st of July

2009-07-14 Thread Francisco Gochez
ECN 1HU Tel: 020 7588 4845 Agenda: * 4pm - Richard Pugh Introduction * 4.15pm - Matthew Dowle Data.table: Higher speed time series queries * 4.45pm - Francisco Gochez (To be confirmed) An overview of RMetrics 2009

[R] Second LondonR Group meeting

2009-06-24 Thread Francisco Gochez
Hello, Mango is pleased to announce that the next LondonR Group meeting will be held on 21st July. At this meeting we plan to have a feedback session from people who attended useR! in Rennes. To help us plan this, if you are attending at Rennes next month and would be interested in giving some

[R] Course announcement: R for Financial Data Analysis in New York (July 16-18th)

2009-04-23 Thread Francisco Gochez
Dear userRs, Mango Solutions are pleased to announce that we will deliver a 3-day introductory R course focused on financial analysis in New York on the 16-18th of July. The course topics are as follows: * Introduction * The R Environment * Data Objects * Functions