Displaying 20 results from an estimated 10000 matches similar to: "How to extract elements from vector in reverse order?"
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]]
2013 Jan 21
2
Why using hist when setting the parameter probability=TRUE does not create probability plot?
Hi All,
When carrying out hist(samples,breaks=50,probability=TRUE), the column
values are considerably greater than 1, which seams very unreasonable. The
plot is attached.
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
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
Hi all mailing listers,
My question is as follows:
e.g.
I launched two packages, say packageA and packageB, but they have the
function of the same name, leading to masking. 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
2012 Dec 20
2
how to make a table of summary statistics
Dear R-listers,
I am a newbie with R and I am struggling with something I consider very
basic. I wish to produce a table (to import in a latex file) of summary
statistics, but for as much as I've been looking around and trying various
alternatives (plyr, reporttools, pastecs and Hmisc) I haven't found what I
am looking for. Probably I am doing something wrong, but I can't figure out
2013 Feb 03
1
Looping through rows of all elements of a list that has variable length
Dear R-ers,
I have a list of data frames such that the length of the list is unknown in
advance (it could be 1 or 2 or more). Each element of the list contains a
data frame.
I need to loop through all rows of the list element 1 AND (if applicable)
of the list element 2 etc. and do something at each iteration.
I am trying to figure out how to write a code that is generic, i.e., loops
through the
2008 Sep 12
2
[LLVMdev] Order of fiels and structure usage
I'd like to be able to make use of a structure type and its fields before
it is completely defined. To be specific, let me ask detailed questions
at various stages in the construction of a recursive type. I copy from
http://llvm.org/docs/ProgrammersManual.html#TypeResolve
// Create the initial outer struct
PATypeHolder StructTy = OpaqueType::get();
Is it possible to declare
2008 Sep 12
0
[LLVMdev] Order of fiels and structure usage
On Fri, Sep 12, 2008 at 9:35 AM, Hendrik Boom <hendrik at topoi.pooq.com> wrote:
> I'd like to be able to make use of a structure type and its fields before
> it is completely defined. To be specific, let me ask detailed questions
> at various stages in the construction of a recursive type. I copy from
>
> http://llvm.org/docs/ProgrammersManual.html#TypeResolve
>
>
2007 May 23
1
Question concerning "pastecs" package
Hi
I just installed the pastecs package and I am wondering: is there an
english (or german) translation of the file pastecs.pdf? If not, is
there an explanation somewhere of the object of type 'turnpoints' as a
result of turnpoints(), especially the "info" field?
Thanks,
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE
2003 Aug 24
2
setClass question
I would like to add a class to the SparseM package. I have a class "matrix.csr"
that describes a matrix in compressed sparse row format, now I would like a class
matrix.diag.csr that describes such objects when they happen to be diagonal.
The idea is that matrix.diag.csr objects should behave (later in life) exactly like
matrix.csr objects, the distinction is only needed in order to
2004 Mar 19
1
date conversions in pastecs
In function daystoyears in package pastecs, I get this (wrong?) result
with 1995:
> daystoyears(1,datemin="1/1/1997",dateformat="m/d/Y")
1997.001
> daystoyears(1,datemin="1/1/1995",dateformat="m/d/Y")
1994.999
Any insights?
Thanks
Angel
2008 Mar 13
3
Whitespace in SuperRedCloth
Up to now, the tests have been running with whitespace stripped out.
Newlines and tabs are insignificant in HTML, so I figured why bother
with them?
Now I realize why: they''re significant in pre tags and they also make
your code look pretty!
I''ve been working to get SRC output to roughly match Tetxile2''s as
far as tabs and newlines go. It''s tough and
2008 Jul 16
2
How to extract component number of RMSEP in RMSEP plot
Hi R-listers,
I would like to know how can i extract component no. when the RMSEP is
lowest?
Currently, I only plot it manually and then only feed the ncomp to the jack
knife command. However, I would like to automate
this step.
Please let me know. Many thanks.
Rgrds,
[[alternative HTML version deleted]]
2009 Sep 16
1
Registration
Hi,
I have a question to post. But I have a problem finding the appropriate
forum. Some of the FAQ on pastecs are answered by
R-help@stat.math.ethz.chmailing list. I searched to see if this
mailing list requires registration
or not. There was no information about that. I am a registered member of R-
help general mailing list but I am aware it is better to post my question to
a specific group in
2009 Jun 12
3
Order data frame
Hi listers,
I have a data frame with 5 variables... And I want reorder the data frame
according a specific variable X...
I checked the sort and order functions... In my case I think that the ORDER
function is applicable... But I did not understand at all... The idea is
simple... Data order by X...
I know that this is very simple... Anyways... How I would do that...
Thanks in advance,
Marcio
--
2008 Mar 07
2
Irregular Time Series Issue
Hello,
I have an irregular time series of the form :
Time Data Time1 Data1 ....
1 b 1 e
7 g 4 i
NA NA 5 k
NA NA NA NA ...
(the columns have varying length of NAs after a certain point)
Converting this to regular time series with Pastecs does not seem to
work, when I see the
entire data as a single series. So I remove
2004 Mar 22
1
another date conversion
Dear R People
Here is an interesting problem:
> library(pastecs)
> a <- 1:100
> b <- daystoyears(a,datemin="1/1/2003",dateformat="m/d/Y")
> b
[1] 2002.999 2003.002 2003.005 2003.008 2003.010 2003.013 2003.016 2003.018 2003.021 2003.024 2003.027 2003.029 2003.032
[14] 2003.035 2003.038 2003.040 2003.043 2003.046 2003.049 2003.051 2003.054 2003.057 2003.060
2007 Jan 02
6
package dependency tree
Is there a painless way to find the names of all packages on CRAN
that "Depend" on a specified package?
url: www.econ.uiuc.edu/~roger Roger Koenker
email rkoenker at uiuc.edu Department of Economics
vox: 217-333-4558 University of Illinois
fax: 217-244-6678 Champaign, IL 61820
2013 Apr 24
2
How to make a raster image in R from my own data set
Hi R-user,
I was trying to make a raster map with WGS84 projection in R, but I could not make it. I found one data set in Google that data is almost the same format as of mine. I wanted to make a raster map of temperature with 1 degree spatial resolution for the global scale.
I could make it in GIS software but I do have many variables (to be many raster images) and ultimately I am importing them
2009 Sep 16
2
Turnpoints
Good evening to everybody. I have a data of four columns - three of the
columns represent date while the fourth is counts. Setting 4000 as my
minimum point/value, I wish to find out the number of counts that are less
or equal to 4000 and the dates they occur. I have installed pastecs and have
been trying to use turnpoints function to do this. I have not been much
lucky. I am a still learning. I