Displaying 20 results from an estimated 300 matches similar to: "bad variable names when printing a data frame containing (PR#10732)"
2008 Feb 09
1
bad variable names when printing a data frame containing a matrix (PR#10730)
library(glmpath)
data(heart.data)
# heart.data is a list, $y a vector, $x a matrix
data <- data.frame(x=I(heart.data$x), y = heart.data$y)
> data[1:2,]
x.1 x.2 x.3 x.4 x.5 x.6 x.7 x.8 x.9 y
1 160 12 5.73 23.11 1 49 25.3 97.2 52 1
2 144 0.01 4.41 28.61 0 55 28.87 2.06 63 1
> dimnames(heart.data$x)[[2]]
[1] "sbp"
2007 Aug 22
1
recursive copy
Hi all,
I''m new to puppet (coming from cfengine). I have a question concerning recursive copy. We
have about 20 different types of desktop PC installations (typeA, typeB, ...). Each type
has about 10-40 different config files. What I would like to do:
I have a file server with the following structure:
/dist/typeA
/dist/typeB
/dist/typeC
...
Inside /dist/typeA the config files have
2009 Oct 04
1
[LLVMdev] typedef struct
Hi Duncan,
Actually what I am doing is matching up each Type with its corresponding debug
info. I have checked that the debug info generated is consistent (i.e., typeA
is recorded as a derived type from composite type typeB in my example), but I
have seen cases where the name recorded in the Type object is typeA and
sometimes typeB, that's why I am confused.
Alvin
Duncan Sands wrote:
2009 Oct 02
2
[LLVMdev] typedef struct
Hi all,
If I have a C struct declaration like this:
typedef struct typeA {...} typeB;
In the type symbol table generated should it contain an entry for struct.typeA
or struct.typeB? I seem to have seen both cases using the same llvm toolchain
so I just wonder if I have done something wrong.
Thanks,
Alvin
2009 Oct 03
0
[LLVMdev] typedef struct
Hi Alvin,
> If I have a C struct declaration like this:
>
> typedef struct typeA {...} typeB;
>
> In the type symbol table generated should it contain an entry for struct.typeA
> or struct.typeB? I seem to have seen both cases using the same llvm toolchain
> so I just wonder if I have done something wrong.
it doesn't matter what the name is since it has no effect on
2010 Nov 08
0
How to represent factor levels & ordiellipses using different colors?
Dear Jari Oksanen,
I am Trinadh Kumar, a student of Biotechnology from Texas Tech University.
I have a question for you regarding constrained ordination graphs.
I had previously plotted constrained ordination graphs using distance based
redundancy analysis for species data on patients.
The species matrix consists of 70 patients and 274 species of bacteria.The
metadata matrix consists of 10
2010 Jul 03
2
logistic regression - glm() - example in Dalgaard's book ISwR
Dear R-list members,
I would like to pose a question about the use and results
of the glm() function for logistic regression calculations.
The question is based on an example provided on p. 229
in P. Dalgaard, Introductory Statistics with R, 2nd. edition,
Springer, 2008. By means of this example, I was trying to
practice the different ways of entering data in glm().
In his book, Dalgaard
2009 Sep 18
5
Using variables in virtual resources
Hi.
I''ve defined a virtual user "kenneth", and depending on a variable in the
node definiton I''d like to add the users to different groups. Consider this
example:
###### Code start
node "server.example.com" {
$server_type = "typeA"
realize User[kenneth]
}
@user {"kenneth":
ensure => present,
uid => 1000,
2009 Jan 19
0
Error while adding legends to xyplot
Dear All:
Greetings!
I am able to produce an "xyplot" in R; But I am not able to put multiple
legends on it! So for that matter, I have saved the "xyplot" and reproduced
the same using the simple "plot" option. Then using the "legend" option I
successfully placed the require text and its corresponding value over it.
Now, when I try to copy it as a
2013 Feb 01
2
Help calculating p-values
I am trying to figure out how to calculate p-values for the difference in
prevalence of a risk factor between men and women. For example, I find that
277 out of 710 male patients and 125 out of 305 female patients have
obesity, what is the p-value for their difference?
If there is a package that can calculate this in bulk, I would appreciate
to learn about it!
Thank you
[[alternative HTML
2007 Oct 29
1
(PR#10379) Re: x11(....) kills R without DISPLAY
Hin-Tak Leung wrote:
> Peter Dalgaard wrote:
> <snipped>
>> You need x11() with a valid display to trigger the bug:
>>
>> [pd at titmouse2 BUILD]$ ssh -Y 192.168.1.10
>> pd at 192.168.1.10's password:
>> Last login: Sat Oct 27 02:40:16 2007 from 192.168.1.11
>> [pd at janus ~]$ echo $DISPLAY
>> localhost:10.0
>> [pd at janus ~]$
2004 May 07
1
x-axis tick mark labels running vertically
I'm plotting obesity rates (y-axis) vs Public Health Unit (x-axis) for the
province of Ontario and would like to have the Public Health Unit names appear
vertically rather than the default, horizontally.
I'm actually using the 'barplot2' function in the {gregmisc} library ... I
haven't been able to find a solution in either the barplot2 options or the
general plotting
2004 Jul 30
1
FWER + multiple linear models
Could someone kindly help me with the following question:
when I analyze microarray data I need to fit multiple linear regression
models between genes and clinical patameters followed by estimation of
the p-values.
What's the solution to implement Westfall and Young's algorithm +
resampling into the scheme:
lm -> stepAIC -> anova.
Actually permcor works fine for me in the case of
2007 Jun 18
1
how to obtain the OR and 95%CI with 1 SD change of a continue variable
Dear all,
How to obtain the odds ratio (OR) and 95% confidence interval (CI) with
1 standard deviation (SD) change of a continuous variable in logistic
regression?
for example, to investigate the risk of obesity for stroke. I choose the
happening of stroke (positive) as the dependent variable, and waist
circumference as an independent variable. Then I wanna to obtain the OR
and 95% CI with
2007 Oct 27
1
(PR#10379) Re: x11(....) kills R without DISPLAY
Hin-Tak Leung wrote:
> Peter Dalgaard wrote:
>> brechbuehler at gmail.com wrote:
>>> Full_Name: Christian Brechbuehler
>>> Version: 2.4.1, 2.5.1, OS: Ubuntu GNU/Linux
>>> Submission from: (NULL) (24.61.47.236)
>>>
>>>
> <snipped>
>>> Example (start R without DISPLAY from bash):
>>> % DISPLAY=3D R
>>> >
2008 Feb 08
0
xspline(..., draw=FALSE) fails if there is no open device (PR#10728)
jari.oksanen at oulu.fi wrote:
> Full_Name: Jari Oksanen
> Version: 2.6.2 RC (2008-02-07 r44369)
> OS: Linux
> Submission from: (NULL) (130.231.102.145)
>
>
> Even if function xspline() is called with argument draw=3DFALSE, it req=
uires a
> graphics device (that it won't use since it was draw=3DFALSE). I run in=
to this
> because I intended to use xspline within a
2006 Sep 20
1
Stats question - cox proportional hazards adjustments
Hi useRs,
Many studies of the link between red meat and colorectal cancer use
Cox proportional
hazards with (among other things) a gender covariate.
If it is true that men eat more red meat, drink more alcohol and smoke more than
women, and if it is also true that alcohol and tobacco are known risk
factors then why does
it make sense to "adjust" for gender? I would think that in this
2002 Aug 13
1
interaction.plot() legend too narrow when mfcol > 2 (PR#1899)
Here is an example:
The legends (mainly the factor level names) are cut off on the
right. Somehow the internal calculation which computes
horizontal space for the legend is not flexible enough.
## Call a new graphics window {with default par()s !}:
get(getOption("device"))()
par(mfrow = c(2,2))
## part of example(interaction.plot) _improved_ using with() :
data(OrchardSprays)
2010 Oct 07
2
Truncating leading zeros in strings
I am new to R. I thing this will be simple, but I don't yet know my way
around.
I am generating character strings from the system clock that represent
integers, and I want to convert them to integer values. Strtoi works
well, except when there are leading zeros on the string. Could anyone
suggest a way to remove those leading zeros?
Thanks
Paul
--
E. Paul Wileyto, Ph.D.
2007 Nov 01
0
daylight saving / time zone issues with as.POSIXlt/as.POSIXct (PR#10393)
tplate at acm.org wrote:
> Running under Windows XP 64 bit, as.POSIXlt()/as.POSIXct() seem
> to think that US time zones (EST5EDT, MST7MDT) switched from daylight
> savings back to standard time on Oct 28, 2007, whereas the switch
> is actually on Sun Nov 04, 2007.
>
> =20
Not Our Problem. (This sort of thing never is. We are wholly dependent=20
on the OS for this information).