Displaying 20 results from an estimated 10000 matches similar to: "Expressions and Functions"
2004 Jan 06
2
dist(x,y)
Hi Ryszard!
There is a dist function in R.
It's in the mva package.
You can set the kind of distance that you want.
Thanks,
Erin
mailto:hodgess at gator.uhd.edu
2006 Feb 06
3
decomposed.ts class and method
Dear R People:
In the function "decompose", the object has the class of "decomposed.ts".
(from package stats)
I would like to see the class definition and the method for the plotting.
However, when I use
isClass("decomposed.ts")
I get "FALSE".
When I check getMethods("plot")
there is no method for plot on decomposed.ts
Any suggestions,
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 01
4
S3 vs. S4
Dear R People:
Could someone direct me to some documentation on the
difference between S3 and S4 classes, please?
For example, why would a person use one as opposed to another?
Maybe pros and cons of each?
Thanks in advance!
R Version 2.2.0 (I'm downloading the new one this afternoon!) Windows.
Happy New Year!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and
2004 Mar 28
2
splitting a character vector
Dear R People:
Suppose I have the following;
xa <- c("There are 5 dogs")
I would like to have a new character vector such that
xb[1] is There
xb[2] is are
xb[3] is 5
xb[4] is dogs
Since the original vector has length 1, substring will not work.
Any suggestions would be MOST welcome!
thanks
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
2006 Feb 14
4
R and Power Point
Dear R People:
I'm using R in a time series class. This class is being
broadcast live to 2 remote sites via closed circuit TV.
My people at the remote sites are having a terrible time
seeing the computer screen as it is broadcast(resolution issues). I have
decided to put together Power Point slides for the teaching.
I am currently saving the R screen as WMF files and inserting them
into
2004 Mar 27
3
availability of version 1.9.0?
Dear R People:
When will version 1.9 (for Windows) be ready, please?
My reason for asking: there is an interesting library from
Bioconductor called tkWidgets. However, it will only
work with version 1.9.0 or higher.
Are there ways around this, or should I just be patient?
Thanks so much in advance!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
2006 Feb 27
2
install RPM file on Redhat
Dear R People:
I downloaded the RPM for Red Hat Linux.
How do I install this, please? When I looked
at the R Intallation manual, it seemed to be
referring to installing from source.
Thanks in advance!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
2006 Dec 10
3
DOE teaching suggestions?
Dear R People:
I will be teaching an undergraduate Design of Experiments class
in the Spring Semester. It will be very much an applied course.
My question, please: has anyone used R for a course like this, please?
I've tried Rcmdr for a regression course and just plain command
line for a time series course.
Should I use Rcmdr, or teach them to use the command line, OR is there
something
2006 Aug 02
2
listing of permutations
Dear R People:
Suppose I have the 4 numbers: 1,2,3,4.
I would like to create a listing of the permutations
of 4 items taken 4 at a time.
Is there a built in function for that, please?
Thanks in advance!
R 2-3-1 for Windows or Linux
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
2006 Feb 21
5
R and packages
Dear R People:
Here is yet another strange problem.
I'm using R in one of my classes. However, the computer lab has something
called "Deep Freeze" and the students cannot save anything to the hard drive.
I had R installed and things were working well. They would save their
.Rdata files to disks.
Now, we need to add more packages. We can't download and we can't
bring
2004 Sep 30
2
dev.print and win.print
Dear R Users:
Was there an answer to the question about
using dev.print and win.print to print as horizontal = FALSE,
please?
I was working on it and I didn't find the solution.
R 1.9.1 Windows
Thanks,
Erin Hodgess
mailto: hodgess at gator.uhd.edu
2006 Apr 24
4
GUI font size
Dear R People:
On the Edit menu, there is a GUI preference tab.
On the Font option, the highest value is 18.
Has anyone ever had the font size set larger than that will any
success, please?
Thanks,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
PS Windows, R 2-2-1
2007 May 25
1
windows to unix
Dear R People:
Is there any way to take a Windows version of R, compiled from source,
compress it, and put it on a Unix-like environment, please?
thanks in advance,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
2005 Jun 06
2
intervals and data frames
Dear R people:
I have a vector which runs from -1 to 1, by .1, inclusively.
Easy to set up. x <- seq(-1,1,.1)
I then sample 3 numbers from x.
y <- sample(x, 3)
Suppose one of my values is -0.7. I want to set up an interval
around that
y1 <- pmax(y-0.1,-1)
y2 <- pmin(y+0.1,1)
For the value -.7, the interval will run from -.8 to -.6.
There will be several intervals.
Again, nothing
2007 May 22
4
Parallel processes
Dear R People:
I was wondering if there were any packages for parallel programming in R.
According to the R-help, at one time there was a package called SNOW. It doesn't seem
to exist anymore.
Any help would be much appreciated!
Sincerely,
Erin Hodgess
mailto: hodgess@gator.uhd.edu
[[alternative(swapped) HTML version deleted]]
2004 Jun 08
4
off topic publication question
Dear R People:
Please excuse the off topic question, but I
know that I'll get a good answer here.
If a single author is writing a journal article,
should she use "We performed a test"
or "I performed a test",
please?
I had learned to use "we" without regard to the number
of authors. Is that true, please?
Thanks for the off topic help.
Sincerely,
Erin
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 =
2006 Jan 08
2
sending methods to a new package
Dear R People:
When creating a package, how do you include new methods and classes,
please?
I'm using the pacakge.skeleton command as a starting point.
Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
2006 Jun 21
3
latex function with lm
Dear R People:
I have used the "latex" function from the Hmisc
package and it is just great!
However, I have a new question regarding that function:
is there an option for summary(lm(y~x)), please? There are
options for different types of objects, but I didn't see one
for that. Maybe I just missed it.
Thanks in advance!
R for Windows Version 2.3.1
Sincerely,
Erin Hodgess