Displaying 5 results from an estimated 5 matches for "huaping".
2013 Jan 21
2
Why using hist when setting the parameter probability=TRUE does not create probability plot?
...I think the column value of the hist plot should correspond to
x$counts/sum(x$counts)
(x=hist(samples,breaks=50,probability=TRUE)). The size of data is a
little bit larger, causing failure of uploading. If you need the data, I
can email it to you.
Can anyone help me?
Thanks!
Best regares,
Huaping Wan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hist.png
Type: image/png
Size: 3592 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130122/9a829983/attachment.png>
2013 Jan 25
3
How to extract elements from vector in reverse order?
Hi all mailing listers,
I wanna get the last several elments of vector.
e.g. x <- c(1,2,3,.....,78, 79, 80)
How can I implement to assign last three elements to y, y <- c(78, 79, 80)
?
In Matlab, It can easily achieve by y=x(end-2:end)
Thanks
Huaping Wan
[[alternative HTML version deleted]]
2013 Jan 23
3
Pasting a list of parameters into a function
I need to repeat a function many times, with differing parameters held
constant across iterations. To accomplish this, I would like to create a
list (or vector) of parameters, and then insert that list into the function.
For example:
q<-("l,a,b,s")
genericfunction<-function(q){
}
######
The equivalent code would of course be
genericfunction<-function(l,a,b,s){
}
Any help
2013 Jan 27
1
How to remove packages from the active working window
...ing. I want to remove the
packageA from the working window after using the packageA so as not to
causing problem. I do not want to carry out task each time using packageA
and packageB individually because many the tasks share many parameters.
Any ideals and suggestion will be much appreciated.
Huaping Wan
[[alternative HTML version deleted]]
2013 Jan 29
2
export figure by pdf command
Dear R mailing listers,
After plotting, I wanna save it as file in pdf format using pdf("name.pdf")
command. It failed, but I can do it by GUI operation (file-save as-pdf).
e.g.
x11()
hist(x, breaks = 50, probability = FALSE)
pdf("hist.pdf")
[[alternative HTML version deleted]]