Displaying 9 results from an estimated 9 matches for "kaixinmalea".
2009 Oct 19
3
loop and plot
Dear all,
I am stuck at applying loop function for creating separated plots.
I have coding like below:
dataset.table <-
table(data.frame(var1=c(1,2,3,1,2,3,1),colour=c("a","b","c","c","a","b","b")
))
kk = function(f)
{
ls=as.character(f)
pie(dataset.table[ls,],main=ls)
2009 Aug 10
1
Help with R Function writing for Matrix
Dear all,
I have a task to find the first all zero row of a matrix X ( nothing known
about X). I need to write a function which returns either the row index of
the first all-zero row, or NA if there are no all-zero rows. and I also need
to locate all rows which are non-zero (should be a vector of row indexes).
Can somebody give me some hints on this?
Thanks a lot.
Rene.
[[alternative HTML
2009 Oct 10
1
auto.key legend color different from actual plot
Dear All,
I have created a barchart, but the legend created by auto.key does not match
the actual graph. Can someone give me some hint here?
For example, my coding are:
Library(lattice)
dataset.table <-
table(data.frame(id=c("a","b","c","a","c","b","a"),colour=c("blue","green","
2009 Oct 12
1
Loading data to Trellis barchart plot.
Dear all,
I have a question about loading the data to barchart plot. I know this could
be a very easy question, but I just can not get my head around.
What I need to do is to create a trellis plots barchart style (horizontal
bar), with levels of one variable (ie. variable “colour” in my example) as
ylab and frequency as xlab on each trellis plot. The trellis plots is
separated based on
2009 Sep 23
3
retrieve certain part from html
Dear All,
Can someone please guide me how to get the certain part from a long html
language?
e.g.
"<td><a href='2005-01.html'>2005-01</a></td><td><a
href='2006-01.html'>2006-01</a></td><td><a
href='2007-01.html'>2007-01</a></td><td><a
2009 Oct 04
1
Numerical.summary Error
Dear all,
Have you experienced problem of using numerical.summary() function? I used
to be able to run this function in R, but not any more. Now I try to use
this function, it gives me error like this:
Error: could not find function "numerical.summary"
I used to be able to run this function under library(s20x).
Can someone please guide me on this ?
Thanks.
Rene
2009 Oct 09
1
About finding NA values sources
Dear All,
In R, is there a way (or a function) I can quickly check whether all the NA
values in one new created numerical variable happened are because of
or something else in the original dataset? And how can we easily group these
NAs separately based on different reason (e.g. some NA are because of
, some are because of there are extra text inside, etc).
Thanks
2009 Oct 14
1
rect function
Dear all,
I have a question about how to load data or (entering data )to each cell of
a rectangle created by rect .
e.g.
I have a matrix
rbind(1:2,1:2)
I have created a 2x2 rectangle by using:
a<-0:1/10
b<-0:1/10
kk<-expand.grid(a,b)
plot.new()
rect(kk[, 1], kk[, 2], kk[, 1] + .1,kk[, 2] + .1)
so how do we put the value of rbind(1:2,1:2) into the relevant
2009 Aug 19
3
R function for Probabilities for the (standard) normal distribution
Dear All,
I need to write an R function which computes values of Probabilities for
the (standard) normal distribution, ¦µ(z) for z > 0 by summing this power
series. (We should accumulate terms until the sum doesn't change). I also
need to make the function work for vector of values z.
The initial fomular is
¦µ(z) = ( 1/ sqrt(2¦Ð) )* ¡Ò e^(-t^2/2)dt (¡Ò is from -¡Þ, z)