similar to: How to write R package

Displaying 20 results from an estimated 10000 matches similar to: "How to write R package"

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]]
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?
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]]
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
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]]
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]]
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 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
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]]
2009 Sep 30
3
AsciiDoc and R
I would like to learn AsciiDoc. Is there any good examples how to use AsciiDoc with R? I know that there is packages called ascii to do this, but it would be nice to see some examples how AsciiDoc works with R. Is there an AsciiDoc distribution for Max OS X? -Johannes
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)
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
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]]
2011 Sep 05
2
Need more information about VGLM
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20110905/43ff838a/attachment.pl>
2012 Mar 14
3
merge bug fix in R 2.15.0
Is it intended that the first suffix can no longer be blank? Seems to be caused by a bug fix to merge in R 2.15.0. $Rdevel --vanilla DF1 = data.frame(a=1:3,b=4:6) DF2 = data.frame(a=1:3,b=7:9) merge(DF1,DF2,by="a",suffixes=c("",".1")) Error in merge.data.frame(DF1, DF2, by = "a", suffixes = c("", ".1")) : there is already a column
2010 May 05
3
Symbolic eigenvalues and eigenvectors
Let's say I had a matrix like this: library(Ryacas) x<-Sym("x") m<-matrix(c(cos (x), sin(x), -sin(x), cos(x)), ncol=2) How can I use R to obtain the eigenvalues and eigenvectors? Thanks, John [[alternative HTML version deleted]]
2011 Mar 24
2
Using C code in R
Hi, I am new to R and I want to know how to use C code which contains two functions one called inside another.I know that how to use C code in R if it has only one function but dont know how to do it in above case. I want to use the same in R .My C code is as follows. //#include <R.h> void sayHello(); void g(); void sayhello() { Rprintf("Hello world %d\n",global); } void
2010 Jan 21
2
How to open .rda file in R
Hi,    I have a file containing gene expressions written using the tillingArray package. I used load() and attach() to get the data into R. Both of them works fine. Now I want to see the contents of the file. How can I see the contents of the file? Thankyou for your time. Regards, Ambuj The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. [[alternative HTML version