similar to: Calling R function in C

Displaying 20 results from an estimated 30000 matches similar to: "Calling R function in C"

2009 Mar 31
2
To save Trellis Plots on A3 size paper (Portrait and Landscape)
Dear R users, Thanks in advance. I am Deb, Statistician at NSW Department of Commerce, Sydney. I am using R 2.8.1 on Windows XP. I like to save Trellis Plots on A3 size paper (Portrait and Landscape). Currently, I am using the following command to save a Trellis Plot in pdf [This is an example code]: pdf("D:/Analysis/test.pdf") dataFile <- expand.grid(xo=
2009 Mar 12
4
Windows binary version of DPpackage
Dear R users, Thanks in advance. I am Deb, Statistician at NSW Department of Commerce, Sydney. I am using R 2.8.1 on Windows XP. This has reference to the package “DPpackage”. The binary version is available on Mac OS, but I am using Windows XP. May I request you to assist me in the followings: How can I prepare Windows binary of DPpackage from source? 2. Is there any possibility
2007 Jul 04
1
Calling C Code from R
Hi R Users, Thanks in advance. I am using R-2.5.1 on Windows XP. I am trying to call C code (testCX1.C) from R. testCX1.c calls another C code (funcC1.c) and returning a value to testCX1.c. I like to have this value in R. My steps are below: 1. R CMD SHLIB testCX1.c funcC1.c (at command propmt) 2. It creates testCX1.dll with warning (but testCX1.dll works):
2009 Aug 27
1
Submit a R job to a server
Dear R users, Thanks in advance. I am Deb, Statistician at NSW Department of Commerce, Sydney. I am using R 2.9.1 on Windows XP. May I request you to provide me information on the following: 1. I have access to a server ( I have userid and pwd) 2. What are the packages I need to submit a job from Windows XP to this server? Should I need to install any package on this server before
2009 Sep 30
1
How to change e-mail address
Hi! Thanks in advance. I know this is not the right place to send this message. But I have tried to do so by sending e-mail to the addresses r-help-request@r-project.org and r-announce-request@stat.math.ethz.ch. But no success. I am getting messages such as "Your message to R-help awaits moderator approval". I need your assistance on above. I am an user of r-help. My e-mail
2007 Feb 01
2
Calling C code from R
Hi! Thanks in advance. I am using R-2.4.0 on Windows XP. I am trying to create dll file. My C code: /* useC1.c */ void useC(int *i) { i[6] = 100; } I have tried to create useC1.dll. C:\R-2.4.0\bin>R CMD SHLIB useC1.c 'perl' is not recognized as an internal or external command, operable program or batch file. Then I have tried:
2007 Feb 04
1
Fwd: Re: Calling C code from R
Hi! Thanks in advance. Thanks to all of you who have responded to me on above. This is one of the responses I received on above. I have installed perl (with path C:\Perl\bin\;) an MinGW (with path C:\MinGW\bin; C:\MinGW;). At the Command Prompt (C:\R-2.4.0\bin) I have typed: C:\R-2.4.0\bin>Rcmd SHLIB useC1.c (No error and useC1.dll file has not been created)
2007 Aug 21
2
Stacked Bar
Hi R Users! Thanks in advance. I am using R-2.5.1 on Windows XP. I am trying to do a stacked bar plot, but could not get through the following problem. The code is given below. 1. How can I provide 15 different colors for each method with 15 Rows? 2. How can I put the legend in a particular position (eg., in the top or bottom or right or left)? How can I put legend using a number
2009 Jul 02
0
MCMCpack: Selecting a better model using BayesFactor
Dear R users, Thanks in advance. I am Deb, Statistician at NSW Department of Commerce, Sydney. I am using R 2.9.1 on Windows XP. This has reference to the package “MCMCpack”. My objective is to select a better model using various alternatives. I have provided here an example code from MCMCpack.pdf. The matrix of Bayes Factors is: model1 model2 model3 model1 1.000 14.08
2009 Sep 14
1
64-bit binary for Windows
Dear R Users, Thanks in advance. I am currently using R-2.9.1-win32.exe on Windows XP. Is there any 64 bit binary on Windows XP? Once again, thank you very much for the time you have given. Regards, Deb ****************************************************************************** This email message, including any attached files, is confidential and intended solely for the use of
2009 Jul 08
1
Density value over 1 using density function
Dear R users, Thanks in advance. I am using R 2.9.1 on Windows XP. In the plot, the density value displays over 1. How can I explain it? library(urca) plot(density(Raotbl1[, 1])) Once again, thank you very much for the time you have given. I am looking forward for your reply. Regards, Deb ****************************************************************************** This email
2009 Sep 02
1
R and GNU gcc for OpenMP
Dear R users, Thanks in advance. I am using R 2.9.1 on Windows XP. May I request you to assist me on the following: I have downloaded Rtools29.exe and installed it today 02 Sep 2009 and I have also provided the appropriate path variable for Rtools. I have checked the version of gcc compiler in Rtools.exe is 4.2.1. I have checked (in http://gcc.gnu.org/) the latest available gcc
2009 Sep 02
1
R and GNU gcc for OpenMP
Dear R users, Thanks in advance. I am using R 2.9.1 on Windows XP. May I request you to assist me on the following: I have downloaded Rtools29.exe and installed it today 02 Sep 2009 and I have also provided the appropriate path variable for Rtools. I have checked the version of gcc compiler in Rtools.exe is 4.2.1. I have checked (in http://gcc.gnu.org/) the latest available gcc
2009 Jul 12
0
Installing Eclipse Plug-In for R: "StatET"
Dear R users, Thanks in advance. I am using R 2.9.1 on Windows XP. I am trying to install above, but faced problem. I have described the steps below. 1. I like to install locally. That means I like to install after downloading the required files into my hard drive. 2. Java Runtime Environment (JRE 1.5.0-07) is installed 3. I have downloaded eclipse-SDK-3.5-win32.zip - installed
2006 Mar 23
1
RMySQL's column limit
Dear R-users, First, thank you to the developers for the very useful R-library RMySQL. While using this library a recieved an error message: RS-DBI driver: (could not run statement: Too many columns) The statement that generated the error was: dbWriteTable(dbcon, "simdataseries", template, overwrite = TRUE, row.names = FALSE ) I am assuming this is a RMySQL rather than MySQL limit.
2009 Jul 20
1
Problem with as.POSIXct on dates object
Dear R-helpers, I have a problem converting an object made with the 'chron' function to a POSIXct object: # Make date based on DOY dat <- chron(dates=232, origin.=c(month=1, day=1, year=2008)) dat #[1] 08/20/08 # Converting to POSIXct uses current timezone (Sydney): as.POSIXct(dat) #[1] "2008-08-20 10:00:00 EST" # Setting GMT timezone has no effect? as.POSIXct(dat,
2009 Sep 19
2
Counting observations of a combined factor
#I have a dataset with two factor. I want to combine those factors into a single factor and count the number of data values for each new factor. The following gives a comparable dataframe: a <- rep(c("a", "b"), c(6,6)) b <- rep(c("c", "d"), c(6,6)) df <- data.frame(f1=a, f2=b, d=rnorm(12)) df # I use the 'interaction' function to combine
2009 Sep 19
3
Creating histograms from factors using a for loop
# I have a dataframe with data and factors similar to the following: a <- rep(c("a", "b"), c(6,6)) df <- data.frame(f=a, d=rnorm(12)) df # I am trying to write a 'for' loop which will produce a jpeg histogram for each factor. I can individually isolate the data from a factor and produce a jpeg histogram like so: fnc <- function(x){ x <-
2011 Jun 16
3
Multiple (7) Y axes?
People, I want to create seven plots on the one graph - each with it's own Y axis and scale - I want the plots overlaid because it is the shape of the graphs that I want to compare, not so much the values. I have found examples where people show how to put two Y axes on the left of the plot but I couldn't find examples of any more than that - is it possible? Thanks, Phil. --
2006 Jul 19
0
C, PHP, RoR Programmer position in Sydney
People, I am in a hurry to fill a programmer/developer position for an insurance company in Sydney, Australia. Since we have started the process of looking at Rails as a future development environment I thought I might be able to find an appropriate person from this list faster than going through the usual advertising/agencies route. If we can find someone appropriate I would like them to start