Displaying 20 results from an estimated 30000 matches similar to: "getting list of data.frame names"
2010 Mar 02
2
plotting a subset of a time series
Dear R People:
I have the following time series and plot:
> x <- ts(rnorm(50),start=2005,freq=12)
> plot(x)
>
which works fine.
I would like to plot a subset of that time series, which I did with:
> plot(window(x,2005,2006.83))
Is there a better way to do this, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
2010 Dec 17
4
using ls() to find a function
Dear R People:
Is there a way to find which objects are functions via ls(), please?
I'm sure that there is, but I'm not sure how.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2011 Oct 12
5
strsplit question
Dear R People:
I have the following set of data
> Block[1:5]
[1] "5600-5699" "6100-6199" "9700-9799" "9400-9499" "8300-8399"
and I want to split at the -
> strsplit(Block[1:5],"-")
[[1]]
[1] "5600" "5699"
[[2]]
[1] "6100" "6199"
[[3]]
[1] "9700" "9799"
[[4]]
[1]
2011 Jan 16
4
a remove question
Dear R People:
I have the following:
> ls(pattern="NY*")
[1] "CRAN_df" "CRAN_df0" "CRAN_df1" "CRAN_mat" "CRAN_sp"
[6] "CRAN_spdf1" "CRAN_spdf2" "CRAN_spdf4" "delauney_NY" "dist2_NY"
[11] "dist3_NY" "Gabriel_NY" "NY8a_nb"
2008 Mar 19
7
ls() and classes
Dear R People:
I want to get the class of all of the objects in my directory.
I was trying:
do.call(class,list=ls())
but got an "unused argument error".
I'm sure it's simple, but I'm just not seeing it.
Any help would be much appreciated.
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston -
2011 Oct 12
2
goofy class question
Dear R People:
Here is a really goofy question.
I have some objects which have 2 classes: data.frame and ucr.
Also, the classes will always be in that order.
I have tried all sorts of things, but to no avail.
listucrModels <- function(envir=.GlobalEnv, ...) {
objects <- ls(envir=envir, ...)
if (length(objects) == 0) NULL
else objects[sapply(objects,
function(.x)
2011 Mar 17
3
date conversion
Dear R People:
I have a monthly time series which runs from January 1998 to December 2010.
When I use tsp I get the following:
> tsp(ibm$ts)
[1] 1998.000 2010.917 12.000
Is there an easy way to convert this to a seq.Date object, please?
I would like to have something to the effect of
1998/01/01 .... 2010/12/01
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer
2009 Jul 20
2
assign question
Dear R People:
I have several vectors, sa1, sa2,...sa27 of varying lengths.
I want to produce one vector xener[1:27] which has the minimum of each sa[i].
I'm trying to set up a loop and use the assign statement, but here are
my results:
> for(i in 1:27) {
+ xener[i] <- min(assign(paste("sa",i,sep="")))
+ }
Error in assign(paste("sa", i, sep =
2011 Jun 21
5
omitting columns from a data frame
Dear R People:
I have a data frame, xm1, which has 12 rows and 4 columns.
If I put is xm1[,-4], I get all rows, and columns 1 - 3, which is as
it should be.
Now, is there a way to use the names of the columns to omit them, please?
Thanks so much in advance!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
2013 Oct 31
1
an rpy2, R cgi type question
Hi again.
I'm putting together a little project with R, python, and a website. So I
have an HTML file, a py file, an R file.
Here is the HTML file:
<form action="/cgi-bin/radio4.py" method="post" target="_blank">
<input type="radio" name="subject" value="Integrate" /> Integrate
<input type="radio"
2012 Aug 13
6
named character question
Dear R People:
Here is a goofy question:
I want to extract the zip code from an address and here is my work so far:
> add1
results.formatted_address
"200 W Rosamond St, Houston, TX 77076, USA"
> add1[1][32:36]
<NA> <NA> <NA> <NA> <NA>
NA NA NA NA NA
> str(add1)
Named chr "200 W Rosamond St, Houston, TX 77076,
2013 Jan 09
1
R2html and Blackboard LMS : solved
Everything is ok on Firefox, IE, and iPad.
Thanks,
Erin
On Tue, Jan 8, 2013 at 7:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> Has anyone used R2HTML in web files that were on the Blackboard LMS, please?
>
> I'm starting to do these but wanted to know if there were any
> potential pitfalls.
>
> Thanks,
> Erin
>
>
> --
2017 Dec 21
3
Building R from source with the PGI compiler
Hello
I would like to build R from source and use the PGI compiler, rather than
the GCC compiler.
I saw the instructions for the Intel compiler in the R Installation Manual,
but I didn't see the PGI. I tried a few times without instructions, but
without success.
Any suggestions would be most welcome. Also, I hope this is the right
group for the question.
Sincerely,
Erin
--
Erin
2010 Jun 21
3
tables
Dear R People:
I have generated the following table:
> table(zza$DEATH,zza$GENDER)
F M
2009-04-21 0 1
2009-04-22 4 2
2009-04-24 6 0
2009-04-25 1 3
2009-04-26 2 0
2009-04-28 3 0
2009-04-29 2 2
However, instead of total counts in the F and M columns, I would like percents.
How would I do this, please?
thanks,
Erin
--
Erin
2011 Mar 07
4
attr question
Dear R People:
When I want to produce a small sample confidence interval using
t.test, I get the following:
> t.test(buzz$var1, conf.level=.98)$conf.int
[1] 2.239337 4.260663
attr(,"conf.level")
[1] 0.98
How do I keep the attr statement from printing, please? I'm sure it's
something really simple.
Thanks,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department
2017 Aug 17
1
really dumb question with building/creating a new package.
Thank you!
On Thu, Aug 17, 2017 at 4:55 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> r-package-devel is probably a better place to post this, especially if
> you do not get a satisfactory reply here. This list is about R
> programming, as you presumably know; your query is not.
>
> Cheers,
> Bert
>
>
> Bert Gunter
>
> "The trouble with having
2008 Oct 29
6
substring/strsplit question
Dear R People:
Here is a toy example:
> x <- c("2E","5W","12H")
> substr(x,2,2)
[1] "E" "W" "2"
>
Sometimes x has 3 elements, sometimes 2. I want to extract the last
element, and then extract the other 1 or 2 elements.
How can I do this, please?
TIA,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of
2008 Mar 18
3
Tcl/tk question
Dear R Gurus:
What is the name of the person who has all of the Tcl/tk stuff,
please? I know it's James W, but can't remember his last name.
I wanted to look at some of his examples.
Thanks in advance!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2012 Mar 15
4
replicating C example from the Extensions Manual problem
Dear R People:
Here is something that I am sure is very simple. I'm just trying to
re-create the C convolution example in the Extensions manual. Here is
the subroutine:
void convolve(double *a, int *na, double *b, int *nb, double *ab)
{
R_len_t i, j, nab = *na + *nb - 1;
for(i = 0; i < nab; i++)
ab[i] = 0.0;
for(i = 0; i < *na; i++)
for(j = 0; j < *nb; j++)
ab[i + j] += a[i] *
2017 Aug 17
3
really dumb question with building/creating a new package.
Hello.
I am creating a new RcmdrPlugin package. However, I am getting some very
odd messages.
R CMD build RcmdrPlugin.gstats_1.0.0
ERROR
cannot change to directory ?RcmdrPlugin.gstats_1.0.0?
es-macbook-air:~ emhodgess$ R CMD check RcmdrPlugin.gstats_1.0.0
Warning: ?RcmdrPlugin.gstats_1.0.0? is neither a file nor directory,
skipping
es-macbook-air:~ emhodgess$ cd RcmdrPlugin.gstats/