[R] Why is removeSparseTerms() not doing anything?

2015-04-22 Thread Mike
Here's the code and results.  The corpus is the text version of a single book.   (r vs. 3.2) > docs <- tm_map(docs, stemDocument) > dtm <- DocumentTermMatrix(docs) > freq <- colSums(as.matrix(dtm)) > ord <- order(freq) > freq[tail(ord)] one experi will can lucid dream 287 312 363 452 1

[R] Why is findAssocs() not working?

2015-04-23 Thread Mike
findAssocs() is not working, as is seen below. "Lucid" and "dreaming" occur together quite often in the book. The corpus is a single document, the text version of a book.  Does this function require at least two documents?  If so, if I split the book in half will I get the correlations regardi

[R] Need content_transformer() called by tm_map() to change non-letters to spaces

2015-04-23 Thread Mike
Hello, In the following code, any characters matching  "/|@| \\|") will be changed to a space. > library(tm) > toSpace <- content_transformer(function(x, pattern) gsub(pattern, " ", x)) > docs <- tm_map(docs, toSpace, "/|@| \\|") What code would transform all non-letters to a space?  (What goes

[R] plot.window: need finite 'ylim' values

2020-08-21 Thread Mike
d). This post https://stat.ethz.ch/pipermail/r-sig-finance/2020q3/015000.html suggests to generate the plot object with chart_Series and then to explicitly set x$Env$ylim[[4]] before plotting - without success. Can I tell plot/plot.window to ignore such errors and simply generate an empty region instea

Re: [R] plot.window: need finite 'ylim' values

2020-08-23 Thread Mike
type="n"' should be passed. As a workaround for now I do something similar. I check if the range to be plotted is completely NA. If so I manipulate one of those observations (which can only be 0, 1 or NA) to an "illegal" value of 0.5. Mike __

[R] which.min, equal values and fractions

2020-08-25 Thread Mike
eturning 1. But which.min only does so if the values don't contain fractions. And I get > identical (data3ba, c(2.9,2.9)) [1] FALSE Why is which.min not always returning 1 but which.max does? Mike __ R-help@r-project.org mailing list -- To

[R] Lepage Test

2011-03-04 Thread mike
Hey everyone, I am interest in running a Lepage multi sample test and i would like to ask if there is any code availabe for that. Thank you in advance -- View this message in context: http://r.789695.n4.nabble.com/Lepage-Test-tp3335861p3335861.html Sent from the R help mailing list archive at N

Re: [R] Lepage Test

2011-03-04 Thread mike
Subject: Re: Lepage Test Hi Mike, RSiteSearch("Lepage") looks promising. Best, Ista On Fri, Mar 4, 2011 at 8:00 PM, mike <[hidden email]<https://exchange.uky.edu/owa/UrlBlockedError.aspx>> wrote: > Hey everyone, > > I am interest in running a Lepage multi sample te

[R] aggregate(), with multiple functions in FUN?

2008-05-16 Thread Mike !
I've got a data frame having numerical data by zip code: ZIP DATA 94111 12135.545 93105 321354.65654 94111 545.555 94706 558858.66 ... ... I'm using this function to group records by ZIP and calculate the median of DATA: aggregate(d$DATA, list(Zip = d$ZIP), F

Re: [R] [FORGED] Re: How create columns for squared values from previous columns?

2017-04-28 Thread Mike C
Thanks Rolf. I was just a bit frustrated that R wouldn't generate dummy variable names on the fly. Also, another question, if I want to put column 5 at column 3, dat[, 3:5] <- dat[, c(5,3,4)] It does not work, why? From: Rolf Turner Sent: Friday, April 28, 201

Re: [R] How create columns for squared values from previous columns?

2017-05-02 Thread Mike C
Ah, that works! Thank you! From: PIKAL Petr Sent: Tuesday, May 2, 2017 7:56:33 AM To: C W; r-help Subject: RE: [R] How create columns for squared values from previous columns? Hi you can use data.frame data.frame(dat, dat[,1:3]^2) and you can set names afterwar

[R] Creating mean TIF

2016-06-11 Thread Mike Smith
the pixel values look like they might have been scaled. For example, below. Is writeTIFF doing something Im not aware of?? > m_image_tiff1[1,1,1] [1] 0.9745098 > test_tiff[1,1,1] [1] 0.06532387 Thanks very much! mike #Scan directory and store filenames in string, then count total files

[R] TIF Mean pixel values

2016-08-10 Thread Mike Smith
fined" -is there a more elegant/memory efficient way of doing this?! Any help much appreciated! best wishes mike PS Two sample images here: http://www.hsm.org.uk/1.tif http://www.hsm.org.uk/2.tif #Scan directory and store filenames in string, then count total files files <- as.charact

[R] Where is R installed on my Linux?

2016-09-19 Thread Mike Wojnowicz
show. Does anyone have any ideas? -Mike [[alternative HTML version deleted]] __ 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-

[R] 32 and 64 bit R

2016-09-26 Thread Mike meyer
Hello,   I have both 32 and 64 bit verions of R installed. What happens if I open a workspace saved from 64 bit R in the 32 bit version or conversely? I am fairly careless but never noticed any problems.    __ R-help@r-project.org mailing list -- To UN

[R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Mike Miller
ork, but is it OK?: ave( rep(1, length(charvec)), as.factor(charvec), FUN=sum ) [1] 1 2 3 2 3 3 I suspect that ave() isn't the best choice, but what is the best way to do this? Thanks in advance. Mike __ R-help@r-project.org mailing

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Mike Miller
htly trickier with an integer vector: intvec <- c(4,4,5,6,6,6) table( intvec )[intvec] intvec NA NA NA NA NA NA as.vector(table( intvec )[as.character(intvec)]) [1] 2 2 1 3 3 3 So I think this will always work for vectors of either type: as.vector(table( as.character(vec) )[as

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Mike Miller
: as.vector(table( as.character(vec) )[as.character(vec)]) If there are, say, 10,000 different elements in vec, each repeated an average of 5-10 times, will this still work correctly? In other words, the length of the table output array is unlimited, right? Mike

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Mike Miller
On Wed, 24 Dec 2014, Mike Miller wrote: Also, regarding the sacred text, "x A numeric." is a bit terse. The same text later refers to length(x), so I suspect that "A numeric" is short for "A numeric vector", but that might not mean "a vector of '

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Mike Miller
On Wed, 24 Dec 2014, Jeff Newmiller wrote: On December 24, 2014 6:49:47 PM PST, Mike Miller wrote: On Wed, 24 Dec 2014, Mike Miller wrote: Also, regarding the sacred text, "x A numeric." is a bit terse. The same text later refers to length(x), so I suspect that "A numeric&

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Mike Miller
tp://en.wikipedia.org/wiki/Vectorization_(mathematics) But in math as in computing, we wouldn't say that a matrix *is* a vector. If vec(A) = v, that does not mean that A = v. In R, it looks like as.vector() can do what vec() does, and more. Mike -- Michael B. Miller, Ph.D. Unive

[R] debugging R code and dealing with dependencies

2014-12-25 Thread Mike Miller
probably would have caught it sooner and I would have understood the problem. This is how I'll recommend they fix the bug in the code (thanks to those of you who helped with this): temp.vec <- as.character( test.dat$FAMID[ test.dat$FTYPE != 6 ] ) test.dat$famsize[ test.dat$FTYPE !

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-25 Thread Mike Miller
On Thu, 25 Dec 2014, Jeff Newmiller wrote: You have written a lot, Mike, as though we did not know it. You are not the only one with math and multiple computing languages under your belt. I'm not assuming that you and Bert don't know things, but I do expect to have a wider audien

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-25 Thread Mike Miller
On Thu, 25 Dec 2014, Mike Miller wrote: On Thu, 25 Dec 2014, Jeff Newmiller wrote: You have written a lot, Mike, as though we did not know it. You are not the only one with math and multiple computing languages under your belt. I'm not assuming that you and Bert don't know thi

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-25 Thread Mike Miller
On Thu, 25 Dec 2014, peter dalgaard wrote: On 25 Dec 2014, at 08:15 , Mike Miller wrote: "is.vector returns TRUE if x is a vector of the specified mode having no attributes other than names. It returns FALSE otherwise." So that means that a vector in R has no attributes other

Re: [R] debugging R code and dealing with dependencies

2014-12-25 Thread Mike Miller
Thanks, but I was already in touch with Rob Kirkpatrick about it. We all work together at U Minnesota, or did until Rob went to VCU. Mike On Thu, 25 Dec 2014, Uwe Ligges wrote: This is a rather detailed analysis, thanks, but I think it should be send to the maintainer of the "

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-25 Thread Mike Miller
On Thu, 25 Dec 2014, Duncan Murdoch wrote: On 25/12/2014 1:57 PM, Mike Miller wrote: I do think I get what is going on with this, but why should I buy into this conceptualization? Why is it better to say that a matrix *is* a vector than to say that a matrix *contains* a vector? The latter

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-25 Thread Mike Miller
On Thu, 25 Dec 2014, Mike Miller wrote: I was going to ask a question about it how to test that an object is a vector, but then I found this: "is.vector() does not test if an object is a vector. Instead it returns TRUE only if the object is a vector with no attributes apart from names.

Re: [R] debugging R code and dealing with dependencies

2014-12-25 Thread Mike Miller
On Thu, 25 Dec 2014, David Winsemius wrote: On Dec 25, 2014, at 1:04 AM, Mike Miller wrote: I just wanted to put this out there. It's just some of my observations about things that happen with R, or happened in this particular investigation. There were definitely some lessons for

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-25 Thread Mike Miller
(for some notion of vector) in the sense that all Lisp objects are lists, all APL objects are arrays and all tcl objects are character strings." That's how I've been thinking about it, too, but I'm not sure that *all* data objects are vectors in this sense. If that were the ca

[R] rounding down with as.integer

2014-12-31 Thread Mike Miller
e faster in my application: as.integer( 1000*1.003 + .1 ) [1] 1003 FYI - I'm reading in a long vector of numbers from a text file with no more than three digits to the right of the decimal. I'm converting them to integers and saving them in bi

Re: [R] rounding down with as.integer

2015-01-01 Thread Mike Miller
On Thu, 1 Jan 2015, Duncan Murdoch wrote: On 31/12/2014 8:44 PM, David Winsemius wrote: On Dec 31, 2014, at 3:24 PM, Mike Miller wrote: This is probably a FAQ, and I don't really have a question about it, but I just ran across this in something I was working on: as.integer(1000*

Re: [R] rounding down with as.integer

2015-01-01 Thread Mike Miller
rmats, so I had the data already in the format I described. Mike On Thu, 1 Jan 2015, Richard M. Heiberger wrote: Interesting. Following someone on this list today the goal is input the data correctly. My inclination would be to read the file as text, pad each number to the right, drop the de

Re: [R] rounding down with as.integer

2015-01-01 Thread Mike Miller
On Thu, 1 Jan 2015, Duncan Murdoch wrote: On 01/01/2015 1:21 PM, Mike Miller wrote: On Thu, 1 Jan 2015, Duncan Murdoch wrote: On 31/12/2014 8:44 PM, David Winsemius wrote: On Dec 31, 2014, at 3:24 PM, Mike Miller wrote: This is probably a FAQ, and I don't really have a question abo

Re: [R] rounding down with as.integer

2015-01-01 Thread Mike Miller
UE So they give the same answer, but converting to character takes about 25 times longer. Mike On Thu, 1 Jan 2015, ted.hard...@wlandres.net wrote: I've been followeing this little tour round the murkier bistros in the back-streets of R with interest! Then it occurred to me: What is wrong

Re: [R] rounding down with as.integer

2015-01-01 Thread Mike Miller
On Thu, 1 Jan 2015, Duncan Murdoch wrote: On 01/01/2015 1:21 PM, Mike Miller wrote: I understand that it's all about the problem of representing digital numbers in binary, but I still find some of the results a little surprising, like that list of numbers from the table() output.

Re: [R] rounding down with as.integer

2015-01-02 Thread Mike Miller
On Fri, 2 Jan 2015, Duncan Murdoch wrote: On 01/01/2015 10:05 PM, Mike Miller wrote: This is how big those errors are: 512*.Machine$double.eps [1] 1.136868e-13 Under other conditions you also were seeing errors of twice that, or 1024*.Machine$double.eps. It might not be a coincidence

[R] tried half-precision but "size 2 is unknown on this machine"

2015-01-03 Thread Mike Miller
answer for people who ask why I make them divide by 1000 all the time. ;-) Mike __ 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-proj

Re: [R] tried half-precision but "size 2 is unknown on this machine"

2015-01-03 Thread Mike Miller
.1.1 Also, this is how the hexbin package is described: "Description" Binning and plotting functions for hexagonal bins." So I guess that suggestion wasn't helping me much, either. Mike On Sat, 3 Jan 2015, Jeff Newmiller wrote: Your message is missing either a reproducible exam

Re: [R] tried half-precision but "size 2 is unknown on this machine"

2015-01-04 Thread Mike Miller
s me wonder what else can handle it. uint16 seems the safer bet, and there is no loss of precision. Of course, the downside is that the uint16 file is twice as big as the uint8 file, and these files may be several hundred GB in size. Mike On Sun, 4 Jan 2015, Uwe Ligges wrote: Following

[R] dealing with NA in readBin() and writeBin()

2015-01-04 Thread Mike Miller
but I guess that doesn't work with the binary read system. I don't think I can scan the readBin input because it isn't a file or stdin. Mike __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/l

Re: [R] dealing with NA in readBin() and writeBin()

2015-01-04 Thread Mike Miller
On Sun, 4 Jan 2015, Duncan Murdoch wrote: On 04/01/2015 5:13 PM, Mike Miller wrote: The help doc for readBin writeBin tells me this: Handling R's missing and special (Inf, -Inf and NaN) values is discussed in the ‘R Data Import/Export’ manual. So I go here: http://cran.r-project.or

[R] counting sets of consecutive integers in a vector

2015-01-04 Thread Mike Miller
there are many consecutive variables to be read, I can multiply the X in n=X by that number instead of doing many different seek() calls. (The data are in a transposed format where I read in every record for some variable as sequential elements.) I'm probably not the first person to deal with

Re: [R] counting sets of consecutive integers in a vector

2015-01-04 Thread Mike Miller
r again, so that speed is excellent. Mike On Mon, 5 Jan 2015, Peter Alspach wrote: Tena koe Mike An alternative, which is slightly fast: diffv <- diff(v) starts <- c(1, which(diffv!=1)+1) cbind(v[starts], c(diff(starts), length(v)-starts[length(starts)]+1)) Peter Alspach -Ori

[R] seek(), Windows and Cygwin (was "a UNIX vs. Windows package question, please")

2015-01-13 Thread Mike Miller
run under Windows that can seek (is it fseek in C?) reliably to a position in a file. If that is the case, it's going to be hard to develop good systems for managing bioinformatic data on Windows. Thanks in advance. Mike -- Michael B. Miller, Ph.D. University of Minnesot

Re: [R] seek(), Windows and Cygwin (was "a UNIX vs. Windows package question, please")

2015-01-13 Thread Mike Miller
g, though. Henrik -- I think you are saying that your experience has shown that the code you wrote for catching a corner case was not needed. Is that right? Mike On Tue, 13 Jan 2015, Henrik Bengtsson wrote: I/we've been utilizing both read and write seek():s on *binary* connections a

[R] merging pre-sorted data frames

2015-01-13 Thread Mike Miller
e done about it? The inspiration for my question comes partly from the way GNU comm works. If you have any ideas about this, I'd love to hear them. Thanks in advance. Mike -- Michael B. Miller, Ph.D. University of Minnesota http://scholar.google.com/citatio

Re: [R] merging pre-sorted data frames

2015-01-14 Thread Mike Miller
Thanks, Jeff. You really know the packages. I search and I guess I didn't use the right terms. That package seems to do exactly what I wanted. Mike On Tue, 13 Jan 2015, Jeff Newmiller wrote: On Tue, 13 Jan 2015, Mike Miller wrote: I have many pairs of data frames each with abo

[R] character type and memory usage

2015-01-16 Thread Mike Miller
h(snps) 4.0146146985 bytes That saves 93.8% of the memory by dropping 0.28% of the markers and encoding as integers instead of strings. I might end up doing this by encoding the other characters as negative integers. Mike __ R-hel

[R] the less-than-minus gotcha

2015-02-01 Thread Mike Miller
stat.com/pages/Tutor/R_inferno.pdf http://biostat.mc.vanderbilt.edu/wiki/Main/LinuxWorkshopRProgramingTipsAndGotchas http://tim-smith.us/arrgh/ I didn't happen to see my example on any list, but I didn't read them thoroughly, so it's probably there. Mike __

Re: [R] the less-than-minus gotcha

2015-02-03 Thread Mike Miller
S and R could have been written so that "<-" had to be followed by a space or an error would result. That might have been a good idea, but it's too late now. So we just have to not make mistakes. I'm working on it. Mike _

Re: [R] Plot residuals against standard normal distribution

2015-02-07 Thread Mike Miller
1 ) ) resNorm[ is.nan( resNorm ) ] <- NA Then you could plot it directly: plot(resNorm, resStd) When we use qqnorm() in R, it looks like R is using a Blom method with c=1/2 instead of c=3/8. I believe Blom recommended 3/8 and programs that offer Blom normal scores use c=3/8. Best, Mike

Re: [R] Plot residuals against standard normal distribution

2015-02-07 Thread Mike Miller
On Sat, 7 Feb 2015, Mike Miller wrote: res <- residuals( model ) resStd <- ( res - mean( res, na.rm=TRUE ) ) / sd( res, na.rm=TRUE ) Another issue is how to make the theoretical quantiles for the normal distribution. There are a few methods: https://www.statsdirect.co

Re: [R] big data?

2014-08-06 Thread Mike Harwood
The read.table.ffdf function in the ff package can read in delimited files and store them to disk as individual columns. The ffbase package provides additional data management and analytic functionality. I have used these packages on 15 Gb files of 18 million rows and 250 columns. On Tuesday

[R] Error: Line starting 'Package: tools ...' is malformed!

2014-10-24 Thread Mike Beddo
home/meb/source/R-3.1.1/src/library/tools' make[2]: *** [R] Error 1 make[2]: Leaving directory `/home/meb/source/R-3.1.1/src/library' make[1]: *** [R] Error 1 make[1]: Leaving directory `/home/meb/source/R-3.1.1/src' make: *** [R] Error 1 $

[R] [VC++ calling R] How to create a real-time interactive ticking time-series chart using dygraph via RInside?

2016-04-11 Thread Mike Deanza
Hi all, I am trying to figure out how to do this in R and I need your help. My journey started from something like the following: http://stackoverflow.com/questions/11365857/real-time-auto-updating-incremental-plot-in-r/1#1 n=1000 df=data.frame(time=1:n,y=runif(n)) window=100 for(i in 1:(n�

[R] Removing NAs from dataframe (for use in Vioplot)

2016-04-30 Thread Mike Smith
names=c("Y6", "Y5","Y4","Y3","Y2","Y1"), col = "lightblue") Two queries: 1. Is there a more elegant way of automatically stripping the NAs, passing the columns to the function along w

Re: [R] Removing NAs from dataframe (for use in Vioplot)

2016-05-01 Thread Mike Smith
>>> On Apr 30, 2016, at 12:58 PM, Mike Smith wrote: >>> Hi >>> First post and a relative R newbie >>> I am using the vioplot library to produce some violin plots. DW> It's a package, not a library. >>> I have an input CSV

[R] ggplot scale_colour_distiller legend to display all values?

2016-05-09 Thread Mike Smith
Is there a way to get ggplot scale_colour_distiller to display all values in the legend? Currently using this code. thanks! mike library(ggplot2) #Input data: insert the filename for raw data data <- read.csv("http://www.lecturematerials.co.uk/data/learning_bands.csv",header=T)

[R] Left align plot_grid titles?

2016-05-10 Thread Mike Smith
om_abline(intercept = 0, slope = 1, size=1) + coord_fixed() p<-plot_grid(gg1,gg2,labels=c("A", "B"), nrow = 2) title <- ggdraw() + draw_label("A Title", fontface='bold') plot_grid(title, p, ncol=1, rel_heights=c(0.1, 1), align=c("h")) # re

[R] Plot trajectories using ggplot?

2016-05-14 Thread Mike Smith
. the first row in the original dataset). geo_segment allows me to specify start-end but I need to do this over multiple time periods Any help much appreciated thanks mike library(reshape2) library(ggplot2) library(ggthemes) library(cowplot) #Read raw data df = read.table("

Re: [R] Plot trajectories using ggplot?

2016-05-14 Thread Mike Smith
e <- rownames(df) US> #Turn data from wide to long US> ds<-melt(df, id.vars = "case") US> ggplot(ds, aes(x = variable, y = value, group = case)) + US> geom_point () + geom_line() US> Hope this helps, US> Ulrik US> On Sat, 14 May 2016 at 10:20 Mike Smith

[R] nls.lm

2016-10-19 Thread Mike meyer
Greetings, The description of nls.lm specifies that in minimizing a sum of squares of residuals the number of residuals must be no less than the dimension of the independent variable ("par"). In fact the algorithm does not work otherwise (termination code 0). But this condition is sensel

[R] nls.lm

2016-10-19 Thread Mike meyer
@pd: you know that a System of equations with more variables than equations is always solvable and if a unique solution is desired one of mimimal norm can be used. According to "Methods for nonlinear least squares problems" by Madsen, Nielsen and Tingleff the LM-algorithm solves Systems of the f

[R] nls.lm

2016-10-19 Thread Mike meyer
@SE: yes, not every system of equations with more variables than equations is solvable, we need an additional condition e.g. full rank of the coefficient matrix. Uniqueness of the solution was not required. @BH: Yes this is the document, it is a nice presentation. I did not read the first page b

[R] nls.lm

2016-10-19 Thread Mike meyer
Make that f(x,u)=||x||². __ 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-c

[R] nls.lm

2016-10-19 Thread Mike meyer
>From my reading of the above cited document I get the impression that the >algorithm (algorithm 3.16, p27) can easily be adapted to handle the case m 0 and so the system becomes ill conditioned. Why can we not get around this as follows: as soon as mu is below some threshold we solve instead the

[R] nls.lm

2016-10-19 Thread Mike meyer
And finally, to put to rest the notion that the number of residuals is in any way significant for the solution of the least squares problem I submit to you the function f(x,y)=(x²+y²)² of 2 variables but only one residual f_1(x,y)=x²+y² which nonetheless has a unique minimum at the point (0,0).

[R] nls.lm

2016-10-19 Thread Mike meyer
How do you reply to a specific post on this board instead of the thread? I am too incompetent to find this out myself. Thanks, Michael unaffiliated __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listin

Re: [R] nls.lm

2016-10-20 Thread Mike meyer
For that reason it is (in my view) a bad idea to force the user to set up his problem in R-model notation. Michael unaffiliated > Gesendet: Donnerstag, 20. Oktober 2016 um 15:26 Uhr > Von: ProfJCNash > An: "S Ellison" , "Mike meyer" <1101...@gmx.net> >

Re: [R] nls.lm

2016-10-23 Thread Mike meyer
forts. I look forward to the results. Best regards, Michael unaffiliatd > Gesendet: Freitag, 21. Oktober 2016 um 09:39 Uhr > Von: "Berend Hasselman" > An: "Mike meyer" <1101...@gmx.net> > Cc: ProfJCNash , "r-help@r-project.org" > > Betr

Re: [R] How to use apply() to fill matrix by rows or columns?

2017-02-24 Thread Mike C
I was using OS X native R editor. I would imagine that editor is as simple and native as it gets. But, if it's truly native, why would Gmail think of my code chunk so differently. I'm just throwing it out there! I can always remove format in Gmail after pasting as a precaution. :) On Fri,

[R] Sampling distribution (PDF & CDF) of correlation

2008-07-17 Thread Mike Lawrence
rs,prob=T,xlab='Observed correlation') probs = seq(0,1,.01) plot(quantile(mc.rs,probs=probs),probs,type='l',xlab='Observed correlation',ylab='Cumulative probability') -- Mike Lawrence Graduate Student, Department of Psychology, Dalhousie University www.memetic

Re: [R] help with data layout

2008-07-17 Thread Mike Lawrence
an/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. -- Mike Lawrence Graduate Student, Department of Psychology, Dalhousie University www.memetic.ca "The road to wisdom? Well, it's

[R] Off topic: SS formulae for 3-way repeated measure anova (for when aov() fails)

2008-07-20 Thread Mike Lawrence
aggregate(x, list(a=a, b=b, sub=sub), mean) ss.aBYb.cells = levs.d*sum((aBYb.cells$x-grand.mean)^2) ss.aBYb.error = ss.aBYb.cells - ss.aBYb - ss.subs round(ss.aBYb.error, 10)==round(summary(this_aov)[[5]][[1]]$Sum[2], 10) #not ok :( -- Mike Lawrence Graduate Student Department of Psychology Da

Re: [R] Change font-face in title

2008-07-22 Thread Mike Prager
e the rest of the text to be parsed as an expression? This looks extremely useful, and I am grasping for the underlying principle. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __

Re: [R] drawing segments through points with pch=1

2008-07-22 Thread Mike Prager
he "bg" parameter to set the fill color. That lets you set the background color of the circle so that it will conceal the line segment. In general in R graphics, objects are drawn in the order specified. However, the default background of plotting symbols is transparent, so in your cas

Re: [R] Change font-face in title

2008-07-23 Thread Mike Prager
Ok, thanks! "Gabor Grothendieck" <[EMAIL PROTECTED]> wrote: > See ?title where its mentioned that calls are ok and a formula > is a call. Actually the first ~ is not needed since its already > a formula. > > On Tue, Jul 22, 2008 at 1:12 PM, Mike Prager <[E

Re: [R] try question

2008-07-29 Thread Mike Prager
NA [17] -0.81934141 -1.37204269 NA NA [21] NA 0.32918453 -0.40657152 -0.43540794 [25] NA > See the help page for ifelse() for more information. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * An

Re: [R] Larger Fonts for x/y-axis

2008-08-12 Thread Mike Prager
Andreas Tille <[EMAIL PROTECTED]> wrote: > what is the trick to get larger fonts for Graphs to make a good > slide for presentations? Generally I use something like cex = 2 in the plot function, as well as lwd = 3 -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are

Re: [R] ignoring zeros or converting to NA

2008-08-12 Thread Mike Prager
22 > # change zero to NA > is.na(a[a==0] ) <- TRUE > a [,1] [,2] [,3] [1,] NA NA2 [2,] NA NA 2 [3,] NA22 [4,] NA22 -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use

Re: [R] data types in R

2008-08-15 Thread Mike Prager
seq() with fractions. In other cases, it can be helpful to use the length.out= argument to seq(), rather than the to= argument. HTH -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitu

Re: [R] graphsheet

2008-08-18 Thread Mike Prager
but will allow you to page and down through the list of plots. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. __ R-help@r-proj

[R] trouble with Vista & reading files

2009-08-20 Thread Mike Williamson
l the help!! Regards, Mike Below are the calls: # Below is the call which DOES work, as long as it is called by itself. ## * eTestData <- read.table("C:/Users//Docume

Re: [R] Help Please!

2010-02-10 Thread Mike Williams
R myself and also just about to go to sleep. Mike __ 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] Assign Name of Data Frame

2010-02-12 Thread Mike Harwood
Marc, Thank you for your help. I had tried "assign", but I did not enclose the table name in quotes in my function call. I needed to see what someone else had written before I ever would have noticed it! On Fri, Feb 12, 2010 at 10:00 AM, Marc Schwartz wrote: > On Feb 12, 2010, at 8:19 AM, mah

Re: [R] A slight trap in read.table/read.csv.

2010-03-08 Thread Mike Prager
; was removed as an assignment operator, and the world did not crumble. The use of T and F is no less error-prone, and possibly more. The only immediate solution to this accretion of overly clever behavior would be for someone to write new functions (say, Read.csv) that didn't do all those

[R] nano syntax highlighting for R

2010-03-13 Thread Mike Miller
I don't have time to work on it much now, but maybe someone else will want to pick it up. Best, Mike -- Michael B. Miller, Ph.D. Bioinformatics Specialist Minnesota Center for Twin and Family Research Department of Psychology University of Minnesota##

Re: [R] R on Linux - a primer

2010-03-15 Thread Mike Miller
ogram: https://help.ubuntu.com/community/SynapticHowto It couldn't be easier. I don't work for Ubuntu and I don't have any friends or relatives working there either. Mike __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

Re: [R] R on Linux - a primer

2010-03-17 Thread Mike Miller
g the resources they need to pull it off. Mike On Tue, 16 Mar 2010, Emmanuel Charpentier wrote: Le dimanche 14 mars 2010 à 18:04 -0400, Axel Urbiz a écrit : Hi, I'm looking to move from Windows into a 64-bit Linux environment. Which is the best Linux Flavor to use within R? To install R on

[R] stats::decompose - Problem finding seasonal component without trend

2009-07-08 Thread Mike HC
so seems to duplicate one value during the calculation, and throw a warning due to a seemingly unnecessary 'end' argument to window. I can probably get away with using some function like sweep or scale instead, but please let me know if I'm just misusing decompose. If it's a bug,

Re: [R] ' R ' - General Question (newbie)

2009-07-10 Thread Mike Prager
user of R. Gabor has given a useful suggestion: looking online. You will find that R syntax (and mindset) are quite different from SAS, so using an introductory text will save you time. I think Peter Dalgaard's "Introductory Statistics with R" is quite a good one, especially if you p

Re: [R] Entire Organization Switching from SAS to R - Any experience?

2009-07-17 Thread Mike Prager
do some processing with SAS in those cases, though we've been able to reduce the number of SAS licenses we need. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement. ___

Re: [R] Hmisc, Design, summary.Design plot- changing confidence intervals, adding color or decreasing font size

2009-07-19 Thread Mike Babyak
+ 1, effect[i], se[i], q = q, type = "h", q and col must have same length But this will: plot(summymodel,q=.95,col=2) If you wanted two sets of CIs, say 95 and 99: plot(summymodel,q=c(.95,.99),col=c(2,5)) **** Mike Babyak Duke

[R] R programming class - Boston USA area - or online

2009-07-29 Thread Boucher, Mike
Hello - I am just beginning to look into R Programming and have written some basic R code. Do you know of anyone in the Boston-USA area that might be offering any courses on R Programming? Or possibly a course online? Many thanks Mike Boucher Michael Boucher | Quantitative Analyst

Re: [R] Read SAS data

2010-03-25 Thread Mike Reese
o you know anything about that? Mike -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nordlund, Dan (DSHS/RDA) Sent: Thursday, March 25, 2010 2:32 PM To: Nicola Sturaro Sommacal; r-help@r-project.org Subject: Re: [R] Read SAS data >

Re: [R] Page width figures in Latex

2010-03-28 Thread Mike Prager
4 The width of the figure is controlled by the \includegraphics statement, not any particular part of the environment specification. That assumes you have loaded the graphicx package. For example, \begin{figure}[!th] \begin{center} \includegraphics[width=\textwidth]{myfig.eps}\\ \end{center}

Re: [R] How do you change library location ? (in R under windows XP)

2010-04-26 Thread Mike Prager
On Fri, 23 Apr 2010 15:22:45 +0300, Tal Galili wrote: >Due to the new R 2.11 release, I want to implement Dirk's suggestion >here >. > >So for that I am asking - How can I (permanently) change R's library path?

Re: [R] R and S-Plus: Two programs separated by a common language?

2010-04-26 Thread Mike Prager
On Thu, 22 Apr 2010 12:00:13 -0700 (PDT), Paul Miller wrote: >I was just wondering if anyone could give me some advice about the wisdom or >folly of trying to use both [R and S-Plus]. I suspect that trying to use both will give you heartburn. When I switched from S-Plus to R, the most significa

Re: [R] Upgrading R using the "global library folder" strategy - what do you think about it?

2010-04-26 Thread Mike Prager
I think it makes more sense for most users to have a global library (as you call it), rather than put the library under the current installation. I have been doing that for years, and it saves a lot of trouble. When I have helped people learn R, the need to copy the library when updating is a reg

  1   2   3   4   5   6   7   8   9   >