<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://permalink.gmane.org/gmane.comp.lang.r.general">
    <title>gmane.comp.lang.r.general</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133305"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133304"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133303"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133302"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133301"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133300"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133299"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133298"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133297"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133296"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133295"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133294"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133293"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133292"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133291"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133290"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133289"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133288"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133287"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/133286"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133305">
    <title>Re: Help with maps</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133305</link>
    <description>
aha!, thanks for this.
Avram

On Dec 2, 2008, at 5:38 PM, Ray Brownrigg wrote:


______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>Avram Aelony</dc:creator>
    <dc:date>2008-12-04T03:50:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133304">
    <title>Re: Help with reading code</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133304</link>
    <description>Hi Dana

[mailto:r-help-bounces&lt; at &gt;r-project.org]
the
zero,
*
"log0".
after this.

The command above sets a variable to "exclude" with.
Any observation with weight equal to zero will get excluded.
excl will have value TRUE for all observations with weight 0.

zero

so the above chunk keeps only the residuals and weights
for the observations with non-zero weights


so now there are no more observations with w == 0 in the above equation




 

Steven McKinney

Statistician
Molecular Oncology and Breast Cancer Program
British Columbia Cancer Research Centre

email: smckinney&lt; at &gt;bccrc.ca
tel: 604-675-8000 x7561

BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C. 
V5Z 1L3

Canada

______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>Steven McKinney</dc:creator>
    <dc:date>2008-12-04T03:50:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133303">
    <title>Help with reading code</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133303</link>
    <description>
I would like to give out the equation for calculating the maximum likelihood.
Below is the code, but I still have problems with it.  After I read the
code, I found there are two cases for "w(weights)".  If  "w" is not zero,
then the equation is given as "val &lt;- 0.5 * (sum(log(w)) - N * (log(2 * pi)
+ 1 - log(N) + 
        log(sum(w * res^2))))". However, if "w" is zero, then I do not know
what equation it should be since it does not make any sense for "log0". Hope
someone can help me to figure this out. Thanks!




function (object, REML = FALSE, ...) 
{
    res &lt;- object$residuals
    p &lt;- object$rank
    N &lt;- length(res)
    if (is.null(w &lt;- object$weights)) {
        w &lt;- rep.int(1, N)
    }
    else {
        excl &lt;- w == 0  #####I can not understand the following lines after
this. 
        if (any(excl)) {
            res &lt;- res[!excl]
            N &lt;- length(res)
            w &lt;- w[!excl]        }
    }
    N0 &lt;- N
    if (REML) 
        N &lt;- N - p
    val &lt;- 0.5 * (sum(log(w)) - N * (log(2 * pi) + 1 </description>
    <dc:creator>Dana77</dc:creator>
    <dc:date>2008-12-03T23:24:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133302">
    <title>Re: Static random numbers</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133302</link>
    <description>
See ?set.seed, which will allow you to specify the seed for the RNG, so
that you can reproduce the same sequence again in the future:

  set.seed(1)
  rn1 &lt;- as.zoo(rnorm(1000))

HTH,

Marc Schwartz


______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>Marc Schwartz</dc:creator>
    <dc:date>2008-12-04T00:29:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133301">
    <title>Static random numbers</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133301</link>
    <description>Hello,

can anybody help me out saving random numbers? What I am doing is to 
generate a series of random numbers and keep it as a zoo object.

z &lt;- 1000

rn1 &lt;- as.zoo(rnorm(z))

The random numbers will be analyzed and described in a LaTeX document, 
so I have to keep them static somehow. The fact that they are kept
as a zoo object should not be of too much concern here. Thanks in advance.

Regards

Bastian Offermann


______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>Bastian Offermann</dc:creator>
    <dc:date>2008-12-04T00:10:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133300">
    <title>Re: reading version 9 SAS datasets in R</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133300</link>
    <description>
Sorry I screwed that up.  See 
http://biostat.mc.vanderbilt.edu/SASexportHowto for the correct 
approach, under the heading "If You Have Access to SAS".

Frank



</description>
    <dc:creator>Frank E Harrell Jr</dc:creator>
    <dc:date>2008-12-03T23:39:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133299">
    <title>Random Forest weighting</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133299</link>
    <description>Folks,

I have a query around weighting in Random Forest (RF). I know that several
earlier emails in this group have raised this issue, but I did not find an
answer to my query.

I am working on a dataset (dataset1) that consists of 4 million records that
can be reduced to a dataset (dataset2) of approximately 1500 unique records
with frequency counts that add up to the 4 million records number as above.
Because of size issues, I cannot work with dataset1 in R and therefore, I am
working with dataset2 .

Each record consists of whether or not a patient chose a particular drug
based on 14 comorbidity (Yes / No) variables; I am using RF to understand
the comorbidity drivers of drug adoption (yes/no) classification.

At full dataset level (dataset1), the drug adoption incidence is ~11%. At
the reduced dataset dataset2 level, the drug adoption incidence increases to
~38%.

My question is that, if am using the reduced dataset (dataset2), how should
I inform RF that the adoption incidence at the full dataset level</description>
    <dc:creator>Raghu Naik</dc:creator>
    <dc:date>2008-12-03T22:24:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133298">
    <title>Re: reading version 9 SAS datasets in R</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133298</link>
    <description>
Try

FILENAME transp SASV5XPT 'D:\CES Analysis\Data\fadata.xpt';

Frank



</description>
    <dc:creator>Frank E Harrell Jr</dc:creator>
    <dc:date>2008-12-03T22:51:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133297">
    <title>Re: reading version 9 SAS datasets in R</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133297</link>
    <description>
Jude,

Since it appears that you have access to SAS, I would look at using the sas.get() function in the Hmisc package.  While the function appears to still be broken in the Windows version, there is an easy fix that has been posted to R-help in the past.  If you want to try this, you can search the R-help archives for posts on sas.get or you can email me off-list and I will send you the fix with instructions.  This will avoid any v6 limitations.

Hope this is helpful,

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA  98504-5204
 
 

______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>Nordlund, Dan (DSHS/RDA</dc:creator>
    <dc:date>2008-12-03T22:11:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133296">
    <title>applying a function to another function</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133296</link>
    <description>Hello,
I did a function (sec_conop) whose arguments are syndic,
well and wellconop. 
 
sec_conop(syndic='01syndic.txt',well='well-1.csv',wellconop='well-1.dat');closeAllConnections()
 
This function takes “well” and “syndic”, matching between
them and then it does some transformations. The result is exported to
“wellconop”.
I will apply this function to one hundred different “wells”.
Therefore, for each well I use, the “wellconop argument will change too.
For intance if “well” is now well-2.csv, the function will be 

sec_conop(syndic='01syndic.txt',well='well-2.csv',wellconop='well-2.dat');closeAllConnections()
 
I am trying to apply this function automatically to all
“well” I have, but I do not find the way.
The last I tried, for three different “wells”, was :

wells&lt;-data.frame(funct=rep('sec_conop(',3),syndic=c('01syndic.txt','01syndic.txt','01syndic.txt'),well=c('well-1.csv','well-2.csv','well-3-1.csv'),wellconop=c('well-1.dat','well-2.dat','well-3.dat'))
 
funct_3wells&lt;-pa</description>
    <dc:creator>Carlos Cuartas</dc:creator>
    <dc:date>2008-12-03T20:51:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133295">
    <title>reading version 9 SAS datasets in R</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133295</link>
    <description>Hi,

 

I am trying to read a SAS version 9.1.3 SAS dataset into R (to preserve
the SAS labels), but am unable to do so (I have read in a CSV version).
I first created a transport file using the SAS code:

 

libname ces2 'D:\CES Analysis\Data';

filename transp 'D:\CES Analysis\Data\fadata.xpt';

 

/* create a transport file - R cannot read file created by proc cport */

proc cport data=ces2.fadata file=transp;

run;

 

I then tried to read it in R using:

 




Error in lookup.xport(file) : file not in SAS transfer format

 

Next I tried using the libname statement and the xport engine to create
a transport file. The problem with this method is that variable names
cannot be more than 8 characters as this method creates a SAS version 6
transport file. 

 

libname to_r xport 'D:\CES Analysis\Data\fadata2.xpt';

 

data to_r.fadata2;

  set ces2.fadata;

run;

 

But I get an error message in the SAS log:

 

493  libname to_r xport 'D:\CES Analysis\Data\fadata2.xpt';

NOTE: Libref TO_R was successfully a</description>
    <dc:creator>jude.ryan&lt; at &gt;ubs.com</dc:creator>
    <dc:date>2008-12-03T21:40:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133294">
    <title>Re: Strplit code</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133294</link>
    <description>Dear Brian (and original poster),

My apologies -- I didn't notice the original posting.

By coincidence, I have a version of strsplit() that I've used to
illustrate recursion:

Strsplit &lt;- function(x, split){
    if (length(x) &gt; 1) {
        return(lapply(x, Strsplit, split))  # vectorization
        }
    result &lt;- character(0)
    if (nchar(x) == 0) return(result)
    posn &lt;- regexpr(split, x)
    if (posn &lt;= 0) return(x)
    c(result, substring(x, 1, posn - 1), 
        Recall(substring(x, posn+1, nchar(x)), split))  # recursion
    }

Illustration:

+              "Whether t'is nobler,in the mind",
+              "to suffer the slings:and arrows:of outrageous fortune",
+              "or to take arms;against;a sea of troubles")
     
[[1]]
[1] "To be"                "or not to be"         "that is the
question"

[[2]]
[1] "Whether t'is nobler" "in the mind"        

[[3]]
[1] "to suffer the slings"  "and arrows"            "of outrageous
fortune"

[[4]]
[1] "or to take arms"   "against"           "a sea</description>
    <dc:creator>John Fox</dc:creator>
    <dc:date>2008-12-03T21:04:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133293">
    <title>Re: Strplit code</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133293</link>
    <description>

With difficulty, as it is almost entirely implemented in C code (in 
src/main/character.c and src/main/regex.c, as well as the PCRE library)..

It is not something I would undertake lightly (and I am the 
author/maintainer of most of that code).

</description>
    <dc:creator>Prof Brian Ripley</dc:creator>
    <dc:date>2008-12-03T20:46:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133292">
    <title>Re: changing colnames in dataframes</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133292</link>
    <description>See the help page.  You name the arguments, e.g.

JJ &lt;- data.frame( gender= c( as.character(rep( gender,3))) ,
                   J.value -c( F76 ,6-F83, F90) )

The help says

Arguments:

      ...: these arguments are of either the form 'value' or 'tag =
           value'.  Component names are created based on the tag (if
           present) or the deparsed argument itself.


On Wed, 3 Dec 2008, Wolfgang Lindner wrote:


</description>
    <dc:creator>Prof Brian Ripley</dc:creator>
    <dc:date>2008-12-03T20:41:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133291">
    <title>Re: how do I eliminate excess levels in lattice contourplot key/ legend?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133291</link>
    <description>
contourplot(z ~ X1 * X2, data = g, region = TRUE, at = seq(0, 1, length = 6))

-Deepayan

______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>Deepayan Sarkar</dc:creator>
    <dc:date>2008-12-03T20:37:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133290">
    <title>Re: date operations</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133290</link>
    <description>______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
</description>
    <dc:creator>Gavin Simpson</dc:creator>
    <dc:date>2008-12-03T20:12:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133289">
    <title>Strplit code</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133289</link>
    <description>
Dear R-users,

The strsplit function does not exist in S-plus and I would like to use it. How
could I reproduce the function in Splus or access to its source code?

Thank you in advance,

Sebastien

______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>pomchip&lt; at &gt;free.fr</dc:creator>
    <dc:date>2008-12-03T19:52:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133288">
    <title>Hmisc latex() and Rcmdr numSummary() percentage issues</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133288</link>
    <description>Dear R users,
I have issues regarding latex() from Hmisc and numSummary() from
Rcmdr. Here's an example:

The resulting LaTeX code (see below) is not compilable, because of the
`%' signs present in the column headers, and that are not escaped by
latex() (contrary to the behaviour of xtable()). I can solve the issue
manually by escaping the percentage signs `\%'.

Would there be a way to automatise this?
Thank you,
Liviu


######## Uncompilable LaTeX ########
% latex.default(as.table(.numSummary$table), cdec = c(2), file = "",
   title = "")
%
\begin{table}[!tbp]
 \begin{center}
 \begin{tabular}{lrrrrrrr}\hline\hline
\multicolumn{1}{l}{}&amp;
\multicolumn{1}{c}{mean}&amp;
\multicolumn{1}{c}{sd}&amp;
\multicolumn{1}{c}{0%}&amp;
\multicolumn{1}{c}{25%}&amp;
\multicolumn{1}{c}{50%}&amp;
\multicolumn{1}{c}{75%}&amp;
\multicolumn{1}{c}{100%}
\\ \hline
&amp;$31.37$&amp;$20.41$&amp;$10.6$&amp;$16.9$&amp;$23.7$&amp;$39$&amp;$84.5$\\
\hline
\end{tabular}

\end{center}

\end{table}
######## End of LaTeX ########


######## Compilable LaTeX ########
% latex.default(as.table(</description>
    <dc:creator>Liviu Andronic</dc:creator>
    <dc:date>2008-12-03T19:44:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133287">
    <title>changing colnames in dataframes</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133287</link>
    <description>dear all,

I'm building new dataframes from bigger one's using e.g. columns F76, F83,
F90:

JJ&lt;-data.frame( c( as.character(rep( gender,3))) , c( F76,6- F83, F90) )

Looking into JJ one has:

    c.as.character.rep.gender..8...
c.6...F73..F78..F79..F82..6...F84..F94..F106..F109
1                                     w                   2
2                                     w                   3
3                                     m                  1
etc.

Instead of the automatic colnames 'c.as.character.rep.gender..8' I like to
have the colnames 'gender' and 'J.value'.
I tried levels, labels etc but without success.

OK, I can fix(FF) manually, but this is bad, because it has to be done again
and again ..
OK, I can do

gender.J&lt;-c( as.character(rep( gender,3)))
Jvalue&lt;-c( F76,6- F83, F90)
JJ&lt;-data.frame(gender.J, J.value)

but this is not optimal because 'gender' is depending on rep(.., n) and I
have many dataframes KK, LL, .. using 'gender' with different size.

Question: is it possible to do something</description>
    <dc:creator>Wolfgang Lindner</dc:creator>
    <dc:date>2008-12-03T19:30:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133286">
    <title>Re: date operations</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133286</link>
    <description>
In fact what it says is that x may be numeric OR difftime.  Also the
above does not explain it in any case because:

[1] "2009-02-15"

Time difference of 14290 days
Warning message:
Incompatible methods ("Ops.difftime", "+.Date") for "+"


His question was how to avoid using as.numeric.


______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

</description>
    <dc:creator>Gabor Grothendieck</dc:creator>
    <dc:date>2008-12-03T19:13:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/133285">
    <title>Re: Function output difficulties</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/133285</link>
    <description>
It's not clear what you mean by "some parts of the function output".
The function output is whatever you nominate it to be, and can
include any selection of whatever was computed within the function.

For example:

  testfn &lt;- function(x){
    X &lt;- x^2 ; Y &lt;- cos(X) ; Z &lt;- (X + Y)/(1 + x)
    c(X,Z)
  }

  testfn(1.1)
# [1] 1.210000 0.744295

However, I suspect your case may be a bit more complicated than that!
If you were to post the function (or something like it), explaining
what you want it to return, and in what way it returns what you do
not want, it would be easier to help.

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) &lt;Ted.Harding&lt; at &gt;manchester.ac.uk&gt;
Fax-to-email: +44 (0)870 094 0861
Date: 03-Dec-08                                       Time: 19:03:29
------------------------------ XFMail ------------------------------

______________________________________________
R-help&lt; at &gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE</description>
    <dc:creator>Ted.Harding&lt; at &gt;manchester.ac.uk</dc:creator>
    <dc:date>2008-12-03T19:03:32</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.lang.r.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.r.general</link>
  </textinput>
</rdf:RDF>
