Displaying 20 results from an estimated 3000 matches similar to: "Mutiple page trellis plots with relation = "free" or "sliced""
2003 Feb 01
2
Apparent parser problem (PR#2520)
Let me first admit: I am experiencing this bug on a precompiled binary
of R for windows, and I know these are not supported. I am not asking
for support, but I thought the R developers would want to know about
this.
# Define:
foo.page <- function(x) x
# Then,
foo.page("a")
# actually invokes the pager (!) on object named "a" (if one is
defined).
# same thing happens
2003 Feb 28
2
Lexical scoping question
Hello,
Could someone please tell me what I am thinking about incorrectly:
f <- function(y) {
g <- function(x) x + y
g
}
In the following, I get what I expect based on my understanding of
lexical scoping:
(f(1))(3) # 4
(f(2))(3) # 5
But now,
fs <- lapply(c(1, 2), f)
fs[[1]](3) # 5 (Why not 4 ?)
fs[[2]](3) # 5
Checking the environments of these functions, I see that
2003 Oct 27
2
[[<-.data.frame with POSIXt replacement (PR#4808)
Hi,
The following seems to be a bug introduced with version 1.8.0 (it worked
without error on my installation of version 1.7.0):
> test <- data.frame(time = I(c("2003-08-19:22:55:57")))
> test[["time"]] <- strptime(test[["time"]], format =
"%Y-%m-%d:%H:%M:%S")
Error in "[[<-.data.frame"(`*tmp*`, "time", value =
2003 Jan 13
2
summarizing dataframe
Hi Listers,
Surely, I just have a mental block and there is a more elegant way of
creating a summary count (other than extracing it from ftable). I''d like to
create a new data.frame containing counts of spell by loc ie have three
columns showing spell,loc,count. Below the data.frame...
Any help appreciated
Thanks Herry
spell loc
101 Parts 1
102 Overall 2
105 Parts 1
106
2003 Apr 29
1
Specifying search position for attached package
When I load an add-on package, is there any way to specify where it ends
up in the search path (as with the pos argument to attach())? From the
documentation for library(), this doesn't seem like an option.
(I know I can detach packages and then reload them in the order I want;
I'm looking for a less clumsy way.)
Thanks,
Jim
James A. Rogers, Ph.D. <rogers at cantatapharm.com>
2007 Feb 01
3
Lining up x-y datasets based on values of x
Hi,
I was wondering if there is a direct approach for lining up 2-column
matrices according to the values of the first column. An example and a
brute-force approach is given below:
x <- cbind(1:10, runif(10))
y <- cbind(5:14, runif(10))
z <- cbind((-4):5, runif(10))
xx <- seq( min(c(x[,1],y[,1],z[,1])), max(c(x[,1],y[,1],z[,1])), 1)
w <- cbind(xx, matrix(rep(0, 3*length(xx)),
2003 Sep 03
2
SNK-test
How can I perform a Student-Newman-Keuls-Test for multiple comparision of means in R?
(I did not manage to find any specific function in the libraries)
Jörg Peter Baresel
Technische Universität München
Institut für Ackerbau und INformatik im Pflanzenbau
D-85354 Freising
Lange Point 51
[[alternative HTML version deleted]]
2011 Jan 26
2
2 functions with same name - what to do to get the one I want
There seems to be 2 functions call ecdf...
http://lib.stat.cmu.edu/S/Harrell/help/Hmisc/html/ecdf.html
http://127.0.0.1:11885/library/stats/html/ecdf.html
How do I get the one ecdf {Hmisc} to run instead of the ecdf {stats}
A pointer in the right direction would be greatly appreciated.
Tried to instal Hmisc but got this message, so I assume I have it
> utils:::menuInstallPkgs()
Warning:
2003 Apr 16
5
besoin d'aide
J'aimerais savoir si la fonction merge() est la seule disponible pour concatener des tableaux de donn?es?
Est-ce normal que l'ex?cution soit lente?
2002 Sep 11
1
.Renviron and Renviron.site (on Windows XP)
Hello,
Could someone please tell me why the following doesn't work:
I have a file C:\Program Files\R\rw1051\etc\Renviron.site, which
contains the line:
R_LIBS= "C:/Jim/LocalR-Libraries/FromCran";
"C:/Jim/LocalR-Libraries/Cantata"
>From the documentation, I gather that I have put this file in the
default location, but to be safe I also explicitly set the R_ENVIRON
2023 Nov 03
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
Hello Everyone,
I have three variables: Waist circumference (WC), serum triglyceride (TG)
level and gender. Waist circumference and serum triglyceride is numeric and
gender (male and female) is categorical. From these three variables, I want
to calculate the "Lipid Accumulation Product (LAP) Index". The equation to
calculate LAP is different for male and females. I am giving both
2023 Nov 03
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
Well, something like:
LAP <- ifelse(gender =='male', (WC-65)*TG, (WC-58)*TG)
The exact code depends on whether your variables are in a data frame or
list or whatever, which you failed to specify. If so, ?with may be useful.
Cheers,
Bert
On Fri, Nov 3, 2023 at 3:43?AM Md. Kamruzzaman <mkzaman.m at gmail.com> wrote:
> Hello Everyone,
> I have three variables: Waist
2006 Mar 28
1
trellis graph question
R2.2, WinXP:
I am using xyplot( ) to generate time plots of plasma concentration data.
The following is an edited version of my code:
xyplot(log.conc ~ time| group, data = foo,
groups = subject,
panel = function(x, y, panel.number, ...)
{
panel.superpose(x, y,
subscripts = TRUE,
groups = foo$group,
type = 'l', col
2007 May 27
1
How to reference or sort rownames in a data frame
As I was working through elementary examples, I was using dataset
"plasma" of package "HSAUR".
In performing a logistic regression of the data, and making the
diagnostic plots (R-2.5.0)
data(plasma,package='HSAUR')
plasma_1<- glm(ESR ~ fibrinogen * globulin, data=plasma, family=binomial())
layout(matrix(1:4,nrow=2))
plot(plasma_1)
I find that data points
2023 Nov 03
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
df$LAP <- with(df, ifelse(G=='male', (WC-65)*TG, (WC-58)*TG))
That will do both calculations and merge the two vectors appropriately. It will use extra memory, but it should be much faster than a 'for' loop.
Regards,
Jorgen Harmse.
------------------------------
Message: 8
Date: Fri, 3 Nov 2023 11:10:49 +1030
From: "Md. Kamruzzaman" <mkzaman.m at gmail.com>
2006 Dec 03
4
prop.trend.test issue
I have the clinical study data.
Year 0 Year 3
Retinol (nmol/L) N Mean +-sd Mean +-sd
Vitamin A group 73 1.89+-0.36 2.06+-0.53
Trace group 57 1.83+-0.31 1.78+-0.30
where N is the number of male for the clinical study.
I want to test if the mean serum retinol has increased over 3 years
among subjects in the vitamin A group.
> 1.89+0.36
2009 Jun 19
1
kde 4.3 beta 2, compiz 8.2 - panel pager doesn't work until plasma crash and restart
Listmates,
Woking with compiz 8.2 on kde 4.3 beta 2 on Archlinux, the plasma "kicker"
pager widget does not work correctly after compiz 8.2 is started. Before
compiz is started you see the 4 small desktop representations stacked 2x2.
After you start compiz, the panel only shows a single large pane 'Desktop 1'
no matter what desktop you are on.
The strange part is that
2003 Jul 21
4
generate a series of fucntion
Hi there,
I want to generate a large amount of functions,
say f=function(x,t) exp(-t[1]-t[2]*g_1(x)-t[3]*g_2(1+x))
where g_1(x) and g_2(x) are from a long list of moments, such as x, x^2,
log(x), log(1+x) .. and so on.
Any suggestions on how to do this efficiently?
thanks a lot.
x.w
2002 Oct 02
4
T-Distribution
Dear sir,
I would ask if there are in R some code to generate a random sample
from a mvariate student distribution like that one wich generate the
multivariate normal one i mean( rmvnorm(n, mu, sigma)
Second question : if R can plot density 3Dcurve I don't mean de
histogram but de hole density function(normal for example).
I use a windows version of The R software
Thank you in advance
wiyh
2020 Sep 08
1
Plasma problem with numeric keypad
Hi list,
I'm running CentOS 8.2 with Plasma from EPEL and I noticed that I have
problem using numeric keypad of my keyboard when using plasma
application like Konsole, Kcalc, Konqueror and all application of
Plasma. Using Firefox, Thunderbird, xterm, Libreoffice all works as
expected. So this problem is related to Plasma application. I noticed
the same problem on sddm login. I noticed