Displaying 20 results from an estimated 2000 matches similar to: "save the result into a word file"
2008 Nov 24
3
multiple plots in R
Hi, I just try to draw multiple plots in one page using R, I used par
command. For example I have 7 plots, but instead of arranging them in
the default way
plot1 plot2 plot3
plot4 plot5 plot6
plot7
I want them in this order
plot1 plot2 plot3
plot4 plot5 plot6
plot7
Could somebody tell me how to do this, please? Thanks so many.
Suyan
2008 Mar 14
2
combine two data-frames into one
Hi Everyone:
I need some help on combining two datasets into one. Since for those
two datasets, there are different variables. Like
In dataset 1, I have
pt x1 x2
1 12 24
2 20 17
In dataset 2, I have
pt x2 x3
3 19 33
4 20 16
The final dataset I want should look as
pt x1 x2 x3
1 12 24 NA
2 20 17 NA
3 NA 19 33
4 NA 20 16
I used setdiff and rbind together and got what I
2008 Oct 28
2
abind
I am trying to combine two arrays with different dimensions into one.
For example
The first one is
1 2 3
4 5 6
The second one is
7 8
9 10
The resulted one would be like
, , 1
1 2 3
4 5 6
, , 2
7 8
9 10
I used abind to do this, but failed. Could somebody please let me
know how to do this in R? Thanks so many.
Suyan
2008 Feb 01
3
Phase Shift
Is there any implementation in R for finding the phase shift between
two continuous signals. I would like to find the average phase shift
for tow signals over two years.
thanks
Stephen
--
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted
2008 Aug 22
2
boxplot
Hi, I just made a boxplot but I want to change the thickness of the
line used for the median to look a little thinner. Could anyone please
help me figuring out the R-code to do it?
Thanks, I really appreciate it.
Suyan
2009 Jul 02
1
skip the error to continue the logistic regression in a loop
Hi, everyone:
I am running logistic regression on a bunch of variables using apply
command. But an error occurs, the whole process stops. I am wondering
if anyone knows how to skip this error and to continue the
regression for the rest of variable.
What I did is that first confine a function to the logistic
regression, then use
apply(data, 2, reg.fun)
Then I got an error which is
[1]
2010 Jul 27
3
Checking package licences including dependencies?
I only recently discovered options("available_packages_filters" =
list(add = TRUE, "license/FOSS")) [cf. help("available.packages",
package="utils") in R 2.10.0 or later] which goes nicely with my
options("checkPackageLicense" = TRUE) [new in R 2.11].
But now I want to purge my library of packages I would not have
installed had I known about
2009 Jun 11
2
How to order an data.table by values of an column?
Hello!
Can you help me? How to order an data.table by values of an column?
Per example:
Table no initial
Categ Perc
468 31.52
351 27.52
0 0.77
234 22.55
117 15.99
table final
Categ Perc
0 0.77
117 15.99
234 22.55
351 27.52
468 31.52
Lesandro
Veja quais são os assuntos do momento no Yahoo! +Buscados
[[alternative HTML version deleted]]
2009 Jun 17
3
tiff() woes
Hello all,
a friend has a problem with tiff() which I was unable to help about. I
searched the error messages to no avail. When he tries:
tiff(filename = "FedeWhyDoesntThisBloodyWork.tif", width = 5, height =
5, units = "cm", bg = "white", res = 1200)
Error in tiff(filename = "FedeWhyDoesntThisBloodyWork.tif", width =
5, :
unable to start device
2010 Jul 01
2
Documentation for library() and how to specify missing arguments
I can, after carefully reading about the returned values, see why
library("MASS", "MASS", character.only=TRUE)
has to chose between loading the package and displaying the help (I
thought I had found a nice shortcut), but wouldn't the documentation be
better if it said that the two are incompatible and that package= takes
precedence over help=?
As an aside, is there a
2009 Jul 02
2
How to use current value of variable in function definition?
Must be the heat or something but I can't get my brain into gear and
figure out how to get something like
if (1) { c <- 1; foo <- function () print(c); }
c <- 2
foo()
to print 1, not 2. (The real life example is a little more complex, but
you get the idea. I don't want the variable c in the function
definition, I want its value at that time.)
The only thing I have been
2009 Jun 04
3
Fast way of finding top-n values of a long vector
If x is a (long) vector and n << length(x), what is a fast way of
finding the top-n values of x?
Some suggestions (calculating the ratio of the two top values):
library("rbenchmark")
set.seed(1); x <- runif(1e6, max=1e7); x[1] <- NA;
benchmark(
replications=20,
columns=c("test","elapsed"),
order="elapsed"
, sort = {a<-sort(x,
2008 Oct 24
18
Transferring results from R to MS Word
R-users
At the moment I am teaching a course on the use of R for data analysis.
Part of course requirements involves the transfer of results from R to
something that resembles the APA (American Psychological Associations)
type tables to MS Word. Until now I have used the HTML function in the
R2HTML library, with a call like this:
HTML(summary(model1), file("clipboard",
2006 Jul 17
6
Output and Word
Hi
I have just started to have a look at R. I have used most stats software
packages and can use perl, visual basic etc. I am interested in how well
it handles lots of output e.g. tables or charts. How would you get lots
of output most easily and quickly into a Word document?
Sharon Snowdon
------------------------------------------------------------------------
-
FIGHT BACK AGAINST SPAM!
2007 Apr 28
6
Determine how many documents a term occurs in
Is there a fast way to determine how many documents a term occurs in,
besides iterating through every document with TermDocEnum?
--
Best regards,
Stian Gryt?yr
2011 Mar 14
4
Serial Date
Hello R Help,
I'm working in a project with a software that register date and time data in serial time format. This format is used by excel, for exemple. In this format, 40597.3911423958 is 2011/2/23 09:23:15. First part is number os days since 1900/1/1, and second part is a fraction of a day.
I need to make this transformation in R, and use it to make some algebrian operations. I found that
2008 Apr 17
1
odfWeave \Sexpr
Dear All,
Using odfWeave is working fine for me using code chunks <<...>>= ... @
But the inline \Sexpr{date()} is not evaluated and returns again
\Sexpr{date()} instead of "Thu Apr 17 18:15:47 2008".
What might be the reason for that, what do I have to look for?
I'm using Windows XP, R 2.6.1, odfWeave_0.7.3 and OpenOffice 2.4.
Session Info:
R version 2.6.1
2008 Feb 15
12
Transfer Crosstable to Word-Document
# Dear list,
# I am an R-beginner and
# spent the last days looking for a method to insert tables produced
# with R into a word document. I thought about SPPS: copy a table from
# an SPO-file and paste it into a word document
# (if needed do some formatting with that table).
# Annother idea was, to produce a TEX-file,
# insert it and make it a word-table.
# I found the following libraries, which
2007 Nov 05
1
R2HTML package and Open Office: text only pasted
I am trying to use R2HTML (just downloaded from CRAN) to paste R (2.6.0)
results output via the clipboard to OpenOffice Writer and Calc
(version 2.3on WinXPPro)
Pasting into Excel gives a formatted table of results (as expected), but
pasting into Calc simply pastes the HTML code. Trying paste special only
gives an option to paste unformatted text.
Equally, with Writer, in the past when I tried
2008 May 13
2
array dimension changes with assignment
Why does the assignment of a 3178x93 object to
another 3178x93 object remove the dimension attribute?
> GT <- array(dim = c(6,nrow(InData),ncol(InSNPs)))
> dim(GT)
[1] 6 3178 93
> SNP1 <- InSNPs[InData[,"C1"],]
> dim(SNP1)
[1] 3178 93
> SNP2 <- InSNPs[InData[,"C2"],]
> dim(SNP2)
[1] 3178 93
> dim(pmin(SNP1,SNP2))
[1] 3178 93