Displaying 20 results from an estimated 2000 matches similar to: "Seeing the definition of a function"
2002 Dec 09
2
R as a COM client - is it possible?
Dear all,
In S+, there are functions like
create.ole.object
call.ole.method
release.ole.object
for communicating with other programs which work as a COM server (on
Windows).
Is it possible to do something similar in R (I've studied the 'connections'
facilities, but they do not seem to work).
==========================================
S?ren H?jsgaard, PhD, Senior Scientist
2001 Aug 23
3
Reading SAS version 8 data into R
Hi,
SAS transport files created with the xport engine in SAS can be read using read.xport. However, the xport engine only works with SAS version 6, and consequently long variable names are not allowed...
Can anyone tell me how to get SAS data (ver 8) into R (easily)?
Thanks in advance
S?ren H?jsgaard
sorenh at agrsci.dk http://www.jbs.agrsci.dk/~sorenh
2007 Mar 23
2
concatenate 2 data.frames
Dear all,
I would like to know how can I concatenate 2 data.frames into a single one. Both data frames have the same number of columns and the same class type in each correspondent column. So what I want is to have a new data.frame where I have first the values from one data.frame and then the values from a second data.frame would came after in this new data.frame.
Thanks in advance.
Med
2005 Jun 13
1
Error in load(zfile, envir = envir) : input has been corrupted, with LF replaced by CR
I am trying to build a package binary, and get the message below. Can anyone point me to a solution to that problem.
Thanks in advance
S?ren
....
installing data files
installing man source files
installing indices
Error in load(zfile, envir = envir) : input has been corrupted, with LF replaced
by CR
Execution halted
make[2]: *** [indices] Error 1
make[1]: *** [all] Error 2
2005 Jul 12
10
Computer algebra in R - would that be an idea??
>From time to time people request symbolic computations beyond what D() and deriv() etc can provide. A brief look at the internet shows that there are many more or less developed computer algebra packages freely available. Therefore, I wondered if it would be an idea to try to 'integrate' one of these packages in R, which I guess can be done in more or less elegant ways... I do not know
2004 Feb 24
1
rstandard does not produce standardized residuals
Dear all,
the application of the function rstandard() in the base package
to a glm object does not produce residuals standardized to
have variance one:
the reason is that the deviance residuals are divided
by the dispersion estimate and not by the
square root of the estimate for the dispersion.
Should the function not be changed to produce residuals
with a variance about 1?
R 1.8.1 on
2007 Feb 23
2
Extracting a subset from a dataframe
Good day everyone,
Can anyone suggest an effective method to solve
the following problem:
I have 2 dataframes D1 and D2 as follows:
D1:
dates ws wc pwc
2005-10-19:12:00 10.8 80 81
2005-10-20:12:00 12.3 5 15
2005-10-21:15:00 12.3 3 15
2005-10-22:15:00 11.3 13 95
2005-10-23:12:00 12.3 13 2
2005-10-24:15:00 10.3 2 95
2005-10-25:15:00 10.3 2 2
D2:
2001 Oct 09
1
PROC MIXED user trying to use (n)lme...
Dear R-users
Coming from a proc mixed (SAS) background I am trying to get into
the use of (n)lme.
In this connection, I have some (presumably stupid) questions
which I am sure someone out there can answer:
1) With proc mixed it is easy to get a hold on the estimated
variance parameters as they can be put out into a SAS data set.
How do I do the same with lme-objects? For example, I can see the
2007 Jul 20
3
binned column in a data.frame
Dear all,
I would like to know how can I create a binned column in a data.frame. The output that I would like is something like this:
Start Binned_Start
1 0-5
2 0-5
6 5-10
8 5-10
13 10-15
...
Best regards
João Fadista
Ph.d. student
UNIVERSITY OF AARHUS
Faculty of Agricultural Sciences
Dept. of Genetics and Biotechnology
Blichers
2007 Jul 18
2
remove columns having a partial match name
Dear all,
I would like to know how can I retrieve a data.frame without the columns that have a partial match name. Let´s say that I have a data.frame with 200 columns and 100 of them have the name "StartX", with X being the unique part for each column name. I want to delete all columns that have the name starting with "Start". I´ve tried to do this but it doesn´t work:
>
2008 Apr 08
4
permutation test assumption?
Dear all,
Can I do a permutation test if the number of individuals in one group is much bigger than in the other group? I searched the literature but I didin´t find any assumption that refers to this subject for permutation tests.
Best regards
João Fadista
Ph.d. student
UNIVERSITY OF AARHUS
Faculty of Agricultural Sciences
Dept. of Genetics and Biotechnology
Blichers Allé 20, P.O.
2014 Jan 02
2
Installing RCurl -
Dear all,
I am trying to install RCurl (because I want to install devtools) and to do so I've been informed that I must install one of the packages
libcurl4-openssl-dev
libcurl4-nss-dev
No matter which one I install I get the following error from R:
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config...
2006 Feb 21
2
indexing within panels in xyplot
Dear R-helpers,
I need to show a linear fit through a subset of the data within each
combination of levels of two factors. So I prepared an xyplot with
different panels for each level of one of the factors, and different
symbols within each panel for the levels of the second factor. My problem
is selecting the subset of each combination through which the line should
be fit for subsequent
2004 Jul 13
2
confint.glm in a function
I can't get confint.glm to work from within a function. Consider
the following (using R 1.9.1, Windows 2000):
# FIRST: SOMETHING THAT WORKS FROM A COMMAND PROMPT
DF <- data.frame(y=.1, N=100)
(fit <- glm(y~1, family=binomial, data=DF,
weights=DF[,"N"]))
Call: glm(formula = y ~ 1, family = binomial, data = DF, weights =
DF[, "N"])
Coefficients:
2004 May 27
1
Crossed random effects in lme
Dear all,
In the SASmixed package there is an example of an analysis of a split-plot experiment. The model is
fm1Semi <- lme( resistance ~ ET * position, data = Semiconductor, random = ~ 1 | Grp)
where Grp in the Semiconductor dataset is defined as ET*Wafer. Is it possible to specify the grouping directly some way, e.g. like
fm1Semi <- lme( resistance ~ ET * position, data =
2011 Jun 06
1
Log file of building vignette in RCMD check
Hello,
I am trying to run "RCMD check" on a package. It performs OK, with the exception of a single warning:
* checking package vignettes in 'inst/doc' ... WARNING
Package vignette(s) without corresponding PDF:
AnnotationFuncsUserguide.Rnw
As I understand the problem, the vignette is not built. However, I have no problems in doing so manually.
How do I fix this problem? I
2011 Sep 14
4
Reading large, non-tabular files
Dear R-help,
I have a very large ascii data file, of which I only want to read in selected lines (e.g. on fourth of the lines); determining which lines depends on the lines content. So far, I have found two approaches for doing this in R; 1) Read the file line by line using a repeat-loop and save the result in a temporary file or a variable, and 2) Read the entire file and filter/reshape it using
2006 Jun 23
1
How to use mle or similar with integrate?
Hi
I have the following formula (I hope it is clear - if no, I can try to
do better the next time)
h(x, a, b) =
integral(0 to pi/2)
(
(
integral(D/sin(alpha) to Inf)
(
(
f(x, a, b)
)
dx
)
dalpha
)
and I want to do an mle with it.
I know how to use mle() and I also know about integrate(). My problem is
to give the parameter values a and b to the
2007 Oct 24
2
analytical solution to Sum of binominal distributed random numbers?
Frede Aakmann T?gersen wrote:
> Perhaps
>
> http://stinet.dtic.mil/cgi-bin/GetTRDoc?AD=ADA266969&Location=U2&doc=GetTRDoc.pdf
>
> is something that you can use?
Thanks a lot - that might help.
Rainer
>
>
>
> Best regards
>
> Frede Aakmann T?gersen
> Scientist
>
>
> UNIVERSITY OF AARHUS
> Faculty of Agricultural Sciences
> Dept.
2007 Sep 07
1
contourplot lines, text, and mtext
If I have a contourplot (in the lattice package) and I want to add
straight lines to it, how do I do this?
I see that there are llines() and lsegement() functions for lattice
plots, but they don't seem to do anything in this case:
library(lattice)
library(KernSmooth)
x=rnorm(10000)
y=x+rnorm(x,0,.5)
a=bkde2D(cbind(x,y),.7)
z=as.vector(a$fhat)
grid=expand.grid(x=a$x1,y=a$x2)
grid$z=z