Re: [R] R CMD check problem

2011-08-02 Thread Joshua Wiley
The cygwin warning should not be fatal. Is that what made you think there's a problem with your path? Can you upload mypackage online? Two options would be Github hosts that sort of thing or you could use a tar ball and any file hosting service. I (and possibly others more skilled) would be

Re: [R] Impact of multiple imputation on correlations

2011-08-01 Thread Joshua Wiley
lman/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. > -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group Universi

Re: [R] example package for devel newcomers

2011-07-31 Thread Joshua Wiley
/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consu

Re: [R] help with algorithm

2011-07-31 Thread Joshua Wiley
t way, just use the "main" > parameter to combine plots) would be lovely if you can provide. > > Thanks! > >        [[alternative HTML version deleted]] > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mai

Re: [R] R 2.13.1 can't find package binaries on R-Forge

2011-07-31 Thread Joshua Wiley
>> >>> __ >>> R-help@r-project.org mailing list >>> 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,

Re: [R] R: print and ctree

2011-07-31 Thread Joshua Wiley
lp > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of Californi

Re: [R] Applying ifelse() on different functions

2011-07-30 Thread Joshua Wiley
rg mailing list > 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. > -- Joshua Wiley Ph.D. Student, Health Psych

Re: [R] How to install "adapt" package

2011-07-29 Thread Joshua Wiley
_ > R-help@r-project.org mailing list > 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. >

Re: [R] Limited number of principal components in PCA

2011-07-29 Thread Joshua Wiley
onents-in-PCA-tp3704956p3704956.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.o

Re: [R] finding a faster way to run lm on rows of predictor matrix

2011-07-29 Thread Joshua Wiley
> lm(t(predictors) ~ -1 + regress.y)$residuals > >  user  system elapsed >  0.500   0.120   0.613 > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www

Re: [R] help with plot.rpart

2011-07-29 Thread Joshua Wiley
gt;   8. mailto:CAM_vjukbUphEmRDs231LpiZwS7xdKMMK3_7s5mz=ydttvht...@mail.gmail.com >   9. mailto:m...@statcourse.com >  10. http://www.functionaldiversity.org/ > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/

Re: [R] boxplots

2011-07-29 Thread Joshua Wiley
ng-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] two sample histogram

2011-07-25 Thread Joshua Wiley
oks > better. > is there anyone that can help me? >        [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.

Re: [R] Binding multiple data frames into single data frame

2011-07-25 Thread Joshua Wiley
read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ ___

Re: [R] Trouble with line of best fit

2011-07-25 Thread Joshua Wiley
On Jul 25, 2011, at 12:31, Daniel Malter wrote: > Hi, > > I hope this is for private purposes. Otherwise, I may cite David Winsemius: > "The advancement of science would be safer if you knew what you were doing." Hmm, even if it were not private, the science of FPS video games is a dangerous p

Re: [R] compute the mean of two (or more) correlations

2011-07-25 Thread Joshua Wiley
ttps://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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://

Re: [R] do.call in "with" construction

2011-07-25 Thread Joshua Wiley
gt; # However, attaching myEnv works fine: > attach(myEnv) > do.call("myFun", list(symbols.env)) > ## > > Why is this? > >        [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.eth

Re: [R] Help with 3-d barplot in R

2011-07-25 Thread Joshua Wiley
g mailing list > 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. > -- Joshua Wiley Ph.D. Student, Health Psyc

Re: [R] Binding multiple data frames into single data frame

2011-07-24 Thread Joshua Wiley
.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing

Re: [R] barplot colors

2011-07-24 Thread Joshua Wiley
ks, > > Jim Fearon > > __ > R-help@r-project.org mailing list > 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,

Re: [R] call a function with explicitly not setting an argument

2011-07-23 Thread Joshua Wiley
mailing list > 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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of Californ

Re: [R] User input(unknown name and number of files)

2011-07-22 Thread Joshua Wiley
reader)), collapse = " ") }) return(output) } ## Example (here is what the user will write) ## My example function is designed to work with names outerfoo(c("Joshua", "Wiley")) > > lapply(c("file1", "file2", etc.), yourfunction) >

Re: [R] User input(unknown name and number of files)

2011-07-22 Thread Joshua Wiley
__ > R-help@r-project.org mailing list > 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. > -- Joshua Wiley P

Re: [R] Seeking help on permutation

2011-07-22 Thread Joshua Wiley
gt; > I would be really grateful if somebody guide me how to do that > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and pro

Re: [R] Indexing problem with matrix

2011-07-22 Thread Joshua Wiley
gt; indexing in some better way! > > > > Thanks, > > >        [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org

Re: [R] how to fix coefficients in regression

2011-07-21 Thread Joshua Wiley
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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ _

Re: [R] Select Random Rows from a dataframe

2011-07-21 Thread Joshua Wiley
e sum > of the d2p column is at least 5 and then re-sample if not. > >  Sadly this is beyond my current knowledge level in R. Please help!! > > Thanks in advance! > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r

Re: [R] PCA - princomp can only be used with more units than variables

2011-07-20 Thread Joshua Wiley
on this part. > >> Apcsv<-principal(Apcs,nfactors = 3,rotate = "varimax") > Error in eigen(r) : infinite or missing values in 'x' > In addition: Warning message: > In sqrt(diag(r)) : NaNs produced > > Have you got any ideas? I have already tri

Re: [R] transforming a matrix of logical to 0 and 1 while keeping the dim of matrix

2011-07-20 Thread Joshua Wiley
___ > R-help@r-project.org mailing list > 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. &

Re: [R] multiple plots in single frame: 2 upper, 1 lower

2011-07-20 Thread Joshua Wiley
SE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ ___

Re: [R] PCA - princomp can only be used with more units than variables

2011-07-19 Thread Joshua Wiley
gt;> www.    www.groundesign.net >>> >>> >>>        [[alternative HTML version deleted]] >>> >>> __ >>> R-help@r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do

Re: [R] Drawing a histogram from a massive dataset

2011-07-18 Thread Joshua Wiley
On Mon, Jul 18, 2011 at 2:08 PM, Paul Smith wrote: > On Mon, Jul 18, 2011 at 9:11 PM, Joshua Wiley wrote: >>> [snip] I guess that I must have a data frame to plot a histogram. >> >> Not at all! >> >> ## a *vector* of 100 million observation >> x &l

Re: [R] Drawing a histogram from a massive dataset

2011-07-18 Thread Joshua Wiley
ed. I would not try this straight in anything but traditional graphics for a 100 million observation vector, but if you wanted it made in ggplot2 or something, you could prebin the data and THEN plot bars corresponding to the bins. Cheers, Josh -- Joshua Wiley Ph.D. Student, Health Psychology Univ

Re: [R] PCA - princomp can only be used with more units than variables

2011-07-18 Thread Joshua Wiley
__ > R-help@r-project.org mailing list > 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. > --

Re: [R] searching and replacing in a data frame.

2011-07-18 Thread Joshua Wiley
" > apply(ttt, 2, class) A B "numeric" "numeric" > apply(ttt, 1, class) [1] "numeric" "numeric" "numeric" > apply(ttt, 1:2, class) A B [1,] "numeric" "numeric" [2,] "numeric"

Re: [R] searching and replacing in a data frame.

2011-07-18 Thread Joshua Wiley
0 2 > 3   0 3 >> apply(ttt,c(1,2),function(x) x[is.infinite(x)]<-0) >     A B > [1,] 0 0 > [2,] 0 0 > [3,] 0 0 >> apply(ttt,c(1,2),function(x) x[is.infinite(x)]<-0) >     A B > [1,] 0 0 > [2,] 0 0 > [3,] 0 0 > > Why do I have ALL zeroes

Re: [R] function design: multiple imput names

2011-07-17 Thread Joshua Wiley
ternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > 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, se

Re: [R] create multiple variables loop

2011-07-17 Thread Joshua Wiley
> __ > R-help@r-project.org mailing list > 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, reproduci

Re: [R] Add axis name to x-axis ggplot

2011-07-17 Thread Joshua Wiley
8.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > 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, re

Re: [R] How to convert number (matlab) to date

2011-07-16 Thread Joshua Wiley
Ed > > __ > R-help@r-project.org mailing list > 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, minima

Re: [R] Utility function to apply a scale object on another data frame

2011-07-16 Thread Joshua Wiley
) > s <- scale(x) > ### > ### would like scale 'y' using the parameters contained in 's' > > Thanks, > -e > >        [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://s

Re: [R] expression() and axis labels

2011-07-16 Thread Joshua Wiley
>> http://r.789695.n4.nabble.com/expression-and-axis-labels-tp3672050p3672050.html >> Sent from the R help mailing list archive at Nabble.com. >> >> __ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailma

Re: [R] Z-test

2011-07-16 Thread Joshua Wiley
On Sat, Jul 16, 2011 at 12:05 AM, Rolf Turner wrote: > (1) Why on earth should the n - 1 divisor be a problem?  This divisor > yields an unbiased estimator of sigma^2.  Generally speaking, > unbiasedness is a Good Thing. Yes, it is an unbiased estimator of sigma^2 for a sample. My response was p

Re: [R] Z-test

2011-07-15 Thread Joshua Wiley
any suggestions. thanks, > > bogdan > > On Fri, Jul 15, 2011 at 9:49 PM, Joshua Wiley > wrote: >> >> Hi Bogdan, >> >> Look at ?pnorm >> >> Josh >> >> On Fri, Jul 15, 2011 at 9:10 PM, Bogdan Tanasa wrote: >> > Hi, >

Re: [R] Z-test

2011-07-15 Thread Joshua Wiley
_ > R-help@r-project.org mailing list > 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. > -- Joshua Wile

Re: [R] Add permanently environment variable

2011-07-15 Thread Joshua Wiley
g list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >

Re: [R] Multiple ggplot in a single plot

2011-07-15 Thread Joshua Wiley
in Advance. > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Multiple-ggplot-in-a-single-plot-tp3671184p3671184.html > Sent from the R help mailing list archive at Nabble.com. > > ______ > R-help@r-project.o

Re: [R] Problem in installing rJava from source

2011-07-15 Thread Joshua Wiley
org mailing list > 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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California

Re: [R] What's wrong with my code? (Edited version-added my data)

2011-07-12 Thread Joshua Wiley
Dear Susie, I'm glad the pieces are working. Sorry if I wasn't clear before, when I said break down into smaller pieces, I meant for testing and figuring out what's wrong. If you have everything in separate loops, they will be completed individually, so reading all the datasets will be done a

Re: [R] qplot and for loops

2011-07-12 Thread Joshua Wiley
On Tue, Jul 12, 2011 at 2:01 PM, Reith, William [USA] wrote: > Do I need to define x in any way before I do the loop? No, you should not need to define x explicitly. Just pass the data frame you want to qplot. David was absolutely right though that inside a loop, you should wrap the call to qpl

Re: [R] qplot and for loops

2011-07-12 Thread Joshua Wiley
> R-help@r-project.org mailing list > 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

Re: [R] when to use `which'?

2011-07-12 Thread Joshua Wiley
___ > R-help@r-project.org mailing list > 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

Re: [R] What's wrong with my code? (Edited version-added my data)

2011-07-12 Thread Joshua Wiley
                          4: In max(x) : no non-missing arguments to max; > returning -Inf > > > > I wonder what went wrong with my codes, please help me! > Thank you very much!! > > -- > View this message in context: > http://r.789695.n4.nabble.com/What-s-wrong-with-

Re: [R] For applying formula in rows

2011-07-12 Thread Joshua Wiley
gards > Vikas Bansal > Msc Bioinformatics > Kings College London > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http:

Re: [R] Role of na.rm inside mean()

2011-07-12 Thread Joshua Wiley
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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.c

Re: [R] grep lines before or after pattern matched?

2011-07-11 Thread Joshua Wiley
t 2 on line 301 etc. And he wants both the 2nd and 4th lines after each document, so lines 3, 5, 303, 305 but just doing + c(2,4) would only give 3, 305. Josh > -- Bert > > On Mon, Jul 11, 2011 at 11:19 AM, Joshua Wiley wrote: >> Try this (untested as I'm on my iPhone now)

Re: [R] grep lines before or after pattern matched?

2011-07-11 Thread Joshua Wiley
e second and the fourth line? There's some other > information in the text file I'd like to grab. I could do two separate > commands, but I'd like to know if this could be done in one command... > Simon Kiss > On 2011-07-11, at 1:31 PM, Joshua Wiley wrote: > >&g

Re: [R] grep lines before or after pattern matched?

2011-07-11 Thread Joshua Wiley
th a loop to tell R to get the 4th, > 8th, 12, 16th, line, etc. > I'll see if I can get that to work. > Simon > On 2011-07-11, at 12:45 PM, Joshua Wiley wrote: > >> Dear Simon, >> >> Maybe I don't understand properlyif you are doing this in R, ca

Re: [R] grep lines before or after pattern matched?

2011-07-11 Thread Joshua Wiley
5 746 7606 > > __ > R-help@r-project.org mailing list > 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, re

Re: [R] running mean in blocks

2011-07-11 Thread Joshua Wiley
g-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] Is there a better way ?

2011-07-10 Thread Joshua Wiley
com/Is-there-a-better-way-tp3658588p3658588.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www

Re: [R] help with Code

2011-07-10 Thread Joshua Wiley
;> chart.Regression(MCD,SPX, Rf = .03/12, excess.returns = TRUE, main = >> "Security Characteristic Line", fit = c("loess", "linear"), legend.loc = >> "topleft") > Error in as.vector(data[, i]) : subscript out of bounds > > I don't kn

Re: [R] Code Help

2011-07-10 Thread Joshua Wiley
iew this message in context: > http://r.789695.n4.nabble.com/Code-Help-tp3658106p3658106.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help &

Re: [R] Dataset in parts - how to join together?

2011-07-10 Thread Joshua Wiley
.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list

Re: [R] help with Code

2011-07-10 Thread Joshua Wiley
> 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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles

Re: [R] Suppressing the labelling of tick marks on ggplot2

2011-07-09 Thread Joshua Wiley
_____ > R-help@r-project.org mailing list > 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. > -- Joshua Wiley P

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-09 Thread Joshua Wiley
On Sat, Jul 9, 2011 at 7:32 AM, David Winsemius wrote: > > On Jul 9, 2011, at 9:44 AM, Berry Boessenkool wrote: >> >> >> Maybe I'm missing something, but in what package do I find that function? >> >>> simplify2array(b) >> >> Fehler: konnte Funktion "simplify2array" nicht finden >> # Function wasn

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-08 Thread Joshua Wiley
t; > __ > R-help@r-project.org mailing list > 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. &g

Re: [R] loop in optim

2011-07-07 Thread Joshua Wiley
gt;> optimization. >> >> John Nash >> >> __ >> [hidden email] mailing list >> 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,

Re: [R] How to convert matrix with frequency & variable to vector?

2011-07-07 Thread Joshua Wiley
com. > > __ > R-help@r-project.org mailing list > 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, reproduc

Re: [R] Multiple line graphs

2011-07-07 Thread Joshua Wiley
gt; http://r.789695.n4.nabble.com/Multiple-line-graphs-tp3652015p3652015.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read

Re: [R] question about getting things out of an lapply

2011-07-07 Thread Joshua Wiley
> z > data[y] -> z2 > round(z, digits = 2) -> z > round(z2, digits = 2) -> z2 > z*100 -> z > z2*100 -> z2 > print(z) > print(z2) > colorgrad<-colorgrad01[z:z2] > colorgrad > } > > lapply(tree$edge, create.gradient) > > - Error in FUN(X[

Re: [R] loop in optim

2011-07-06 Thread Joshua Wiley
> To unsubscribe from loop in optim, click here. > > > -- > View this message in context: > http://r.789695.n4.nabble.com/loop-in-optim-tp3643230p3650297.html > Sent from the R help mailing list archive at Nabble.com. >        [[alternative HTML version deleted]] > > __

Re: [R] identifying a 'run' in a vector

2011-07-06 Thread Joshua Wiley
ssage in context: > http://r.789695.n4.nabble.com/identifying-a-run-in-a-vector-tp3650295p3650318.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] identifying a 'run' in a vector

2011-07-06 Thread Joshua Wiley
g-a-run-in-a-vector-tp3650295p3650295.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >

Re: [R] Showing which bars in a bar chart are significantly different

2011-07-06 Thread Joshua Wiley
roject.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https:/

Re: [R] question about getting things out of an lapply

2011-07-06 Thread Joshua Wiley
, MA > Evolutionary Processes in Language and Culture (PhD student) > Max Planck Institute for Psycholinguistics > P.O. Box 310, 6500AH Nijmegen, The Netherlands > +31 (0)24 3521 185 > http://www.mpi.nl/research/research-projects/evolutionary-processes > > ________

Re: [R] Wrong environment when evaluating and expression?

2011-07-06 Thread Joshua Wiley
ral. Josh On Tue, Jul 5, 2011 at 11:48 AM, William Dunlap wrote: >> -Original Message- >> From: r-help-boun...@r-project.org >> [mailto:r-help-boun...@r-project.org] On Behalf Of Joshua Wiley >> Sent: Monday, July 04, 2011 1:12 AM >> To: r-help@r-project.or

Re: [R] Reshape from long to wide format with date variable

2011-07-06 Thread Joshua Wiley
hat is not what I would like to have. > > Thanks for you help. > > -- > View this message in context: > http://r.789695.n4.nabble.com/Reshape-from-long-to-wide-format-with-date-variable-tp3648833p3648833.html > Sent from the R help mailing list archive at Nabble.com. > >

Re: [R] how to best present concentrated data points/ ggplot2

2011-07-05 Thread Joshua Wiley
eom_point(aes(x = expo, y = ze, shape = type)) > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide co

Re: [R] loop in optim

2011-07-05 Thread Joshua Wiley
> > > > > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/loop-in-optim-tp3643230p3647549.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org ma

Re: [R] if else lop

2011-07-05 Thread Joshua Wiley
_ > R-help@r-project.org mailing list > 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.

Re: [R] sample function with different proportions

2011-07-05 Thread Joshua Wiley
e posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/ ___

Re: [R] loop in optim

2011-07-05 Thread Joshua Wiley
,0.01,0.1,1) > out1 = optim(llik, par=start.par, method="Nelder-Mead") > out1 > > -- > View this message in context: > http://r.789695.n4.nabble.com/loop-in-optim-tp3643230p3645031.html > Sent from the R help mailing list archive at Nabble.com. > > ______

Re: [R] loop in optim

2011-07-04 Thread Joshua Wiley
> > -- > View this message in context: > http://r.789695.n4.nabble.com/loop-in-optim-tp3643230p3643230.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.c

Re: [R] How to merge two files

2011-07-04 Thread Joshua Wiley
5 > A 0.6 > A 0.5 > G 0.01 > G 0.9 > G 0.3 > C 0.8 > > Where N are deleted and only A/T/G/C are appearing in a column. > > Thanks > > Albert > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] I need help for creating a "timevar"

2011-07-04 Thread Joshua Wiley
bble.com/I-need-help-for-creating-a-timevar-tp3643658p3643658.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http:/

Re: [R] Wrong environment when evaluating and expression?

2011-07-04 Thread Joshua Wiley
Mon, Jul 4, 2011 at 4:11 AM, Joshua Wiley wrote: >> Hi All, >> >> I have constructed two expressions (e1 & e2).  I can see that they are >> not identical, but I cannot figure out how they differ. >> >> ### >> dat <- mtcars >&

[R] Wrong environment when evaluating and expression?

2011-07-04 Thread Joshua Wiley
et the pooled results. Passing the formula directly does not work, so I was trying to generate the entire call and evaluate it as if I had typed it at the console, but I am missing something (probably rather silly). Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology University of Ca

Re: [R] PROBLEM IN R version 2.13.0 (2011-04-13)

2011-07-03 Thread Joshua Wiley
gt; BUQ8gEwAA> Ås ,Norway > > Mobile +47 - 94 43 61 86 > > e-mail: romanpo...@hotmail.com > > skype: romanpsergio > > > > >        [[alternative HTML version deleted]] Please do not post in HTML, when converted to plain text (as it is for

Re: [R] Hint improve my code

2011-07-02 Thread Joshua Wiley
        R_m >  2e-03   0.026567295 >  3e-03   0.009798475 >  5e-02   0.008497274 >  -1e-02   0.012464578 >  -9e-04   0.002896023 >  9e-02   0.000879473 >  1e-02   0.003194435 >  6e-04   0.010281122 > > Thank you in advance. > > Edward > UCT > > -- > Vi

Re: [R] Vector of functions

2011-07-02 Thread Joshua Wiley
t;  Thomas > > __ > R-help@r-project.org mailing list > 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-cont

Re: [R] beginner question - effective way to chart sleep habits

2011-07-01 Thread Joshua Wiley
p showing the hours of a given > day/night), and that would also have a simple line graph of the total number > of hours per day. > > Can I get a hint perhaps?  Thanks very much. > >        [[alternative HTML version deleted]] > >

Re: [R] Help with histogram intervals

2011-06-27 Thread Joshua Wiley
do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ _

Re: [R] cluster() or frailty() in coxph

2011-06-26 Thread Joshua Wiley
EASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ ___

Re: [R] Extract character from the end of a string

2011-06-24 Thread Joshua Wiley
s://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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshua

Re: [R] please help for mgcv package

2011-06-21 Thread Joshua Wiley
ot;lag.sum<-function(a,10" >> ", why? >> >> anyone can answer me? >> > > I don't have the book you reference, but I wonder if that's really what it > says. > > Sarah > > > -- > Sarah Goslee > http://www.functionaldiversity.org

Re: [R] omitting columns from a data frame

2011-06-21 Thread Joshua Wiley
) > > to > > head(mtcars[, setdiff(names(mtcars), "make.sure.to.delete")]) > > Best, > Ista > > On Tue, Jun 21, 2011 at 12:22 AM, Joshua Wiley wrote: >> On Mon, Jun 20, 2011 at 8:55 PM, Erin Hodgess >> wrote: >>> Too funny! >>> >&

Re: [R] Italicize Greek symbols in axis

2011-06-21 Thread Joshua Wiley
gt; seems that it cannot be done. > > Thanks, > Bingzhang Chen > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commen

Re: [R] Documentation

2011-06-21 Thread Joshua Wiley
; >        [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > 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, reprodu

<    1   2   3   4   5   6   7   8   9   10   >