Displaying 20 results from an estimated 100 matches similar to: "Trouble passing arrays to C code"
2009 Aug 28
1
Calling C funtion from R help Needed
Hello Forum,
I'm calling C function from R.It is a small sample trial program. The C function will accept a character and a integer and print them.
It is printing some special character instead of input character. Below are the C function, Wrapper code ,R code and R output.
Please help me in this issue
Thank you in advance
C function (Name : checkstr.c)
#include<stdio.h>
int
2009 Sep 11
1
call Fortran from R
Dear R users,
I have to call fortran program from within R (R 2.8.1 on ubuntu 8.10
machine).
Suppose I have a fortran code like this (this is only a toy model, my
working model is far more complex, but input/output is similar)
DOUBLE PRECISION FUNCTION model(times, alfa, beta)
DOUBLE PRECISION alfa, beta, times
model=beta*sin(times)+alfa*cos(times)
END FUNCTION
which
2012 Oct 20
1
Trouble returning 2D array into R from Fortran
Hello,
I have been trying to use a collection of Fortran subroutines to return a 2D
array of calculated values to my R code, calling a Fortran wrapper
subroutine from R. I've done this successfully before with C & C++ code.
The Fortran wrapper subroutine which is to be called by R takes a set of
input arguments & then should return an array of 2 columns & the specified
number of
2008 Feb 14
0
passing R array to Fortran subroutine
Hello,
I am trying to run a piece of Fortran code from R, and I am having trouble passing an array to the fortran subroutine. My attempts to pass an array into the fortran are producing memory errors, and I cannot find an example that performs the task. I have looked at "Writing R Extensions", and understand in concept what needs to happen, but all the examples are written in C.
2016 Apr 08
2
Adding Two-Headed Arrow in map legend
I am trying to draw maps for the world using:
library(rworldmap)
library(maptools)
library(RColorBrewer)
tmp2<- dput(head(pece,10))
structure(list(iso3 = c("AUS", "AUT", "BEL", "CAN", "CHE", "CHL",
"CZE", "DEU", "DNK", "ESP"), eps_score = c(0.877343773841858,
2.68984365463257,
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
Hi Miluji,
Try this:
arrows(-100,-140,100,-140,code=3)
Jim
On Fri, Apr 8, 2016 at 10:24 PM, Miluji Sb <milujisb at gmail.com> wrote:
> I am trying to draw maps for the world using:
>
> library(rworldmap)
> library(maptools)
> library(RColorBrewer)
>
>
> tmp2<- dput(head(pece,10))
> structure(list(iso3 = c("AUS", "AUT", "BEL",
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
Forgot to copy the list
Dear Jim,
Thank you for your reply. I must be doing something wrong, If this is my
command to plot a map of Europe:
eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
Score - Europe",colourPalette=colourPalette,
catMethod="fixedWidth", missingCountryCol =
"white",
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
> On Apr 9, 2016, at 8:13 AM, Miluji Sb <milujisb at gmail.com> wrote:
>
> Forgot to copy the list
>
> Dear Jim,
>
> Thank you for your reply. I must be doing something wrong, If this is my
> command to plot a map of Europe:
>
> eps_europe <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
> Score -
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
Dear David,
Thank you for your answer. Sorry for the embarrassing mistake. However,
even with when I generate a map for the whole world using:
eps <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS
Score",colourPalette=colourPalette,
catMethod="fixedWidth", missingCountryCol = "white",
addLegend=FALSE)
And then use:
2016 Apr 09
2
Adding Two-Headed Arrow in map legend
> On Apr 9, 2016, at 11:18 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>
>
>> On Apr 9, 2016, at 10:46 AM, Miluji Sb <milujisb at gmail.com> wrote:
>>
>> Dear David,
>>
>> Thank you for your answer. Sorry for the embarrassing mistake. However, even with when I generate a map for the whole world using:
>>
>> eps <-
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
Hello David,
This is exactly what I want but I still can't get the arrows. R and R
studio is updated. Thanks again!
Sincerely,
Milu
On Sat, Apr 9, 2016 at 10:29 PM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
> > On Apr 9, 2016, at 1:27 PM, David Winsemius <dwinsemius at comcast.net>
> wrote:
> >
> >
> >> On Apr 9, 2016, at 11:18 AM,
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
> On Apr 9, 2016, at 10:46 AM, Miluji Sb <milujisb at gmail.com> wrote:
>
> Dear David,
>
> Thank you for your answer. Sorry for the embarrassing mistake. However, even with when I generate a map for the whole world using:
>
> eps <- mapCountryData(n, nameColumnToPlot="eps_score", mapTitle="EPS Score",colourPalette=colourPalette,
>
2016 Apr 10
2
Adding Two-Headed Arrow in map legend
Dear David,
The device was the issue. The quartz() device works fine but pdf() does
not. Now I just need to figure out the limits for map for Europe. Thanks
for all your help and patience.
Sincerely,
Milu
On Sun, Apr 10, 2016 at 7:10 PM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
> > On Apr 10, 2016, at 4:12 AM, Miluji Sb <milujisb at gmail.com> wrote:
> >
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
> On Apr 10, 2016, at 4:12 AM, Miluji Sb <milujisb at gmail.com> wrote:
>
> Hello David,
>
> This is exactly what I want but I still can't get the arrows. R and R studio is updated. Thanks again!
I didn't try it in Rstudio until just now (and I don't remember that you ever mentioned RStudio as a possible issue.) The plotting I see in the default graphics Rstudio
2016 Apr 09
0
Adding Two-Headed Arrow in map legend
> On Apr 9, 2016, at 1:27 PM, David Winsemius <dwinsemius at comcast.net> wrote:
>
>
>> On Apr 9, 2016, at 11:18 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>>
>>
>>> On Apr 9, 2016, at 10:46 AM, Miluji Sb <milujisb at gmail.com> wrote:
>>>
>>> Dear David,
>>>
>>> Thank you for your answer.
2016 Apr 10
0
Adding Two-Headed Arrow in map legend
> On Apr 10, 2016, at 1:45 PM, Miluji Sb <milujisb at gmail.com> wrote:
>
> Dear David,
>
> The device was the issue. The quartz() device works fine but pdf() does not. Now I just need to figure out the limits for map for Europe. Thanks for all your help and patience.
After plotting a map of Europe with base graphics the coordinates of the lower-left and upper-right
2009 Sep 11
3
For sending my R package as part of R-project
To Whom It May Concern:
I have an R package and want to put this package be part of R-project and available to anyone who is interested in.
The R package is created for my paper, titled "Acceptance Sampling Plans from Truncated Life Tests Based on the Birnbaum-Saunders Distribution for Percentiles". The paper has been accepted by Communications in Statistics: Simulation and
2016 Apr 11
2
Adding Two-Headed Arrow in map legend
Dear David,
Thank you very much for your replies! I didn't know about par('usr').
I get different coordinates though:
[1] -19.75966 54.75966 33.60000 71.40000
But the arrow is not at the bottom of the map. I will keep playing with
this. Thanks again!
Sincerely,
Milu
On Mon, Apr 11, 2016 at 12:00 AM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
>
> >
2007 Mar 19
1
ACT! 6.0 under Wine
Ok, here is my setup. I'm using Ubuntu 6.10 - Edgy. I have wine
successfully installed and configured on my computer. I can run
e-Sword (a great Bible Program) under wine very well! I have
successfully installed ACT! 6.0 on my computer. When I run it
everything comes up right until I try and open a database, and it hangs
Here is my post from the Ubuntu forums: I hope someone here can
2006 Nov 24
1
Re : View code of function
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/20061124/c670126c/attachment.pl