Displaying 20 results from an estimated 1200 matches similar to: "S4 class questions"
2009 Mar 19
1
zip.file.extract
Hello everyone,
Can anyone give me some hint/suggestion for unzipping a file in R? The
help file for "zip.file.extract" function seems to be difficult to
understand.
For example, the name of my zip file is "refGene.txt.gz", which is
located in "C:\Documents and Settings\Desktop\test1". I would like to
unzip this file to the same directory.
Here's
2006 Dec 20
2
\Sexpr in MikTex
Greetings, \Sexpr{} has worked on MikTex with earlier versions of R, I can not seem to get it to work with
R-2.4.0. I run Sweave with MikTex using the following statement in Run under Accessories.
latex -include-directory="C:\Program Files\R\R-2.4.0\share\texmf" "C:\Documents and Settings\Suzette\Desktop\MyFile\MyProgram.tex"
Any advice would be much appreciated,
Suzette
2008 Apr 08
2
Error: expected the collection operator c error pos 98 (error on line 1)
Greetings,
I implemented BRugs to run the EWOC model with a cohort size N=1. I output the simulation data using bugsdata(data), where data is the following list.
> data
$Dose
[1] 140
$Y
[1] 0
bugsdata(data) puts out the file data.txt as follows.
list(Dose=1.40000E+02, Y=0.00000E+00)
after I type the following line
modelData("data.txt")
2008 Jun 12
1
adding horizontal lines to a trellis plot
I would like to add two horizontal lines representing acceptible drug levels to a trellis plot.
I tried using abline and I get an error that "plot.new has not been called." See below.
xyplot(FK~WEEK|Event1/MRN, data=FKdat.o1)
abline(h=5)
abline(h=10)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Any help that can be provided
2007 May 29
1
Fw: hierarhical cluster analysis of groups of vectors
Hi Rafael,
What about multivariate logistic regression?
----- Forwarded Message ----
From: Rafael Duarte <rduarte@ipimar.pt>
To: Anders Malmendal <anders@chem.au.dk>
Cc: r-help@stat.math.ethz.ch
Sent: Tuesday, May 29, 2007 3:21:11 PM
Subject: Re: [R] hierarhical cluster analysis of groups of vectors
It seems that you have already groups defined.
Discriminant analysis would probably
2008 Mar 03
7
help for the first poster- a simple question
Hi, there,
I cannot get accurate value for calculation.
for example:
ld<-sqrt(1*0.05*0.95*0.05*0.95)
0.05*0.95-ld=-6.938894e-18
0.05*0.95-ld==0 is False.
I met this problem in my program, how can I handle it. Thanks.
xj.
2003 Oct 03
1
allocating memory in a C module
Hi,
I'm using a package that has a number of formats. I have C code to
parse these formats the results of which are generally integer arrays.
I would like to utilize these modules in R rather than writing R code to
read in these files (and also to learn about R extensions).
Essentially what I want is to do something like this:
load_tsets <- function(t,c,p)
.C( "c_load_tsets",
2010 Mar 18
2
Reshape dataframe according to ordered variables
Dear all,
I am still a R apprentice... Apologies for the basic question.
I am trying to reshape a dataframe based on the order of two variables
(a character variable and a numerical variable). To simplify it,
consider the following dataframe
> df<-data.frame(id=c("b","b","a","a","a"),ord=c(2,1,1,3,2))
id ord
1 b 2
2 b 1
3 a 1
4
2011 Sep 21
2
problem with function "Truncate" in package "distr"
Hello all,
Can someone tell me why the following mixture of two log-normal
distributions does not get truncated? What puzzles me is that the
function works almost always, but for certain combinations (like the
one below), it does not.
# R code example
library(distr)
mix<-UnivarMixingDistribution(Lnorm(3.2,0.5),Lnorm(5.4,0.6),mixCoeff=c(0.3,0.7))
2011 May 31
2
Latin Hypercube Sampling with a condition
Hello all,
I am trying to do a Latin Hypercube Sampling (LHS) to a 5-parameter
design matrix. I start as follows:
library(lhs)
p1<-randomLHS(1000, 5)
If I check the distribution of each parameter (column), they are
perfectly uniformly distributed (as expected).For example,
hist(p1[,1])
Now the hard (maybe strange) question. I want the combination of the
first three parameters to sum up to
2006 Dec 09
2
Filtering a data frame by regular expression
Hello,
I am having difficulty filtering a data frame.
I would like to take all the rows of a data frame where column A contains
the regular expression "UTI" (or some other regex). Here's what I've got:
utiRE <- function (avector) {
occurs <- c()
r1 <- "UTI"
for (x in avector) {
if (!is.na(grep(r1,x,perl=TRUE))) {
occurs <- c(occurs, TRUE)
} else {
occurs
2010 Nov 04
1
removing indexing
R-help,
I was wondering how to remove indexing from an output, e.g.,
> aVector<-1:10
> aVector
[1] 1 2 3 4 5 6 7 8 9 10
> someFunction(aVector)
1 2 3 4 5 6 7 8 9 10
Thanks in advance
[[alternative HTML version deleted]]
2006 Dec 21
1
: newbie estimating survival curve w/ survfit for coxph
I am wondering how to estimate the survival curve for a particular case(s)
given a coxph model
using this example code:
#fit a cox proportional hazards model and plot the
#predicted survival curve
fit <- coxph(
Surv(futime,fustat)~resid.ds+strata(rx)+ecog.ps+age,data=ovarian[1:23,])
z <- survfit(fit,newdata=ovarian[24:26,],individual=F)
zs <- z$surv
zt <-
2009 Mar 20
1
vfs full_audit panic
Folks,
I tried using full_audit on Samba 3.0.28 by putting the following
lines on smb.conf (global section):
vfs objects = full_audit
full_audit:facility = LOCAL2
full_audit:priority = WARN
full_audit:prefix = %u|%m|%S
full_audit:success = rename rmdir unlink write
full_audit:failure = none
My log says:
Dec 29 13:57:07 lua smbd_audit: [2008/12/29 13:57:07, 0]
lib/fault.c:fault_report(45)
Dec
2010 Mar 19
2
Sequence of ordered variable to add as column
Hello all,
As an example, consider the following dataframe
> df<-data.frame(id=c("b","b","a","a","a"),ord=c(2,1,1,3,2))
> dates<-as.Date(c("02/27/92", "02/27/92", "01/14/92", "02/28/92", "02/01/92"),"%m/%d/%y")
> df$dates<-dates
which was ordered with
>
2008 Feb 27
2
page_count x number_of_copies
Hi all!
I have a samba print server which stores information about each job. To
accomplish this, I have set 'printing = sysv' so I can use print command.
Print command passes to a script some info including '%c' (page_count).
The problem is that if someone sends more than one copy of the document,
%c doesn't tell me so.
It means that %c tells exactly the number of pages sent
2011 Feb 24
1
extract printed value from a function
Hello all,
This shouldn't be difficult, but I am not able to extract a printed
value from a function and assign it to an object.
In my case,
> library(DAAG)
> twotPermutation(c(2,3,4),c(3,6,5),plotit=F)
[1] 0.298
I would like to assign this result to an object.
Thanks,
Duarte
2020 Jun 30
1
Re: plug pre-created tap devices to libvirt guests
On Tue, Jun 30, 2020 at 12:59:03PM +0200, Miguel Duarte de Mora Barroso wrote:
> On Mon, Apr 6, 2020 at 4:03 PM Laine Stump <lstump@redhat.com> wrote:
> >
> > On 4/6/20 9:54 AM, Daniel P. Berrangé wrote:
> > > On Mon, Apr 06, 2020 at 03:47:01PM +0200, Miguel Duarte de Mora Barroso wrote:
> > >> Hi all,
> > >>
> > >> I'm aware
2006 Mar 29
1
Duplex printer + samba + cups
Gentleman,
In one of my slackware servers I put samba acting as a printer server
connected to a Hewlett-Packard 2420D (D stands for duplex).
In CUPS I'm using the 'raw' driver. So I let the clients to perform the
driver stuff.
On samba, I followed the procedures described on
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#inst-rpc
to make
2010 Aug 23
2
Make a transfer for external line.
Hi all,
We have an asterisk version v1.6.1.20 with a TDM400 board (2 FXS and 2
FXO).
We want to do a transfer "blind" and "attended" from a line external
connected to one FXO.
We have made configuration, and transfers from internal lines (FXS) work
fine but from (FXO) not.
We have made 2 test, one work fine from FXS and the other form FXO no.
Test 1, work fine:
1) A