search for: zolfaghari

Displaying 20 results from an estimated 21 matches for "zolfaghari".

2008 Jun 18
1
Question
...h","m","L","h"),value=c(2,3,5,6)) #Question: how can I reshape Data to the following # Grade postcode sector long/lat # h 2 6 0 # m 0 3 0 # l 0 0 5 Regards, Arvin Zolfaghari Lead Researcher, PhD MSc BSc Lloyd's Exposure Management Telephone +44 (0)20 7327 5983 www.lloyds.com <http://www.lloyds.com/> SAVE PAPER - THINK BEFORE YOU PRINT ********************************************************************** The information in this E-Mail and in any attachm...
2008 Oct 30
2
xyplot, the first tick mark starts from 2 rather than 1, and also there is a NA as the final tick mark.
I am trying to plot some data, but have got some difficulties with labels on the tick marks on the x-axes. There are 20 data points. All I want to do is to plot the Loss versus Lines. When I use xyplot, the first tick mark starts from 2 rather than 1, and also there is a NA as the final tick mark. Here is the R code you code give it a try: Would any body be able to fix this, please?
2012 Sep 27
2
How to write R package
Hi List, Would you please send me a good link to talk me through on how to write a R package? thanks Alireza [[alternative HTML version deleted]]
2008 Nov 12
2
Linear regression
Hi List, Does anybody know what function I need to use for a simple regression? Here is the data: I want to find the value for x1=3.5 data<-data.frame(x=c(1:30),Value=c(31:60)) x1<-3.5 Regards, Alireza [[alternative HTML version deleted]]
2009 Mar 12
3
Map using projection
Hi list, I have a real problem with plotting US state map. When I try to plot the northern state, there will be some blank space in the top of graph (see case 1 example), and when I plot southern states, there will be a blank space in the bottom of plot (see case 2). I spent almost 2 days to figure out a solution, but could not. Would you help me if you know what the problem is? Regards, Alireza
2011 Mar 02
2
R and Android
Hi List, Is anybody aware of any R console available for Android mobile? I know that there is one for Iphone. thanks, Alireza [[alternative HTML version deleted]]
2012 Oct 26
1
SQL via RODBC
Hi list, Is there a way to use sqlQuery function where there is a sql file (ie. sample.sql)? I just want to mention that in my sql file there are some comment lines (starting with --). This means that if I paste all the lines in the sql file, I'll come up with a long string that most part of it is commneted (after commnet sign --). thanks Arvin [[alternative HTML version deleted]]
2008 Dec 04
1
How can I create transparant colour
Hi list, Does any one know how I can make the red colour transparant? ######################### par() #Set up blank plot to remove plot border type lty="n" xvalue1<- c(1,2,2,1) xvalue2<- c(1,3,3,1) yvalue1<- c(0,0,22,22) yvalue2<- c(0,0,44,44)
2009 Oct 02
1
Fetch large sized file from SQL
Hi List, Does any one know what package I need to use in order to fetch/get a large sized dataframe from SQL? I have already used sqldf package which is good for fetching large sized csv files. Thanks Alireza [[alternative HTML version deleted]]
2011 Aug 10
1
RExcel
Hi list, I used to work with RExcel in excel 2003. Now in 2007, I tried the same RExcel, but it did not work. I got R version 12. I downloaded/installed the latest version of RExcel 3.2.0 from http://sunsite.univie.ac.at/rcom/. It has added the RExcel add-ins, but when I click on starting R in add-ins, I get the following sequentional errors: Errors: SCtools not available SCTools can not be
2008 Nov 13
1
Date conversion
Hi List, If I have a date format as: d <- "2001/1/1" I can easily convert it to number by using as.Date(d). But if I have d<-"1/1/2001", it does not work. Does anyone know how I can convert it using pre-written function in R? Regards, Alireza [[alternative HTML version deleted]]
2011 Mar 10
1
rodbc error
Hi list, I have code which reads data from sql server using RODBC in R version 2.12.1. The code used to be ok, till today when I get the following error. The data does not have any problem, but if I run the code in differnt pc, it runs till different number of trial then it fails, for example on one pc, it runs up to 30 times, other pc up to 66 times, then it fails. Any help please? [1] "so
2013 May 10
1
rlnorm(n, meanlog = 0, sdlog = 1)
Hi list, Does anyone know the code behind rlnorm(n, meanlog = 0, sdlog = 1)? I am going to write it in c#. thanks Alireza [[alternative HTML version deleted]]
2009 Mar 02
1
plotting on map
Hi list, I want to plot state Texas using map function. I wrote the following code to plot the grid boundary for Texas: ################################ library(maps) require("mapproj") longlatLimit<-c(-106.65, -93.53 , 25.93 , 36.49) par(plt=c(0,1,0,1),cex=1,cex.main=1) #Set plotting parameters map(projection="azequalarea",
2009 Mar 02
2
R-help
Hi list, When I type my question in R console using ? sign (example: ?par, when I want to query for par), the following error message popps up: Error in print.help_files_with_topic("C:/PROGRA~1/R/R-24~1.1/library/maps/chm/map") : CHM file could not be displayed I appreciate if any body comes back to me with the solution. Regards, Alireza [[alternative HTML version deleted]]
2008 Nov 04
1
How to create margin area around a graphic made by xyplot
Hi list, Does any body know how I can create a margin area around the graphic created by xyplot (the same thing we do using par in plot function)? I tried viewport, but does not work. Here is the code: ============================================== require(grid) vp<- viewport(x=.1,y=.1,width=.6,height=.6,just=c("left", "bottom")) pushViewport(vp)
2010 Sep 06
5
Time Series
Hi How would I analyse time series with - different lengths (i.e. one has 9 entries and the other has 14 entries) - different frequency (i.e. dates are random - no repeated length) - multiple values for the same time entry (e.g. 2009-10-23 below) i.e. my data takes the form: 1st time series 2009-10-07 0.009378 2009-10-19 0.014790 2009-10-23 -0.005946 2009-10-23 0.009096 2009-11-08 0.004189
2009 Mar 09
5
Help
...gt; 30. Re: plotting density for truncated distribution (Jeroen Ooms) > 31. RES: S4 object (Rodrigo Aluizio) > 32. RES: memory limit (Leandro Marino) > 33. ts subscripting problem (andrew collier) > 34. survreg and pweibull (Andrew Beckerman) > 35. Second y-axis (Dr. Alireza Zolfaghari) > 36. Re: multiple imputation with fit.mult.impute in Hmisc - how > to replace NA with imputed value? (Charlie Brush) > 37. Re: multiple imputation with fit.mult.impute in Hmisc - how > to replace NA with imputed value? (Frank E Harrell Jr) > 38. Re: Chi-Square Test Dis...
2010 Nov 01
0
function: colvolve
Hi list, I have a problem to solve which I believe I shoudl use the convolve to solve it, but I could not figure out how to do it. I got mydata, which is a dataframe which has 7 locations, each location has a longitude,latitude and a value. considering a step of 0.5 degree for longitudes and latitudes, I got 15 points for longitude and 15 points for latitude. Then I created a grid, mygrid, which
2008 Nov 26
0
Second y-axis
Hi list, In the following code, how can I place the percentage label away from numbers in the second y-axis (lets say all should be inside plot area)? Thanks Alireza ================= require(grid) vp<- viewport(x=.1,y=.1,width=.6,height=.6,just=c("left", "bottom")) pushViewport(vp)