fname = "John"; lname = "Smith"
ans <- paste( fname, " \\ ", lname )
cat( ans)
print( ans )
Note that ans only has one backslash in it, but print gives you a
source-suitable string with the escape character.
---
stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-
guide.html
and provide commented, minimal, self-contained, reproducible code.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https:/
help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
-
ailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
ot;2007-03-11 06:00:00 GMT" NA "2007-03-11 07:00:00 GMT"
"2007-03-11 08:00:00 GMT"
[5] "2007-03-11 09:00:00 GMT" "2007-03-11 10:00:00 GMT" "2007-03-11 11:00:00 GMT"
"2007-03-11 12:00:00 GMT"
[9] "2007-03-11 1
more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff
View this message in context:
http://r.789695.n4.nabble.com/Finding-unique-elements-faster-tp4700539.html
Sent from the R help mailing list archive at Nabble.com.
__
---
Jeff
pdflatex appears to have run, because it exited. You should look at the tex log
file, the problem is more likely that the latex you sent out to pdflatex was
incomplete.
---
Jeff NewmillerThe
able to look at the
package source code and define your own similar functions for temporary use.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
I don't think that is possible with the ggplot2 package. Try lattice or base
graphics?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Li
Ggplot2 also depends on factors, so learn about them asap. It does have some
support for automatically converting strings to factors in some cases, but it
doesn't always work the way you want it to.
---
Jeff Newm
Yes. The help file for this function explains why it is used.
If you don't want to use it, that is fine.
---
Jeff NewmillerThe . . Go Live...
DCN:B
that we
are so picky on this mailing list about getting sample data along with sample
code... so we know all the pieces of the puzzle that might be giving you
trouble.
-------
Jeff NewmillerThe
ext time... in
particular post using plain text because HTML does not always survive the trip
to us intact.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#.
well together.
Once you know to keep this distinction in mind, you can probably find examples
on the web, such as [1], or in help files such as ?panel.abline.
[1] http://apcg.uoregon.edu/GeogR/topics/lattice.htm
-----
oject.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
needing to read about the drop parameter for
indexing:
?"["
which is also mentioned in the Introduction to R document that accompanies the
software in the section on indexing.
---
Jeff Newmiller
ar[[lname]][[var]]
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#.
is the best way to do this in R?
--
View this message in context:
http://r.789695.n4.nabble.com/Make-2nd-col-of-2-col-df-into-header-row-of-same-df-then-adjust-col1-data-display-tp4700878.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mai
eleted]]
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
Read the posting guide. The solution is likely to depend on your operating
system and graphics devices.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
Please keep the list in the loop.
Take a look at my code again... the factor function can accept a vector of all
levels you want it to include.
---
Jeff NewmillerThe . . Go Live
110L, 93L, 67L, 35L, 37L, 36L, 34L, 28L, 39L, 17L, 17L, 9L, 6L, 3L, 2L, 1L, 8L, 20L, 53L, 70L, 93L, 75L, 59L, 74L, 76L, 65L, 53L, 30L, 22L, 31L, 9L, 8L, 5L, 2L, 1L)), .Names = c("datetime", "season", "holiday", "workingday", "weather", "temp",
g mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
z.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe .
be
wrong.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Software/Embedded C
for general questions about R (yes, read the
Posting Guide).
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
You are welcome, but you have not yet followed the Posting Guide instructions,
so you may not have prompted someone familiar with your situation to respond
yet.
---
Jeff NewmillerThe
ng some scalars
# and vectors together for return from the function.
return(c(s, r, ss, mean, minp, tanp, wminp, wtanp, w))
# seem to be missing a brace "}"
Have you read the help file for the "optim" function? It includes some
options for constrained optimization that might h
Unfortunately for you, there is a no-homework policy on this list. Please read
the Posting Guide.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
Do you have curl installed? RCurl just uses your external-to-R system
installation of the curl software to do its real work.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
But all numeric types in R are vectors. So although it might be a good idea to
be redundant to aid beginners, the phrase "a numeric" is accurate.
---
Jeff NewmillerThe .
point.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer
in practically every email program... if yours
really does not support it then you need to use another program.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
(Date_original, " AEST ")
I would be so thankful if you help me out. Thanks
Cheers,
Faranak
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the postin
Let windows prompt you for your password when it is needed... don't run
anything as Administrator directly unless you are prepared to fix the problems
that occur.
---
Jeff Newmiller
into re-installing R from
r--project.org.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff Newmiller
Because the root directory is not a place for saving your files in. Put your
files in your Documents directory.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
t.rda")
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Softwar
syntactically incorrect, and I don't
understand what you hope to accomplish by assigning an empty string to a
numeric in your last line.
---
Jeff NewmillerThe . . Go Live..
Please don't cross post. You have your answer on crossvalidated.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Li
Please read the posting guide. This subject is off topic (should be on R-devel)
and both this list and the R-devel list are plain-text-only mailing lists so
your HTML is mangled.
---
Jeff NewmillerThe
The problem is that I cannot see how your use of rle and/or seq_along could
possibly lead to the sample result you are giving us. That is why I asked for a
new example.
---
Jeff NewmillerThe
A AARA C 1 10
9: AA AARA C 1 1 0
10: AA RRRA C 1 10
On Fri, 2 Jan 2015, Jeff Newmiller wrote:
The problem is that I cannot see how your use of rle and/or seq_along
could possibly lead
hexbin package for binary data handling, and
if you still have issues then post again, following the posting guide
recommendations.
---
Jeff NewmillerThe . . Go Live...
DCN
to FP16. If
you came up with a portable version, I imagine that would be a nice
contribution to make to hexView.
[1] https://fgiesen.wordpress.com/2012/03/28/half-to-float-done-quic/
---
Jeff Newmiller
data frames gets confusing.
I wish column assignment also did this transformation...
b$date2 <- a # leads to overcomplicated data frame
b$date3 <- as.POSIXct(a) # my usual idiom
---
Jeff Newmiller
talk to your sysadmin?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Pl
t;not so easy."
You might find more domain-specific help in the Bioconductor help forums...
this mailing list focuses on using R assuming you know your algorithm, not on
suggesting algorithms.
---
Jeff
d
laptops. That would not be an option on most netbooks (though using external
computing facilities is still an option... you just have to fall back on
external resources sooner with a netbook).
---
Jeff
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Software/Embedded
library(gtools)
running(1:5, fun=I, align="center", width=3, allow.fewer=TRUE)[c(-1,-7)]
Clue found at http://stackoverflow.com/questions/1311920/lagging-variables-in-r
---
Jeff Newmiller
If you have two screens the "zoom" plot window can fill the second screen. Some
laptops can handle a second external screen if you use a docking station.
---
Jeff NewmillerThe .
forums with
a reproducible example. If it turns out to be a bug in the package, keep in
mind that that is a Bioconductor package and they, too, have their own support
forum.
---
Jeff NewmillerThe
Read the help page for the names function:
?names
... note particularly the examples section.
You might also find the fact that the paste0 function works on vectors to be
helpful:
paste0( "bp_", 1:6 )
---
Jeff
ry but not sufficient... you need to
supplement with the book and/or lots of examples/training.)
-------
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
other list message. This will avoid our seeing a mangled version if
your message and being perplexed.
-------
Jeff NewmillerThe . . Go Live...
DCN:Basics: #
tical opinion, not from
experience.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Pl
o you know what we will see.
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:
g guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:
You seem to be writing in a jargon that is not typical on this list, and I
cannot identify what package you are using. I suspect that you need to be
asking your question in the Bioconductor support area.
---
Jeff Newmiller
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
in plain text
on this mailing list.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
enting the wheel and have already reviewed their tools.
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
-------
Jeff NewmillerThe . . Go L
more extensive documentation about those APIs that you will need
to be familiar with in order to make progress with them.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#.
elp@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
------
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Software
directory or let the user
decide where to put it.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO
, and this list is
not a good place for studying statistics theory (read the Posting Guide). You
might try stats.stackexchange. com.
---
Jeff NewmillerThe . . Go Live...
DCN
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
example that illustrates the type of data you are working with
as well as your code.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
Honestly? Did you try "rcurl https windows" (without the quotes)?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#
In general this depends what you plan to do with those results. I suspect you
are looking for something like knitr with rmarkdown (.Rmd files to create HTML
or Word) or LaTeX (.Rnw files to create PDF).
---
Jeff Newmiller
documentation on the X parameter).
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
in libcurl".
http://curl.haxx.se/docs/faq.html
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live:
Don't know anything about SL but have you installed a Java run time independent
of R?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Li
I am not aware that Windows demands double quotes for anything in R. I think
the spaces was the problem.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
and provide commented, minimal, self-contained, reproducible code.
-------
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live
ved syntaxes over the
overloaded = from, say, Basic. I am sure you can get by with the syntactic
overloading, but if you have the option of reducing ambiguity, why not use it?
-------
Jeff Newmiller
n show you how to connect the dots using R.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.
riodic!) time signals.
Hoping this helps, I remain
With best wishes,
Frank
Franklin Bretschneider
Dept of Biology
Utrecht University
brets...@xs4all.nl
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -
ng list archive.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
You may be able to learn something useful from how the maptools package handles
that dependency?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
;lines".
Windowing (Hann, Hanning, Blackman etc.) then improves the spectrum, but that's
a different story.
Best wishes,
Frank
---
Franklin Bretschneider
Dept of Biology
Utrecht University
brets...@xs4all.nl
-
u can also
wrap it up in a function and set debug mode for that function and then you can
single step through it.
One thing that looks wrong is lack or braces surrounding the body of the for
loop.
---
Jeff Newm
?aperm
aperm(A, c(2,1,3) )[,3:1,]
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
ve cobbled together some code to
read part of the header but it doesn't parallel the format definition very well.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#.
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
The set of things that R can do is not a subset of the set of things packages
may have been written for.
Have at it.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
You might also find Pat Burns' "The R
Inferno" entertaining as well (search for it in your favorite search engine).
---
Jeff NewmillerThe . . Go Live...
DCN:Bas
ve you from having to retype DF more than once, but in
this case even achieving that requires more typing than the above does.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
Ah, ask in the RStudio support area?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead
Time to (re)read the Posting Guide... questions about unreleased versions of R
are off topic here. Go to R-devel.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
if you are sure it is a bug then filling a report is
the right thing to do.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Li
list. We
don't see the formatting that you see, so don't delude yourself into thinking
that we do.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#.
801 - 900 of 3926 matches
Mail list logo