the memory
fragmentation associated with incrementally appending the data.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
document to be
familiar with, though I recommend avoiding the use of attach/detach discussed
in 6.3.2.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
Try RStudio's Shiny.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
help.search(polynomial)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
list if
there are odd characters at fault).
For what it is worth, TXT is not a clearly-defined format, so this could be
more effectively addressed by using a more specific format for data exchange.
---
Jeff Newmiller
faq 7.31
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
Something along the lines of
top100 - A[match(B,A[,1]),]
Please provide R code with sample data and desired output. See
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
, many users miss
the fact that by never running the install or R explicitly as admin, and
enabling a personal library during installation, they can escape that admin
addiction entirely.
---
Jeff Newmiller
The normal method is to rerun the code. If you use the ggplot2 library you can
store plots in variables and modify them, but you still have to print them
again when you want to see the results.
---
Jeff Newmiller
Read help for the ifelse function. Type ?ifelse at the command line.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
It does not have anything to do with the sourcing. Rather, it lies in the code
that is in your File.R, which is not given here.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
What isn't proper about single quotes?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
Ah, my default font makes that distinction too subtle. Action item for me,
then, to change fonts.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
You don't, at least not for building libraries. Do it at the command line
before you invoke the R commands. If you are using Cygwin, then be sure to use
the Bash shell export command to set the variables.
---
Jeff Newmiller
could be. how would you know?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live
version of this query stands... what is in
~/Documents/myFile.R?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
results is part of your problem... files created by that user are by default
not readable by other users.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
It is isn't easy to write code that works with column names that have spaces.
You could rewrite rpart, or just rename the columns in your data frame to work
around the bug. See ?names.
---
Jeff Newmiller
type
??lag
at the R command line.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
RSiteSearch(wavelet) at the R command line prompt, or
http://rseek.org
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
Only convert numeric columns to time series. This is a fundamental limitation
of ts, xts, and zoo.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
discovered
the parameter specification problem by reading the help documentation through
?testInstalledPackages.)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
constructive assistance.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
the result of the cor.test function into a one-row data
frame.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
for the majority of us who do not
use Nabble.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
capture.output(print(mydf))
note that df is a base function... best to not use it as a variable.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
problems you encounter.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
Ask the RStudio developers.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live
The error says you are missing the BLAS library... so install it?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
[1:8700,1][i] - predict(lm(x[1:8700,1]~xx, na.action=na.exclude),new)[i]
}
x
}
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
the nulls, perhaps don't overwrite the
refill list?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
Arrays must all be the same type. Data frame columns may be of differing types.
Try to avoid creating a matrix and converting it to a data frame.
a- data.frame(name=c(2,2,X), value=c(,1:3,2:4), as.is=TRUE)
str(a)
---
Jeff
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
option there would be XML. Alternatively, you could define your own
protocol, read all the data in with readLines, and parse it out yourself.
---
Jeff NewmillerThe . . Go Live
Since you don't seem to recognize the term sessionInfo, you definitely need
to read the posting guide. See the link at the bottom of the message.
RSiteSearch(XML)
is a good tool to know about.
---
Jeff Newmiller
in consistency checking rather than a
guessing game. I recommend that you look at your overall problem again.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
, the error
message.
You can replace the do.call with
t( t( amortsByYears )/amortsByYears[1,] )
which is rather more efficient than do.call anyway.
---
Jeff NewmillerThe . . Go Live
. In particular I try to avoid putting POSIXlt into data frames.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
to
POSIXt.
R is normally very good about distinguishing between a default value such as
zero (or GMT) and undefined, and this documented behavior breaks that
consistency.
---
Jeff Newmiller
the list of matrices as a single data frame, with one column that
identifies the row in the original data frame for each row of the mortality
matrix. This is a more relational (as in SQL) solution.
---
Jeff Newmiller
are
really working with. Ask specific questions.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
a looks pretty short to me, just two elements.
You should spend some (more) time reading the Introduction to R document that
is supplied with the software... particularly the parts on indexing.
---
Jeff Newmiller
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
also play with
file.choose() or readLines(clipboard) to get source-compatible paths.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
actually, you should build your sequences with integers and scale those to get
floating point sequences.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
be sufficient to get that byte and pick apart the bits to get the ones you want.
I recommend using the hexBin package for this kind of task.
---
Jeff NewmillerThe . . Go Live
With is designed for interactive use, so you are right that it is not the
answer.
You can use list indexing with column names within functions, though, like
df[[scaling.column]] or df[[all]].
---
Jeff Newmiller
a script
of R statements to recreate your whole analysis without depending on loading or
saving workspaces is standard practice.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
And when you get tired of waiting for your elegant solution to finish, you can
go back and convert to vectors or 3d arrays.
Lists are good for building structures, but not particularly good for
computation.
---
Jeff
Set your default local timezone (at least while converting to POSIXt types:
Sys.setenv(TZ=Etc/GMT+7)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
with the access permissions that your
interactive or automatically-triggered environment is restricted by are almost
impossible for us to remotely troubleshoot, and are not on-topic for this
mailing list.
---
Jeff Newmiller
(which you don't appear to be doing).
Appropriate use of quoting may be necessary if you have spaces in your paths.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
function to prepare data samples for
questions will allow readers to more quickly identify difficulties you may be
having.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
definitions
found in ?strptime in a format that doesn't include colons.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
R does not parallelize its operation automatically... you have to use R code
that splits the work you give it into multiple tasks.
See ?parallel
---
Jeff NewmillerThe . . Go Live
objects. (If the data are tabular you might use the sapply function to create a
single data table.)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
$high),-1,0))
z - rle(f$test)
z$values - ifelse(0==z$values,Lag(z$values), z$values)
f$test2 - inverse.rle( z )
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
This has always been how the $ operator has worked. See ?[[, and use that
operator directly if you want exact matching.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
can look at it
ourselves?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live
Ding! Semantic error : problem not defined. Return to beginning of Posting
Guide mentioned at bottom of every email on this list, process contents, and
reformulate question.
---
Jeff Newmiller
You need to learn how to search.
RSiteSearch(SAS)
or
Google : R read SAS
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
(with or without parameters),
which seems out of scope for this list (perhaps R-sig-DB?).
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live
Your request fails the reproducibility requirement from the posting guide,
because you have not supplied enough data to run the code and reproduce the
error.
---
Jeff Newmiller
to obtain one \
character in memory where the regex code can see it.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
/README
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
to elicit useful
responses. Pseudo-code is definitely other.)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
Are you sure XYZ is the name of the MDB file? Perhaps you are being fooled by
the default filename display that omits the extension?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
you should lapply over a vector of indices (e.g. seq_along(names)) and extract
out the subsets of data in your mywrite function before you write them.
Is this homework?
---
Jeff Newmiller
I/O is not greatly improved by vectorization, except that whole files being
read or written as units is faster than looping over rows.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
Extract the date separately from the time initially, and keep it separate. When
you want to process daily data, use that column.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
FAQ 7.19
http://cran.r-project.org/doc/FAQ/R-FAQ.html
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
?which.max
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
I don't.
You are getting to be a regular around here, so you should know better by now.
Please stop posting non-reproducible sample code.
---
Jeff NewmillerThe . . Go Live
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
understand, particularly Discrete
Fourier analysis, but that would be decidedly off topic here.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
Then don't do that.
Use your script file to define functions. Source that file before the loop to
load them into memory. Call those functions from within your loop.
---
Jeff Newmiller
Same reason.
grid() is part of base graphics, which are incompatible with grid graphics.
Perhaps you want grid.grill(), which you could find out about in the grid
graphics vignette mentioned earlier.
---
Jeff Newmiller
What is it you think as.numeric accomplishes for you? A reproducible example as
requested in the posting guide might clarify.
Making factors and leaving them that way seems more productive.
---
Jeff Newmiller
to convert to
factor after you have manipulated your data.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
?
Other:
Don't post HTML email.
The name table is defined in the base package, so using it as a data name can
lead to confusion and inability to perform fundamental operations.
---
Jeff Newmiller
Perhaps you might try
template[ , names(tbl) ] - tbl
where I have used tbl instead of table, for reasons previously mentioned.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
without understanding it is risky to your data.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
or duplication.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
You need to use the match function if you want to specify result sort order or
duplication.
test[ match(c( PKB123, PKB22, PKB23,PKB32, CTV19, CTV20, PKB11,
PKB11 ),test$Name.), ]
---
Jeff Newmiller
).
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
?Distributions
The more general term for percentile is quantile.
help.search(quantile)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
with these subsets, so
there could be special-purpose functions that do what you want. As always,
reproducible code leads to reproducible answers. :)
---
Jeff NewmillerThe . . Go Live
, but I know nothing of your workflow, so I
think the ball is in your court.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
Perhaps you should read
?dhyper
and if you have a hard time parsing that, then read
?Distributions
and then go back to
?dhyper
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
401 - 500 of 3908 matches
Mail list logo