Best not to be pedantic, John, unless you are going to be right. Please read
section 10.3.5 in the R Language Definition document. This is R, not C.
---
Jeff NewmillerThe . . Go
You have two named objects when your goal is to have one that contains five
others.
ASL <- vector( "list", 5 )
for (j in 1:5){
ASL[[j]] <- vector( "list", 5 )
for (i in 1:5) {
ASL[[j]][[i]] <- i^j
}
}
---
r specific problem as such
tricks are not R-specific.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.
not a good name
to use.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research En
R CMD INSTALL --build packagename
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
posting using plain text (a setting in your email program) so we
don't get garbled info from you, and providing a reproducible example.
---
Jeff NewmillerThe . . Go Live..
-visualstudio-and-gcc
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
On Windows it builds a zip file. If you are on Linux, you might [1] need [2].
[1] https://stat.ethz.ch/pipermail/r-help/2005-January/063596.html
[2] http://cran.r-project.org/doc/contributed/cross-build.pdf
---
Jeff Newmiller
d does not do what you
want it to, I am not sure we are speaking of the same kind of file. If we are,
then you may not have your system configured correctly.
---
Jeff NewmillerThe .
This sounds like you should read FAQ 2.19.
Next time you post, please read the Posting Guide first. In particular, please
use plain text since your HTML-formatted email was messed up on the mailing
list.
---
Jeff Newmiller
This is a math question, not an R question. You cannot give numbers to asin
that are less than -1 or greater than 1 and get a defined answer.
---
Jeff NewmillerThe . . Go Live...
DCN
cible-example
-------
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (So
reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #
et_wrap function with ggplot. If that tip is not
>sufficient, then re-read my previous response to guide you in posting a more
>complete question.
-------
Jeff NewmillerThe . . Go Live
)
%>% ungroup
%>% select( -gp )
%>% as.data.frame
)
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#.
ile into your example so we could
troubleshoot your input process better if that is where your problem is.
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff Newmiller
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
col=ncol( dtam ), nrow=nrow( dtam ), byrow=TRUE ) )
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteri
I cannot see how that would be possible. R must be installed in order to use it.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
roject.org/posting-guide.html
[2]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:
ys to accomplish the kinds
of things you might want to accomplish without them, and those alternatives
often don't involve explicit loops at all.
---
Jeff NewmillerThe . . Go L
Sigh. To be positive is to be wrong at the top of one's lungs. Next I will be
told R has a goto statement.
---
Jeff NewmillerThe . . Go Live...
DCN:B
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Software/Embedded
I suspect that the tabular function in the tables package would handle this
task.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
text where spaces are present.
-------
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Pl
Why do you have single quotes inside your single quotes?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
o call. If you need to
manipulate an object, use some form of method dispatching (I like S3, but you
have alternatives) on an object you pass in.
---
Jeff NewmillerThe . . Go L
# so don't use cbind when making a data frame
library( dplyr )
result <- dat %>% group_by( g ) %>% do( answer = d_rule( . ) ) %>% as.data.frame
---
Jeff Newmiller
is on topic...
R-sig-db.
-------
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#.
is certainly not wisdom."
>Clifford Stoll
>
>
>
>
>On Thu, Mar 5, 2015 at 7:54 AM, Jeff Newmiller
> wrote:
>> The aggregate function applies FUN to vectors, not data frames. For
>example, the default "mean" function accepts a vector such as a column
>
n't use "aggregate" very often.
-------
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.
location of your
choice and dig in.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
Please read the Posting Guide. Unreleased versions of R are off-topic in this
mailing list (see the R-devel mailing list). RStudio-specific questions are
also off-topic here (should be about R, not IDEs).
---
Jeff Newmiller
//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
e
this problem.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#.
uncompelling, though. Of
the information necessary to draw valid conclusions is absent, the results you
obtain by doing so is going to be questionable at best.
---
Jeff NewmillerThe . . Go
optional in my workflow because I
always have R code that can regenerate them.
.Rprofile files offer consistency of behavior regardless of which working
directory you use, and you can comment them.
---
Jeff Newmiller
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
I was positive I knew WTF I was doing until you set me straight, Rolf. ;-)
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
seq(950L, 1000L)
myvector5 <- match(myvector4, myvector3)
I think the as.list is working because match is internally converting to
character and comparing that... which makes the as.list solution rather
inefficient art best.
You don't say which operating system you are using, but this sounds like it
could easily be affected by your OS (even of in this case it isn't). My
suggestion would be to use a temporary file.
---
Jeff
This is nonsense. Please provide a reproducible example.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
ou from scratch.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (
Not reproducible (sample data missing).
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
Perhaps read ?try
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
topic here, but there is a button/menu
item that will execute these commands for you in the GUI of that program.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. #
producible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Researc
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
de by the time it gets to us.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Pl
Upgrade your copy of R to the latest.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead
is corrupted because you are posting using
HTML format email rather than plain text as the Posting Guide tells you to.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics
Another thought... if you have a ".RData" file in your working directory, you
might want to delete or rename it.
---
Jeff NewmillerThe . . Go Live...
DCN:
) <- c( "chrom", "start.pos", "end.pos", "hets", "het_stat",
"homs", "hom_stat", "indiv" )
---
Jeff NewmillerT
Perhaps you had forgotten to use header=TRUE when you read the data in.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
It is difficult to read your code because the HTML format messes it up, but I
think your ggplot function call is missing a parenthesis between fill=Prostate
and the + sign.
---
Jeff NewmillerThe
hood.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Software/Emb
I don't understand what you expect. Stacked bar charts add the values together.
Perhaps that is not really how you want to represent these data?
---
Jeff NewmillerThe . . Go
%y')
And why in the world are you converting to factor and back? Perhaps because you
are not preventing conversion to factor when you read in your actual data? Do
you know about the stringsAsFactors argument to read.table and friends?
---
Have you read the error message? Can you load the other packages being
complained about? Have you read and considered using the information supplied
by "?maintainer" ?
---
Jeff Newmiller
use
your email program so you don't send us garbage to guess at.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
ollowed my other advice.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
R
The Posting Guide recommends searching the archives before posting. Consider
[1] and learn.
[1] https://stat.ethz.ch/pipermail/r-help/2007-March/127981.html
---
Jeff NewmillerThe
Please stop... you are acting like a broken record, and are also posting in
HTML format. Please read the Posting Guide and demonstrate that you have used a
search engine on this topic before posting again.
---
Jeff Newmiller
when it comes to
Excel data. In most cases I just export the data to CSV and avoid the issue.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
your request using R do we can understand you.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO
Please stop posting using HTML (as the Posting Guide warns you), and follow
John Kane's advice. Your reply below is not helping us understand as well as
you seem to think it should.
---
Jeff Newm
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
You might find the data.table package helpful. It uses an index sorted with a
radix sort and minimizes moving the data around in memory.
---
Jeff NewmillerThe . . Go Live...
DCN
ince users should normally be
updating their personal libraries which will take precedence over the
system-wide library.
---
Jeff NewmillerThe . . Go Live...
DCN:
.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
obfuscating a password is worse than leaving it plain, because that would
be misleading the user about how securely the password is being managed.
---
Jeff NewmillerThe . . Go Live...
DCN
have specific questions that you can
supply reproducible examples for then R-devel or one of the OS-specific R
mailing lists would be more appropriate than this list.
---
Jeff NewmillerThe
have better answers.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. wit
Perhaps you should learn to use Google? It came up easily there for me. There
is also an R package called "sos" that can help you find capabilities among the
thousands of contributed packages on CRAN.
---
Jeff
eap.
Note that while you can set up Windows servers in the cloud, they are not as
well suited to this remote use as Linux servers are, so it is worth the effort
to learn enough to do that.
---
Jeff Newmiller
In the same way they would be different in any programming language. See R FAQ
7.31.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go
successfully, and if you
make your example reproducible [1].
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN
ic of your question
is probably best addressed on the R-sig-geo mailing list. It looks nontrivial
to me, but there might be a canned solution out there.
---
Jeff NewmillerThe . . Go
le-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
You really need to read the help page for uniroot. The sign needs to be
different at the ends of the starting interval. This is a typical limitation of
numerical root finders.
---
Jeff NewmillerThe
Maybe what you really want is the ?stack function.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live
Debugging in R applies one statement at a time. If you want to debug within a
statement you can "step into" the function calls within the statement or you
can execute the function calls separately and inspect the result. Your function
consists of one statement so the debugger only has one place
more before posting this, and thereby managed (mirabile dictu!)
to answer them myself.
Can anyone help me out with questions (1) --- (4)? Please keep it simple and
very explicit, for I am a bear of very little brain and long words bother me!
Thanks.
cheers,
Rolf Turner
--
Tec
You can extract the names into a character vector with ls and then use
grep(..., values=TRUE ) to select which ones you want to remove, and then pass
that list to rm.
However, due to the way R handles memory you are unlikely to see much savings
by doing this. I would recommend focusing on creat
callr_2.0.4 magrittr_1.5
whisker_0.3-2scales_0.5.0
[37] backports_1.1.2 htmltools_0.3.6 assertthat_0.2.0 colorspace_1.3-2
stringi_1.2.3lazyeval_0.2.1
[43] munsell_0.5.0crayon_1.3.4
On Sat, 28 Jul 2018, Rolf Turner wrote:
On 28/07/18 17:03, Jeff Newmiller wrote:
Whe
cible code.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
If you have not read [1] already, you should. As to how JDBC handles this issue
I don't know, but such a package-specific conversation belongs on r-sig-db.
[1] http://www.win-vector.com/blog/2015/06/r-in-a-64-bit-world/
On July 30, 2018 6:06:04 AM PDT, Christofer Bogaso
wrote:
>The data type i
1) No.
2) The read.csv function is a s special case use of the more general read.table
function that can handle any simple field separator.
3) Read the data in as character (I recommend using the stringsAsFactors=FALSE
argument to read.table) and convert to an appropriate type from that form.
... or deleting .RData and avoiding creating them in the future. Named save
files (anything.RData) are useful but the autoload feature of .RData files is
not and this particular behavior is one of the reasons why.
On July 31, 2018 3:39:39 AM PDT, PIKAL Petr wrote:
>Hi
>
>However if in .RData is
... and the most common source of NA values in time data is wrong timezones.
You really need to make sure the timezone that is assumed when the character
data are converted to POSIXt agrees with the data. In most cases the easiest
way to insure this is to use
Sys.setenv(TZ="US/Pacific")
or wha
HTH,
Chuck
__
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.
---
] TRUE
#' Created on 2018-08-04 by the [reprex package](http://reprex.tidyverse.org)
(v0.2.0).
###
On Sat, 4 Aug 2018, Berry, Charles wrote:
On Aug 4, 2018, at 11:43 AM, Jeff Newmiller wrote:
Sometimes a good old for loop performs best, even if it doesn't look sexy:
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.
---
R syntax does not allow for objects to be plopped next to each other separated
by a space. There should be a newline after the t1 variable. This kind of
problem plagues people copying HTML into emails on this mailing list (losing
newlines), and was probably introduced into your code during a cop
Pre-process your data into per-day or per-month records, then plot it. There
are many ways to do this... for example, base R has the aggregate function, and
the dplyr package has the group_by/summarise functions, and the data.table
package can do this as well (read the vignettes).
All of these
Or ask on R-sig-debian...
On August 9, 2018 3:13:38 PM PDT, "MacQueen, Don via R-help"
wrote:
>There are quite a few messages on R-sig-geo about installing rgdal on
>Ubuntu. Maybe one of them contains your solution?
>(I use Mac, so can't help directly)
>
>-Don
>
>--
>Don MacQueen
>Lawrence Liver
... and read the Posting Guide... only a few file types will ever make it
through the mailing list so repeatedly sending files not among those few types
would just be frustrating for everyone.
On August 11, 2018 4:51:43 PM PDT, Jim Lemon wrote:
>Hi Farid,
>Whatever you attached has not gotten t
a) Raw URL text is not legal in R code. URLs MUST ALWAYS be enclosed in single
(') or double (") quotes in R.
b) The source function expects to go where you tell it to go and retrieve text
composed of R statements. A PDF is a binary file... even if it happened to
contain some R code that you co
901 - 1000 of 3947 matches
Mail list logo