Displaying 20 results from an estimated 10000 matches similar to: "more dates and data frames"
2008 Dec 02
1
QQ plots and boxcox
Dear R People:
In the DASL library, there is a story about hot dogs.
Here are the data:
Beef 186 495
Beef 181 477
Beef 176 425
Beef 149 322
Beef 184 482
Beef 190 587
Beef 158 370
Beef 139 322
Beef 175 479
Beef 148 375
Beef 152 330
Beef 111 300
Beef 141 386
Beef 153 401
Beef 190 645
Beef 157 440
Beef 131 317
Beef 149 319
Beef 135 298
Beef 132 253
Meat 173 458
Meat 191 506
Meat 182 473
Meat 190
2004 Sep 15
1
authentication problems after upgrade to samba 3.0.7-2.FC1
good evening all,
i upgraded my last samba 2.2.7a (dog2) this afternoon and
have run into
problems.
first, the setup:
windows 2000 clients
three sites on three seperate subnets connected by t1
through routers. each
site has a samba server that authenticates the users on its
subnet. the
workgroup name for each server is dognet. /etc/passwd,
/etc/group, and
smbpasswd are synced up manually.
2006 Aug 29
3
Substring and strsplit
Dear R People:
I am trying to split a character vector into a set of individual
letters:
Ideal:
x3 <- c("dog")
"d" "o" "g"
I tried the following:
> strsplit(x3)
Error in strsplit(x3) : argument "split" is missing, with no default
> strsplit(x3,1)
[[1]]
[1] "dog"
I know that this is incredibly simple, but what am I doing
2006 Jan 08
2
exporting methods/classes
Dear R People:
I'm still struggling with sending methods and classes as part of
creating a new package.
Where does the .onLoad function go? Within R itself or in a file
in one of the new package directories?
Here are my latest efforts:
Here's the last part of the woof1-Ex.Rout
> library('woof1')
Error in loadNamespace(package, c(which.lib.loc, lib.loc),
keep.source =
2010 Jun 08
2
setting up zoo objects from a data frame
Dear R People:
I have the following data frame:
> str(dog.df)
'data.frame': 7 obs. of 2 variables:
$ V1: Factor w/ 3 levels "1/1/2000","1/2/2000",..: 1 1 1 2 2 3 3
$ V2: Factor w/ 3 levels "cat","dog","tree": 2 1 3 1 3 2 3
> dog.df
V1 V2
1 1/1/2000 dog
2 1/1/2000 cat
3 1/1/2000 tree
4 1/2/2000 cat
5 1/2/2000 tree
6
2009 May 13
1
question about setClass
Hi R People:
I have a question about setClass please. I'm working thru "R
Programming for Bioinformatics".
Actually, I was wondering if there is such a thing as an updateClass,
in order to change a "contains" option, please?
that is, if I had
setClass("dog",
representation(name="character",paws="numeric",tail="character"))
Fair
2006 Aug 10
2
OT UNIX grep question
Dear R People:
I want to use the "grep" command in UNIX/Linux to check
some words from the dictionary.
Let's say I use:
grep dog /usr/share/dict/words
and I get back
bulldog
dog
dogged
and so on.
How could I just get back "dog" with the grep command please?
Thanks,
Sincerely
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University
2012 Jun 27
5
question about formatting Dates
Dear R People:
I have dates as factors in the following:
> poudel.df$DATE
[1] 1/2/2011 1/4/2011 1/4/2011 1/4/2011 1/6/2011 1/7/2011 1/8/2011
[8] 1/9/2011 1/10/2011
Levels: 1/10/2011 1/2/2011 1/4/2011 1/6/2011 1/7/2011 1/8/2011 1/9/2011
>
I want them to be "regular" dates which can be sorted, etc.
But when I did this:
> as.character(poudel.df$DATE)
[1]
2010 Jun 10
2
[R[ dates on zoo objects
Dear R People:
I have a zoo object with its date index as a factor.
> xAle1.zoo$index
Error in xAle1.zoo$index : $ operator is invalid for atomic vectors
> str(xAle1.zoo)
Class 'zoo' atomic [1:32] 1253 1316 1038 1157 1710 1489 1159 1142 945 1245 ...
..- attr(*, "index")= Factor w/ 32 levels "04/16/09","04/17/09",..:
1 2 3 4 5 6 7 8 9 10 ...
>
2012 Jun 27
2
A solution for question about formatting Dates
Hello again:
Here is a solution to the dates without leading zeros:
pou1 <- function(x) {
#Note: x is a data frame
#Assume that Column 1 has the date
#Column 2 has station
#Column 3 has min
#Column 4 has max
library(stringr)
w <- character(length=nrow(x))
z <- str_split(x[,1],"/")
for(i in 1:nrow(x)) {
u <-
2010 Jun 21
2
difference in dates
Dear R People:
I have a data frame with the two following date columns:
> a.df[1:10,c(1,6)]
DATE DEATH
1207 2009-04-16 2009-05-06
1514 2009-04-16 2009-05-06
2548 2009-04-16 2009-05-08
3430 2009-04-16 2009-05-09
3851 2009-04-16 2009-05-09
3945 2009-04-16 2009-05-09
7274 2009-04-16 2009-05-12
7532 2009-04-16 2009-05-12
7651 2009-04-16 2009-05-12
8495 2009-04-16 2009-05-13
>
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"
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
>
>
> --
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,
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
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
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] *