Displaying 20 results from an estimated 2000 matches similar to: "How generate "A01", "A02", ..., "A99"?"
2003 Apr 10
3
A Question on lowess() function
Hi, all,
I want to use lowess(x, y) where x and y are vectors of length of 4000+. In
fact, x and y are log of some vectors. So, some of the elements are NaN.
lowess() can not take away those elements then do the fitting. It will give
the error message and do nothing.
1. Can anybody tell me how to get rid of those NaN's and use lowess()?
2. How to get the LOWESS fitting values for any
2003 Apr 07
3
New window for plot()
Hi,
Can anybody tell me how to open new a new window for plot()? Thanks.
Minghua
2003 Apr 16
2
Local parameter calculation
Dear all,
I am a newbie in R. I encounter a problem as follows.
I have 2 vectors X and Y that have a equal length of several thousand. I see
Y as the function of X. Both of them are random. X is not arrranged in any
order. Of course, I do plot(X,Y). Now, I want to use a sliding narrow window
to run over each X, then calculate the variances within that window.
Anyone knows easy way in R to do
2011 Dec 09
1
matrix calculation
Hello,
I have a matrix
animal time A01 A02
A d0 -5.4 2.7
A d112 4.6 5.9
A d224 3.9 6.3
B d0 7.1 5.6
B d112 1.5
2009 Jun 23
2
Long to wide format without time variable
Hi all,
I am trying to convert a data set of physician death codings (each individual's cause of death is coded by multiple physicians) from long to wide format, but the "reshape" function doesn't seem to work because it requires a "time" variable to identify the sequence among the repeated observations within individuals. My data set has no order, and different
2004 Apr 29
5
Problems in plot
Hello,
I have R1.9.0 under Windows XP. My program plots several plots using
x11()
par(cex = 0.75)
......
x11()
par(cex = 0.75)
......
x11()
par(cex = 0.75)
......
x11()
par(cex = 0.75)
......
Sometimes, one of them generates a small frame only with title area "R graphics: Device X (ACTIVE)". The message in the console window is
Error in plot.new() : Figure margins too large
2011 Mar 11
3
Large dataset operations
Hello all,
I'm new to R and trying to figure out how to perform calculations on a large dataset (300 000 datapoints). I have already made some code to do this but it is awfully slow. What I want to do is add a new column for each "rep_ " column where I have taken each value and divide it by the mean of all values where "PlateNo" is the same. My data is in the following
2003 Sep 16
3
Question in Using sink function
Could anyone please explain to me why the following writes nothing into
"all.Rout"
file? If the "for" loop is removed, t.test output can be written into
"all.out".
Thanks in advance.
Minghua Yao
......
zz <- file("all.Rout", open="wt")
sink(zz)
for(i in 1:n)
{
Cy3<-X[,2*i-1];
Cy5<-X[,2*i];
t.test(Cy3, Cy5)
2003 Sep 26
3
Std. errors of intercept and slope
Dear all,
I have the following output generated by linear regression. Since there is
only one regression intercept and one slope for one set of data, what is the
meaning of std. error for intercept and that of slope? Thanks in advance.
Sincerely,
Minghua
> data(thuesen)
> attach(thuesen)
> lm(short.velocity~blood.glucose)
Call:
lm(formula = short.velocity ~ blood.glucose)
2009 May 22
2
Step by step: Making an R package with Fortran 95
To all. I need your help. The big question is: How do I make an R library
with Fortran 95 files? You may assume that I am a pretty decent programmer
in both R and Fortran. I lay out a scenario and need your help!
I know how to make an ordinary R package and have dabbled with R + Fortran
95 *.dll linking. I do not have a great handle on the whole Makevars file
and whatever else I might need
2004 Aug 25
5
How to Arrange character vector in alphabetic order
Hi,
Is there any function that can arrange a character in alphabetic order? Thanks for answer
-MY
[[alternative HTML version deleted]]
2007 Dec 14
2
Conflating categories
Hi,
I think this is a pretty basic question. I still couldn#t find the answer to
it, though.
I have some data loaded into R, which looks like this:
> data()
...
38358 Advice Article
38359 Advice Article
38360 GeneralInfo List
38361 GeneralInfo Article
38362 Purchase Paragraphs
38363 Purchase List
38364 Purchase Paragraphs
...
I now
2003 Jun 27
2
NA points in loess function
Gurus,
I used
predict(loess(Y~X));
where Y and X are of the same length. But there are same NA's in both Y and
X. Those NA's are in the same locations in Y and X. The following is the
error messageI got:
Error in "[<-"(*tmp*, , i, value = predict(loess(Y~X))) :
number of items to replace is not a multiple of replacement length
If I replaced the NA's with a
2007 Nov 21
1
ave and sd
Dear list,
I'm still trying to calculate the sd for V2 for
each group in V1 if V3 is '0':
> x
V1 V2 V3
1 A01 2.40 0
2 A01 3.40 1
3 A01 2.80 0
4 A02 3.20 0
5 A02 4.20 0
6 A03 2.98 1
7 A03 2.31 0
8 A04 4.20 0
# Work
x$vmean <- ave(x$V2, x$V1, x$V3 == 0, FUN = mean)
# Work
x$vsd2 <- ave(x$V2, x$V1, FUN = sd)
# Doesn't work
x$vsd <- ave(x$V2, x$V1, x$V3
2003 Apr 21
2
How to assigen column of matrix
Hi,
A simple question.
I want to assign values to columns (or rows) of a matrix.
It seems that
AA[,i]<-A; # A is a vector or array;
doesn't work.
How can I accomplish that?
Thanks alot.
-MY
2003 Aug 06
3
How to copy and paste a R plot onto Word (or Power Point)
All,
Anybody can tell how to export a R plot onto Word (or Power Point)?
Many thanks in advance.
-MY
2018 Sep 10
2
Byte-wide stores aren't coalesced if interspersed with other stores
Hi,
I have, in postres, a piece of IR that, after inlining and constant
propagation boils (when cooked on really high heat) down to (also
attached for your convenience):
source_filename = "pg"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
define void @evalexpr_0_0(i8* align 8 noalias, i32* align 8 noalias) {
2004 Feb 16
4
Questions about Matrix
How to Generate the Matrix (t+1)*m ?
(0-1)^n (0-2)^n ,,,, (0-m)^n
(1-1)^n (1-2)^n ,,,, (1-m)^n
(2-1)^n (2-2)^n ,,,, (2-m)^n
.. ... ,,,, .......
(t-1)^n (t-2)^n ,,,, (t-m)^n
Appreciate your kindly help!
---------------------------------
[[alternative HTML version deleted]]
2004 May 20
2
Get Slot from a Class
Hello, everyone,
I don't quite understand the following message:
> TTT <- t.test(1:10, y=c(7:20))
> class(TTT)
[1] "htest"
> TTT@p.value
Error: Trying to get slot "p.value" from an object whose class ("htest") is not defined
> TTT$p.value
[1] 1.855282e-05
Why the message says the class of TTT is not defined while class(TTT) gets
2003 Oct 07
2
Sorting matrix or data frame
Dear all,
Could anyone please tell me how to sort a matrix or a data frame against a
column/row/component?
Many thanks.
-MY