On Sun, 2006-04-16 at 17:54 +, Ben Bolker wrote:
Marc Schwartz MSchwartz at mn.rr.com writes:
On Sat, 2006-04-15 at 20:59 -0300, Bernardo Rangel tura wrote:
Hi R-masters
I need compute generalized hypergeometric function.
I look in R-project and R-help list and not find
the desired factor levels
table(factor(x, levels = 0:12))
0 1 2 3 4 5 6 7 8 9 10 11 12
0 0 4 2 5 6 1 0 2 0 0 0 0
For the barplot:
barplot(table(factor(x, levels = 0:12)))
HTH,
Marc Schwartz
__
R-help@stat.math.ethz.ch mailing list
dim2_no5 NaN NaN NaN NaN NaN
Note that for rows where the total is 0, you end up with NaN (Not a
Number), as opposed to 0.
Does that get you want you want?
HTH,
Marc Schwartz
__
R-help@stat.math.ethz.ch mailing list
https
, names.arg = c(one, two, three, four), las = 2)
You can also use the axis() function separately:
barplot2(1:4)
axis(1, labels = c(one, two, three, four), las = 2)
Setting par(las = 2) rotates the axis labels so that they are
perpendicular to the axis.
See ?par for more information.
HTH,
Marc
for example than for 50 to 100, and so on?
Thanks in advance for any help,
Monica
Monica,
See the barplot2() function in the 'gregmisc' package on CRAN, which
supports the use of log axis scaling.
For example:
barplot2(c(5000, 50, 75, 100), log = y)
HTH,
Marc Schwartz
) directly,
if there is a particular paper you are interested in.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
()$browser to use the script file.
Note also that the recent version of the Mozilla standalone browser is
called Firefox, in recognition of the existence of the Firebird
(formerly Interbase) SQL database project.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED
and rmutil.zip below the middle of the
page.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
clients benefit from it.
..and I sleep just fine (when I do sleep)... :-)
Regards,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting
is the ability to do just that when you need to.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Fri, 2004-06-04 at 12:47, Tamas Papp wrote:
On Fri, Jun 04, 2004 at 11:06:59AM -0500, Marc Schwartz wrote:
I agree that quality and value are important, but I think that the issue
of cost should not be discounted out of hand. Value (for both company
and client) is directly tied to cost
On Fri, 2004-06-04 at 14:26, Paul Gilbert wrote:
Marc Schwartz wrote:
snip
I agree that quality and value are important, but I think that the issue
of cost should not be discounted out of hand. Value (for both company
and client) is directly tied to cost.
[snip ...]
Marc
I
-patched
./R-patched/tools/rsync-recommended
cd R-patched
./configure
make
I actually have the above in a script file that I can just run quickly,
when I want to update the code.
I am now running FC2, so if you have any problems, drop me a line.
Best regards,
Marc Schwartz
On Mon, 2004-06-07 at 15:51, Gavin Simpson wrote:
snip
Thanks Roger and Marc, for suggesting I use ./tools/rsync-recommended
from within the R-patched directory.
This seems to have done the trick as make completed without errors this
time round. The Recommended directory also contained
On Tue, 2004-06-08 at 06:23, Prof Brian Ripley wrote:
On Tue, 8 Jun 2004, Gavin Simpson wrote:
Marc Schwartz wrote:
On Mon, 2004-06-07 at 15:51, Gavin Simpson wrote:
snip
snip
Perhaps I am being dense, but in reviewing the two documents (R Admin
and the CRAN sources
On Tue, 2004-06-08 at 12:40, Peter Dalgaard wrote:
Marc Schwartz [EMAIL PROTECTED] writes:
wget -r -l1 --no-parent -A*.gz -nd -P src/library/Recommended
http://www.cran.mirrors.pair.com/src/contrib/1.9.1/Recommended
The above _should_ be one one line, but of course will wrap here
On Tue, 2004-06-08 at 20:18, ivo welch wrote:
thank you, marc. I will play around with these parameters tomorrow at
my real computer. yes, the idea is to just create an .eps and .pdf
file, which is then \includegraphics[0.25\textwidth]{} in pdflatex. I
need to tweak with the parameter
On Tue, 2004-06-08 at 21:02, Duncan Murdoch wrote:
On Tue, 08 Jun 2004 21:18:34 -0400, ivo welch [EMAIL PROTECTED]
wrote:
And once I
do this, I need different R parameter defaults on the axes. With the
advice I have gotten, I think I am all set now. However, I am a little
bit surprised
On Wed, 2004-06-09 at 09:30, Uwe Ligges wrote:
ivo welch wrote:
Thanks again for all the messages.
Is the 4% in par('usr') hardcoded? if so, may I suggest making this a
user-changeable parameter for x and y axis?
See ?par and its argumets xaxp, yaxp which can be set to i.
On Thu, 2004-06-10 at 11:26, Uwe Ligges wrote:
Rishi Ganti wrote:
I have a data frame called totaldata that is 10,000 rows by about 9 columns.
If about 9 equals 2, the behaviour reported below is expected.
That is, of course, for sufficiently large values of about...
;-)
Marc
://www.stattransfer.com/html/formats.html
They do support Windows, MacOS and Unix/Linux. Demo downloads are
available from: http://www.stattransfer.com/html/download.html
Unix/Linux pricing is available at:
http://www.stattransfer.com/html/prices_-_unix.html.
HTH,
Marc Schwartz
search applet is being found and properly enabled, which is
typically the primary source of problems.
Check the above and let us know.
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read
of Sex and Age. Within each panel
will be two groups of bars, one each for the Survived Yes/No status.
Within each group will be one bar for each Class.
That is one quick way of grouping things, but you can alter that and
other plot attributes easily.
HTH,
Marc Schwartz
information.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
tick mark labels in reverse order
axis(1, at = pretty(-x), labels = rev(pretty(x)))
axis(2, at = pretty(-y), labels = rev(pretty(y)))
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read
with a quick check.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Thu, 2004-07-01 at 19:26, Marc Schwartz wrote:
On Thu, 2004-07-01 at 19:02, Erin Hodgess wrote:
Dear R People:
In library(its), there is a command priceIts.
There is a problem with this command. It is returning an error message:
ibm1 - priceIts(instrument=ibm,start=1998-01
.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
with a single segment, but
this is really quite slow for my purposes, as I have several thousand
lines total to plot.
Take a look at ?matplot or ?matlines depending upon which one might make
sense for your particular application. Both functions are on the same
help page.
HTH,
Marc Schwartz
?
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
, relative to grammar and
punctuation, suggests that the HTML page was converted from another
format, perhaps Word or PDF. Some things do not quite make sense, but
you can get the basic idea.
Note also the use of the word 'limitation' above rather than
'prohibited'.
HTH,
Marc Schwartz
character during your import. See ?read.table for the family of related
functions and the default argument values for 'sep', which is the
delimiting character.
You should also check your source data file, since it may be
problematic.
HTH,
Marc Schwartz
On Mon, 2004-07-05 at 09:49, Ernesto Jardim wrote:
Hi,
Is there a function to estimate the skewness of a distribution ?
Thanks
EJ
See skewness() in CRAN package 'e1071'.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https
the nature of
truehist(), so that helps to clear up that mystery :-)
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting
)
0102
I'd be curious to get any feedback on this and if someone has any
thoughts on any gotchas with this approach.
Thanks and I hope that this is of some help.
Marc Schwartz
__
[EMAIL PROTECTED
On Mon, 2004-07-05 at 23:22, Gabor Grothendieck wrote:
Marc Schwartz MSchwartz at MedAnalytics.com writes:
the likely overhead involved in paste()ing together the rows
to create objects
I thought I would check this and it seems that in my original f1 function
its not really
reviewing the following posts by Frank Harrell on
this subject:
http://maths.newcastle.edu.au/~rking/R/help/02b/4210.html
http://maths.newcastle.edu.au/~rking/R/help/02b/3111.html
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https
. Ripley has already done the work
for you in the 'mix' package on CRAN:
http://cran.us.r-project.org/src/contrib/Descriptions/mix.html
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do
-0.6788456 1.9979801 -0.4026760 0.1781791 -1.1540434
[7] -1.0842728 1.6042602 -0.7950492 -0.1194323 0.4450296 1.9269333
[13] -0.4456181 -0.8374677 -1.1898772 1.7353067 1.8619422 -0.1679996
[19] -0.2656138 -1.5529884
b
[1] 0 0 1 0 1 0 0 1 0 0 1 1 0 0 0 1 1 0 0 0
HTH,
Marc Schwartz
of doing NA elimination
most efficiently? sincerely, /iaw
---
ivo welch
professor of finance and economics
brown / nber / yale
Take a look at ?complete.cases
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman
option is to use the read.xls() function in the 'gregmisc'
package on CRAN or install OpenOffice.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R
On Wed, 2004-07-07 at 13:44, Marc Schwartz wrote:
On Wed, 2004-07-07 at 13:21, Park, Kyong H Mr. RDECOM wrote:
Hello, R users,
I am a very beginner of R and tried read.csv to import an excel file after
saving an excel file as csv. But it added alternating rows of fictitious NA
values
for Windows
The above two tools provide for a wide variety of functionality beyond
syntax highlighting.
There is a syntax highlighting file listed at the above site for jEdit.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch
in a
histogram type of plot using vertical lines. If you want a scatterplot
type of graphic, use:
plot(table(x), log = y, ylim = range(table(x)), type = p)
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
above. If the filename
only is used, it needs to be in the current working directory or you get
the error that Spencer experienced.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do
,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
HTH,
Marc Schwartz
On Mon, 2004-07-12 at 13:19, Chuck Cleland wrote:
Darren also might consider binconf() in library(Hmisc).
library(Hmisc)
binconf(1, 10, method=all)
PointEstLower Upper
Exact 0.1 0.002528579 0.4450161
Wilson 0.1
recommendations.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
8 91 2 34 5 610 11 12
[21,] 7 8 910 11 12 1 2 34 5 6
[22,] 7 8 910 11 12 4 5 61 2 3
[23,] 7 8 94 5 61 2 310 11 12
[24,] 7 8 94 5 610 11 12 1 2 3
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing
On Tue, 2004-07-13 at 14:29, Marc Schwartz wrote:
On Tue, 2004-07-13 at 14:07, Jordi Altirriba Gutirrez wrote:
Dear R users,
Im a beginner user of R and Ive a problem with permutations that I dont
know how to solve. Ive 12 elements in blocks of 3 elements and I want only
to make
On Tue, 2004-07-13 at 15:02, Rolf Turner wrote:
Marc Schwartz wrote (in response to a question from Jordi Altirriba):
snip
This does not solve the problem that was posed. It only permutes the
blocks, and does not allow for swapping between blocks. For instance
it does produce
in the function that can be
brought to bear, but it is a start.
In either case, the restricted permutations appear to be around 94%, if
all of the assumptions are correct.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch
there, unless you have a corrupted/incomplete installation.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
will reply (RSN) with the acceptance or rejection
of my guess, however... ;-)
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting
use of loops.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
particular machine is the use of .Machine, which will provide you with a
list of specifications. See ?.Machine for additional information here.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do
, probably as a result of the multiple authors involved.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
, June 2003
http://cran.r-project.org/doc/Rnews/Rnews_2003-1.pdf
and
S4 Classes and Methods
by Fritz Leisch
useR! 2004 Keynote Lecture
Slides available at:
http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Leisch.pdf
HTH,
Marc Schwartz
)
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
of
MyData$PUNTAR is in c(IX49, IX48).
If you need to engage in more complex boolean comparisons for
subsetting, especially on multiple columns, then the function subset()
would be better suited.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https
than the number of rows in 'x'. In this case, y$value is repeated twice.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting
.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
I echo Andy's experience on FC2. I was able to install the package here
and got the same warning messages.
Despite trying to use some web sites to translate the german text, I am
unsure of the 'true' meaning. I think it is something pertaining to
target patterns not being found, which leads me to
:
http://cran.us.r-project.org/src/contrib/Descriptions/SuppDists.html
So use:
install.packages(SuppDists)
library(SuppDists)
?ghyper
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do
at the moment?
BTW, you should upgrade to R 1.9.1, as you are two versions behind at
this point.
HTH,
Marc Schwartz
On Wed, 2004-07-28 at 23:08, Liaw, Andy wrote:
1. Could it be that your computer is behind a firewall? If so, try reading
the R for Windows FAQ.
2. Please ask R-related question on R
with an approach that is more efficient I suspect.
For 1,200 rows:
system.time(apply((matrix(rep(MyData, 400))), 1, NewRow))
[1] 0.29 0.00 0.33 0.00 0.00
(Gabor? ;-)
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch
, ([\\(\\) ],
ncol = 3, byrow = TRUE) + 1
paste((, TempMat[, 2], , TempMat[, 3], ), sep = ,
collapse = )
}
Note that with multi digit numbers, it gives a correct result:
NewRow((10 99)(101 4)(7 9)(5 9)(1 5))
[1] (11 100)(102 5)(8 10)(6 10)(2 6)
HTH,
Marc Schwartz
, it is not a viable option.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
)
box(which = figure)
plot(1:5)
box(which = figure)
In this case, you now would need to play around with the axis tick
marks, labels, etc.
Can you clarify which space you are referring to?
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https
://www.scansoft.com/pdfconverter/demo/.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
-12-15 -6 -3 6 9
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Fri, 2004-07-30 at 20:28, Marc Schwartz wrote:
On Fri, 2004-07-30 at 18:30, Adaikalavan Ramasamy wrote:
There was a BioConductor thread today where the poster wanted to find
pairwise difference between columns of a matrix. I suggested the slow
solution below, hoping that someone might
))
[1] TRUE
So to the question in your subject, no k (a double by default) is not
the same as k:k (a integer by default).
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read
On Mon, 2004-08-02 at 10:09, Marc Schwartz wrote:
snip
Thus, in the case of:
identical(4, 4:4)
the first 4 is of type double, while the 4:4 is of type single. Thus the
result is FALSE.
snip
Correction. The above sentence should read:
the first 4 is of type double, while the 4:4
some issues related to the same devel libraries,
including the XFree86-Mesa-libGL (or xorg-x11-Mesa-libGL) and
XFree86-Mesa-libGLU (or xorg-x11-Mesa-libGLU) RPMS.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman
On Sun, 2004-08-08 at 12:53, Marc Schwartz wrote:
In the case of the RGL package, you might want to review this recent
thread:
https://www.stat.math.ethz.ch/pipermail/r-help/2004-August/thread.html
Correction on the above URL. I pasted the wrong one here. It should be:
https
and the Time and Obs elements are also separated
by a in each.
See ?strsplit for more information.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R
On Sun, 2004-08-08 at 14:10, Dr Mike Waters wrote:
snip
Thanks for the responses guys.
I used to have RH9 installed on this machine and I found out about the
separate developer packages then. I thought that I had got the relevant
XFree devel package installed, but although it showed up in
On Mon, 2004-08-09 at 08:13, Dr Mike Waters wrote:
snip
Marc,
Sorry for the confusion yesterday - in my defence, it was very hot and humid
here in Hampshire (31 Celsius at 15:00hrs and still 25 at 20:00hrs).
What had happened was that I had done a clean install of WB Linux, including
On Tue, 2004-08-10 at 08:15, Dr Mike Waters wrote:
snip
From unpacking the tarball and running ./configure in the R source
directory, I obtain the fact that crti.o is needed by ld.so and was not
found. This file is not present on the system. This file, along with crtn.o
is usually installed
adjust the 'line = 0' argument to move the labels closer to and
farther away from the axis.
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org
, horizontal = FALSE)
par(mfrow = c(2, 2))
plot(1:5)
barplot(1:5)
boxplot(rnorm(10))
dev.off()
# Do 3 x 1
postscript(file = ThreePlots.ps, horizontal = FALSE)
par(mfrow = c(3, 1))
plot(1:5)
barplot(1:5)
boxplot(rnorm(10))
dev.off()
Can you provide an example of the code that you are using?
Marc
mathematical operations are to be performed with the ID's then
leaving them as doubles makes most sense.
Dan, more information on the numerical characteristics of your system
can be found by using:
.Machine
See ?.Machine and ?object.size for more information.
HTH,
Marc Schwartz
On Fri, 2004-08-13
On Sat, 2004-08-14 at 08:42, Tony Plate wrote:
At Friday 08:41 PM 8/13/2004, Marc Schwartz wrote:
Part of that decision may depend upon how big the dataset is and what is
intended to be done with the ID's:
object.size(1011001001001)
[1] 36
object.size(1011001001001)
[1] 52
On Sat, 2004-08-14 at 12:01, Marc Schwartz wrote:
There also appears to be some memory allocation adjustment at play
here. Note:
object.size(factor(1))
[1] 244
object.size(factor(1, a))
[1] 236
Arggh.
Negate that last comment. I had a typo in the second
On Sat, 2004-08-14 at 13:19, Prof Brian Ripley wrote:
On Sat, 14 Aug 2004, Marc Schwartz wrote:
object.size(a)
[1] 44
object.size(letters)
[1] 340
In the second case, as Tony has noted, the size of letters (a character
vector) is not 26 * 44.
Of course not. Both
not have the requisite permissions), see R FAQ 5.2 regarding
installing packages to alternate locations.
HTH,
Marc Schwartz
On Mon, 2004-08-16 at 08:33, Laura Quinn wrote:
As our IT man is currently on holiday I am not able to upgrade to version
1.9.0(or 1.9.1) at the moment, and I see
sections of ?.data.frame
HTH,
Marc Schwartz
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Tue, 2004-08-17 at 09:34, Marc Schwartz wrote:
Take a look at the details, value and coercion sections of
?.data.frame
This must be my week for typos. That should be:
?[.data.frame (in ESS)
or
?[.data.frame (otherwise)
Marc
__
[EMAIL
subset(), the evaluation takes place within the data
frame, so you do not need to use df$column2 in the function call. You
can just use column2, for example:
subset(df, column2 %in% c(factor1, factor2))
See ?factor and ?[.factor for more information.
HTH,
Marc Schwartz
It is in the Description now (at least for 1.9.1 patched):
all.equal(x,y) is a utility to compare R objects x and y testing near
equality. If they are different, comparison is still made to some
extent, and a report of the differences is returned. Don't use all.equal
directly in if
to spreadsheets.
Also, the first example on that page gives you:
## To write a CSV file for input to Excel one might use
write.table(x, file = foo.csv, sep = ,, col.names = NA)
Thus:
write.table(x, col.names = NA, sep = ,)
,Col1,Col2,Col3
Row1,1,1,1
Row2,2,2,2
HTH,
Marc Schwartz
an academic medical environment or via
contracted services.
The above is based upon my own experience, which is largely in
sub-specialty clinical areas. Others may and perhaps will differ, based
upon their own bias.
HTH,
Marc Schwartz
__
[EMAIL
On Thu, 2004-08-19 at 14:42, Liaw, Andy wrote:
From: Duncan Murdoch
On Thu, 19 Aug 2004 13:42:21 -0300 (ADT), Rolf Turner
[EMAIL PROTECTED] wrote :
You wrote:
What's the difference between t.test(x, y) and
pairwise.t.test()? Is
it just that the former takes two
.
-MY
[[alternative HTML version deleted]]
How about?
sapply(1:99, function(i) sprintf(A%02d, i))
or just
sapply(1:99,sprintf,fmt=A%02d)
or yet another variation:
paste(A, formatC(1:99, width = 2, format = d, flag = 0),
sep = )
HTH,
Marc Schwartz
function
is called do_sample and begins at line 391 (for 2.0.1 patched) in the
aforementioned C source file.
HTH,
Marc Schwartz
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http
:9 with a ,
therefore leaving only the digits.
See ?gsub for more information.
HTH,
Marc Schwartz
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting
as follows:
points(cumsum(meantheta1), pch = 19)
lines(cumsum(meantheta1), lty = solid)
See ?cumsum, ?points and ?lines for more information.
BTW, some strategically placed spaces would help make your code a bit
more readable for folks.
HTH,
Marc Schwartz
in tcl/tk, which makes it cross-platform compatible if
that is an issue for you.
HTH,
Marc Schwartz
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting
On Wed, 2005-04-13 at 15:03 -0700, Berton Gunter wrote:
WHOA!
Do not redefine R functions (especially [ !) in this way! That's what R
classes and methods (either S3 or S4) are for. Same applies to print
methods. See the appropriate sections of the R language definition and the
book S
301 - 400 of 1450 matches
Mail list logo