Re: [R] Unable to Change Library Paths in R 3.5.1 in Windows 10

2018-07-26 Thread Jack Pincus
8.1 which introduced OneDrive.)  R for Windows apparently chooses the default document storage folder when setting up a personal library.  Disabling OneDrive for autosaving documents in OneDrive settings solved the problem. Jack On Thursday, July 26, 2018 7:03 AM, Leslie Rutkowski wrote:

[R] Unable to Change Library Paths in R 3.5.1 in Windows 10

2018-07-25 Thread Jack Pincus
OneDrive folder in Windows 8.1 but could set R to recognize a personal library on C:/Users/jackp/Documents. Thanks in advance, Jack [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st

[R] Removing columns from big.matrix which have only one value

2018-04-21 Thread Jack Arnestad
I have a very large binary matrix, stored as a big.matrix to conserve memory (it is over 2 gb otherwise - 5 million columns and 100 rows). r <- 100 c <- 1 m4 <- matrix(sample(0:1,r*c, replace=TRUE),r,c) m4 <- cbind(m4, 1) m4 <- as.big.matrix(m4) I need to remove every column which has only on

[R] Problem reading R files

2018-04-20 Thread Jack Frazer
e readRDS method sucks*. I got same error using import() in rio package. https://stackoverflow.com/questions/49908803/error-in-reading-files-in-r So, please let me know if you have some solution for the issues. Thanks for your consideration. Regards, Jack [[al

[R] Efficient way to subset rows in R for dataset with 10^7 columns

2018-04-13 Thread Jack Arnestad
I have a data.table with dimensions 100 by 10^7. When I do trainIndex <- caret::createDataPartition( df$status, p = .9, list = FALSE, times = 1 ) outerTrain <- df[trainIndex] outerTest <- df[-trainIndex] Subsetting the rows of df takes ove

[R] How can you find the optimal number of values to randomly sample to optimize random forest classification without trial and error?

2017-12-02 Thread Jack Arnestad
I have data set up like the following: control1 <- sample(1:75, 3947398, replace=TRUE) control2 <- sample(1:75, 28793, replace=TRUE) control3 <- sample(1:100, 392733, replace=TRUE) control4 <- sample(1:75, 858383, replace=TRUE) patient1 <- sample(1:100, 28048, replace=TRUE) patient2 <- sample(1:50

[R] Loading Rcmdr

2017-07-24 Thread Jack Talley
With the lastest version of R 3.4.1 I have not been able to loard Rcmdr. Advice please. Thank you, Jack Talley, PhD [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

[R] Probit regression with misclassified binary dependent variable

2015-01-15 Thread Jack
Is there a generalized linear mixed-effects model implementation for R that could handle misclassified binary data? Unless I have overlooked something in the documentation, glmer with family=binomial(link="probit") does not handle misclassification. Closest to what I have found was misclass, which

[R] question regarding rmvDAG in package pcalg

2014-11-25 Thread Jack Luo
Dist="normal") > max(d.normMat) [1] 365099508 > p = 2000 > n = 100 > rDAG <- randomDAG(p, prob = 0.2, lB=0.1, uB=1) > d.normMat <- rmvDAG(n, rDAG, errDist="normal") > max(d.normMat) [1] 3.880373e+90 Did anyone know how to fix this? Thanks a lot! -Jack

[R] question regarding pcalg package

2014-09-26 Thread Jack Luo
ation matrix into those algorithms in the sufficient statistics argument. Thanks, -Jack [[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

[R] [R-pkgs] icd9 - a new R package

2014-07-09 Thread Jack Wasey
n potentially useful nuggets for power users. Comments and contributions are most welcome. In particular, I'd love to see unit tests corresponding to any failures you may encounter working with your own ICD-9 data. Hope you find this useful. Jack -- Jack Wasey Resident Physician, Anesthe

Re: [R] Cannot Launch R Help Files under Window 8.1

2014-05-26 Thread Jack H. Pincus
Thanks Gabor. I'll try that. Jack Sent from my iPad > On May 26, 2014, at 2:40 PM, Gabor Grothendieck > wrote: > > On Mon, May 26, 2014 at 8:53 AM, Jack H. Pincus > wrote: >> Thanks for your suggestions. I did some further digging and found the >> problem

Re: [R] Cannot Launch R Help Files under Window 8.1

2014-05-26 Thread Jack H. Pincus
Thanks for your suggestions. I did some further digging and found the problem was more subtle. I use Dashlane, a password management program, which requires IE to run in protected mode under Win 8. Disabling protected mode solved the problem with R help. Jack > On May 26, 2014, at 12:02

[R] Cannot Launch R Help Files under Window 8.1

2014-05-25 Thread Jack Pincus
ot be displayed. Java 7 is installed on my computer.  I did a Google search but didn't find any solutions.  How can I get the help pages to display? Jack [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

[R] bias in AUCRF?

2013-11-20 Thread Jack Luo
Label~., data=DF) AUC_r = cbind(AUC_r,fit$AUCcurve$AUC) } } plot(fit$AUCcurve$k,apply(AUC_r,1,mean),type = "b",pch = 3,xlab = "# of Vars", lwd = 2, col = 2,ylab = "OOB-AUC",ylim = c(0.4,1)) Thanks, -Jack [[alternative HTML version deleted]] __

[R] omitting integer(0) rows from data frame

2013-10-30 Thread Jack Tanner
I'm not sure if this is correct behavior or not, but it seems counterintuitive to me: dat <- data.frame(id=1:5, let=letters[1:5]) # A. omits the first row dat[- 1, ] # B. unexpectedly omits ALL rows dat[- integer(0), ] It would be less surprising if there were no rows omitted in the (B) case.

[R] question regarding cv.glmnet in glmnet package

2013-10-23 Thread Jack Luo
mean it's not an honest cross validation? Thanks, -Jack [[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/pos

[R] question regarding cast function in reshape package with mixture of numeric and character

2013-09-26 Thread Jack Luo
r, I am getting some trouble when the "value" variable has a mixture of numeric and character. I played around dropping off the fun.aggregate = mean option, but it use the default: which is the length and not what I want. I am wondering if there is anyway of doing this? Many thanks, -Ja

Re: [R] Producing multiple analyses (histograms/kernel densities) of network timings between groups

2013-08-15 Thread Jack Challen
Ah, yes. it was the net$Time[net$From=="A" & net$To=="C"]), notation I was missing. I suppose I'd think of that as similar to an array slice Perl (no, I know it's not the same!) I'll have to spend a little time looking at your sample data-generatio

[R] Producing multiple analyses (histograms/kernel densities) of network timings between groups

2013-08-14 Thread Jack Challen
. "Factoring" (if that is indeed the term) is where I fall down. I simply don't know how to break out the pairings. Is R actually the way to go for this? I feel pretty confident I could cobble together some Perl which produces Postscript to describe the curves, but I suspect that

[R] how to fit a glm model with all possible interactions between explanatory variables

2013-06-06 Thread Jack Luo
Hi, I am trying to find a way to fit a glm model with all the possible interaction terms between different variables, without typing all the X1:X2, X1:X3, in the formula, is there a way in R to do that? Thanks, -Jack [[alternative HTML version deleted

Re: [R] error of installing/building an R package (PortfolioAnalytics) on Win 7

2012-12-02 Thread Jack Bryan
e") > > at the command line to install it. This is necessary on Linux, but > depending on the package, there may be available binaries for Windows > and Mac, in which case you can install those instead of having to > build it from source and you can remove the last argumen

[R] error of installing/building an R package (PortfolioAnalytics) on Win 7

2012-12-02 Thread Jack Bryan
Hi, I am trying to install a package (PortfolioAnalytics) of R 2.15.2 on Win 7. I have tried the following instructions on : http://stackoverflow.com/questions/11105131/cannot-install-r-forge-package-using-install-packages I used svn checkout svn://svn.r-forge.r-project.org/svnroot/returnana

Re: [R] error, R commends cannot show the expected output

2012-11-28 Thread Jack Bryan
show the expected output > > Hello, > > And what do you get? > > Regards, > Pascal > > Le 28/11/2012 12:25, Jack Bryan a écrit : > > > > Hi, > > > > I am working on R 2.15.2 on Win. 7. > > > > I am trying to run some simple commends. > &g

Re: [R] error, R commends cannot show the expected output

2012-11-28 Thread Jack Bryan
gt; To: dtustud...@hotmail.com > > > > On Nov 28, 2012, at 4:13 AM, Jack Bryan wrote: > > > > > Thanks ! > > > > I solved it. > > Don't you mean David did? > > > > > I run sink() to get the output on command line. > >

Re: [R] error, R commends cannot show the expected output

2012-11-27 Thread Jack Bryan
> > And what do you get? > > Regards, > Pascal > > Le 28/11/2012 12:25, Jack Bryan a écrit : > > > > Hi, > > > > I am working on R 2.15.2 on Win. 7. > > > > I am trying to run some simple commends. > > > >> class(SWX.RET)

[R] error, R commends cannot show the expected output

2012-11-27 Thread Jack Bryan
Hi, I am working on R 2.15.2 on Win. 7. I am trying to run some simple commends. >class(SWX.RET) # SWX.RET is a data file that has been loaded. But, I cannot see the expected output. I have deselected "buffered output". Still it does not work. Any help will be appreciated. Thanks

Re: [R] Error: R could not find "listDescription"

2012-11-27 Thread Jack Bryan
o tell you to load particular packages? > > www.rseek.org turns up a listDescription() function in the fBasics > package, but that isn't necessarily the one you need for whatever > application you're pursuing. > > Sarah > > On Tue, Nov 27, 2012 at 2:37 PM, Jack Bry

[R] Error: R could not find "listDescription"

2012-11-27 Thread Jack Bryan
Hi, I am running R on Win 7. I got error for > listDescription(fPortfolio) Error: could not find function "listDescription" What do I need to install for solving this ? Any help will be appreciated. Thanks [[alternative HTML version delet

[R] error of installing a R package on Win 7

2012-11-27 Thread Jack Bryan
Hi, I am trying to run R 2.15.2 on Win 7. I am trying to run some example R code of the book :Portfolio Optimization with R/Rmetrics I was told that : To install all packages required for the examples of this ebook we recommendthat you install the bundle package ebookPortfolio. This can be do

[R] error of runing R in R 2.15.2 w/o graphes generated

2012-11-26 Thread Jack Bryan
Hi, I have installed R 2.15.2 on windows 7. http://cran.cnr.berkeley.edu/ I tried to run some simple graph code: http://www.harding.edu/fmccown/r/ But, no graphs are presented or poped up. Any help will be appreciated. Thanks [[altern

[R] compatibility of load() in R 2.15.2

2012-11-25 Thread Jack Tanner
I have some large-ish files that are the output of save() from R 2.15.1, which that version can load() just fine. After upgrading to 2.15.2, load() no longer works on these files. Is this a known issue? __ R-help@r-project.org mailing list https://stat.e

[R] as.POSIXct questions

2012-07-19 Thread Jack Tanner
The following three calls all produce the same result (my machine is in EST): > as.POSIXct(0, tz="", origin=ISOdatetime(1970,1,1,10,0,0)) [1] "1970-01-01 10:00:00 EST" > as.POSIXct(0, tz="EST", origin=ISOdatetime(1970,1,1,10,0,0)) [1] "1970-01-01 10:00:00 EST" > as.POSIXct(0, tz="GMT", origin=IS

Re: [R] barplot problem

2012-05-27 Thread jack hietpas
horizontal=FALSE, origin=0, >panel=panel.barchart, box.width=20, >scales=list(x=list(at=tmp$distance))) > > > > On Sat, May 26, 2012 at 11:26 PM, jack hietpas wrote: > >> Hello- I am having trouble making a barplot... >> >> The y-values are

Re: [R] barplot problem

2012-05-27 Thread jack hietpas
mon wrote: > On 05/27/2012 01:26 PM, jack hietpas wrote: > >> Hello- I am having trouble making a barplot... >> >> The y-values are: >> data=c(-0.0002129061,0.**00,-0.0002699561,0.** >> 0163883061,0.04). >> >> The x-values are distanc

[R] barplot problem

2012-05-26 Thread jack hietpas
Hello- I am having trouble making a barplot... The y-values are: data=c(-0.0002129061,0.00,-0.0002699561,0.0163883061,0.04). The x-values are distance=c(0, 71, 172, 206, 292). The desired x-range is 0 and ~300+ (kilometers), range=seq(0,300,1) I would like to make a bar plot with

[R] memory growth with rbind and lapply

2012-05-12 Thread Jack Tanner
This version of my code makes the R process consume unreasonable amounts of RAM: datf <- rbind(lapply(mylist, function(item) { with(item, data.frame(col1, col2, col3)) })) This version works fine: datf <- lapply(mylist, function(item) { with(item, data.frame(col1, col2, col3)

[R] Using FME modCost with multiple independent variables

2012-04-26 Thread Jack Lonsdale
to know how. Thanks, Jack -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] BRugs crash, question

2012-04-04 Thread Jack Tanner
Bob O'Hara gmail.com> writes: > > On 4 April 2012 05:35, Jack Tanner hotmail.com> wrote: > > > samplesBgr("beta") # crash > > samplesBgr("beta", plot=FALSE) # also crash > > > > Have you plotted your histories? I haven't u

Re: [R] logistic regression

2012-04-03 Thread Jack Tanner
Melrose2012 stonybrook.edu> writes: > > alive <- (fflies$living) > dead <- (fflies$living[1]-alive) > glm.fit <- glm(cbind(alive,dead)~fflies$day,family="binomial") > summary(glm.fit) Your call to glm() is not doing what you think it's doing. What you want to do is probably closer to glm.fit

[R] BRugs crash, question

2012-04-03 Thread Jack Tanner
(Using BRugs 0.7-5, R 2.14.2 32-bit on 64-bit Windows 7, OpenBUGS 3.2.1) 1. BRugs crashes R for me as follows. Sorry about the lack of detail; please let me know if / how to supply a more useful bug report on this issue. fit <- BRugsFit(...) # BRugs and OpenBUGS runs fine, the parameter estimates

[R] Nonlinear regression / Curve fitting with L-infinity norm

2012-03-30 Thread Jack Fruit
Hello everyone, I am looking into time series data compression at the moment. The idea is to fit a curve on a time series of n points so that the maximum deviation on any of the points is not greater than a given threshold. In other words, none of the values that the curve takes at the points

Re: [R] Unexpected input in function

2012-03-20 Thread Schryver, Jack C.
for a minus sign. Jack -Original Message- From: ted@deb [mailto:ted@deb] On Behalf Of Ted Harding Sent: Monday, March 19, 2012 4:56 PM To: r-help@r-project.org Cc: Schryver, Jack C.; Schryver, Jack C.; Sarah Goslee Subject: Re: [R] Unexpected input in function I think the most likely

[R] Unexpected input in function

2012-03-19 Thread Schryver, Jack C.
ppreciated. Thanks, Jack [[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, mini

[R] rgl/ x11 problem

2012-01-11 Thread jack hietpas
Rcommander on Ubuntu 11.10. I have read that this may be an X11 problem, if so, I don't know how to fix this. Any help would be very much appreciated. Thanks for your time, -jack [[alternative HTML version deleted]] __ R-help@r-projec

Re: [R] RFE: vectorized behavior for as.POSIXct tz argument

2011-12-02 Thread Jack Tanner
David Winsemius comcast.net> writes: > sapply(tz, function(ttt) as.POSIXct(x=x, tz=ttt, > origin="1960-01-01"),simplify=FALSE) Sure, there's no end of workarounds. It would just be consistent to treat both the x and the tz arguments as vectors. __ R

[R] RFE: vectorized behavior for as.POSIXct tz argument

2011-12-02 Thread Jack Tanner
x <- 1472562988 + 1:10; tz <- rep("EST",10) # Case 1: Works as documented ct <- as.POSIXct(x, tz=tz[1], origin="1960-01-01") # Case 2: Fails ct <- as.POSIXct(x, tz=tz, origin="1960-01-01") If case 2 worked, it'd be a little easier to process paired (time, time zone) vectors from different time z

Re: [R] perfectionism

2011-11-25 Thread Jack Tanner
jim holtman gmail.com> writes: > > match(f, names(z)) > [1] 2 3 Jim, thanks so much, that's right on. Patrick, thanks to you too, but yours is not the same as what I asked: > z <- c(3,4,5,4) > names(z)<- c("a","b","c","b") > z[f] b c 4 5 Yours returns the actual values in z, not the indexes

[R] perfectionism

2011-11-25 Thread Jack Tanner
I have a named vector: > z <- c(1, 2, 3, 2) > names(z) <- c("a","b","c","b") > f <- c("b","c") I want to know the index in z of the first occurrence of each of the values in f. One implementation is > sapply(f, function(x) which(names(z)==x)[1]) b c 2 3 Is which() smart enough to stop when i

Re: [R] open source editor for r for beginners

2011-09-20 Thread Jack Siegrist
Marion Wenty wrote: > > ...Could anyone recommend an editor that is suitable for beginners?... > I had trouble with this for a long time. I tried several different programs, but couldn't get any to work properly—they were either too complicated or broken. I recently started using Notepad++ with

Re: [R] greyPalette() in legend plot

2011-09-07 Thread Jack Siegrist
Hi, Using legend as an argument within the call to barplot will automatically add the color key to the legend. I don't know how to add the colors using legend separately. Try this revised code: y <- matrix(c(46.5102,42.7561,45.7857,45.6047,45.7027,81.4565,69.8824,69.1333,67.56,57.8929,43.3019,42.

[R] sample within groups-slight problem

2011-09-06 Thread Jack Siegrist
I want to sample within groups, and when a group has only one associated number to just return that number. If I use this code: groups <- c(1, 2, 2, 2, 3) numbers <- 1:5 tapply(numbers, groups, FUN = sample) I get the following output: > groups <- c(1, 2, 2, 2, 3) > numbers <- 1:5 > tapply(

[R] term lists with tm package

2011-08-30 Thread Jack Tanner
I've got a sparse term list of the form term1 doc1 term2 doc1 term3 doc2 etc. I'd like to load this into a Corpus, as defined in the tm package. I was thinking that one way to do this is to iterate over the list building up the i, j, v vectors for a simple_triplet_matrix, and then to use that as

[R] question regarding headers with space in the names

2011-08-17 Thread Jack Luo
check.names = T A <- read.xlsx("B.xls", header = T, check.names = T) and type something like A$A.1 But I am wondering if I stick using check.names = F, if there is anything that is as easy as A$A 1 that works. Thanks, -Jack [[alternative HTML version deleted]] __

Re: [R] question regarding gregexpr and read.table

2011-08-17 Thread Jack Luo
Thank, Eik, it works! -Jack On Wed, Aug 17, 2011 at 9:19 AM, Eik Vettorazzi < e.vettora...@uke.uni-hamburg.de> wrote: > Hi Jack, > yes there is. see ?read.table for option check.names > > and to the 2nd task "." is a special character in regular expressions, >

[R] question regarding gregexpr and read.table

2011-08-17 Thread Jack Luo
quot;)[[1]] #[1] 2 4 6 #attr(,"match.length") #[1] 1 1 1 gregexpr(".","A.B.C.D")[[1]] [1] 1 2 3 4 5 6 7 attr(,"match.length") [1] 1 1 1 1 1 1 1 Looks like dots means all the characters. Is there a way that I can extract the position of the dots specifically?

[R] change pch in 3dplot, export graph

2011-07-29 Thread jack hietpas
Hello I was wondering if anyone has been able to change the pch value for points in 3dplot()? I am able to change point colors just not symbol types. I have included a portion of my code below. I realize this won't work outside of my script, but thought, maybe there is something obvious that I a

Re: [R] ?Accuracy of prop.test

2011-07-18 Thread Jack Sofsky
ab result, but that has been the nature of my approach to my mostly semi-scientific endeavors. I do have your book "Introductory Statistics with R" as one of my several guides to this adventure. Jack [[alternative HTML version deleted]] _

[R] ?Accuracy of prop.test

2011-07-17 Thread Jack Sofsky
d = 363.6, df = 1, p-value < 2.2e-16 alternative hypothesis: true p is not equal to 0.5 95 percent confidence interval: 0.1764885 0.2257849 sample estimates: p 0.2 I'm also getting slight differences in the answers for exercises and find this disconcerting. Why are these differences pre

Re: [R] RODBC: forcing a special column to be read in as character

2011-05-03 Thread Jack T.
I've had the same problem and ended up using the xlsReadWrite package. It takes more time to import a sheet but does have the colClasses command. Following your example: library(xlsReadWrite) read.xls("testtable", sheet = "sheet1", colClasses="character") should worked, it did for me -- View t

Re: [R] altering a "call" variable from quote()

2011-03-27 Thread Jack Tanner
Jack Tanner hotmail.com> writes: > > b = quote(b==3) > > Now I want to append "&& x > 2" to the value of b. How do I do that? Never mind, I figured it out: substitute(b && x > 2, list(b=b)) __ R-help@

Re: [R] Import variable labels to data frame columns

2011-03-27 Thread Jack Tanner
AjayT googlemail.com> writes: > The data looks like this, > > Id=1 time=2011-03-27 19:23:40 start=1.4018 end=1.4017 > Id=2 time=2011-03-27 19:23:40 start=1.8046 end=1.8047 Something like this would do: lines = scan(file, nlines=1, ...) fields = strsplit(lines[1], "\s+", perl=TR

[R] altering a "call" variable from quote()

2011-03-27 Thread Jack Tanner
I have a variable of mode "call": > b = quote(b==3) > b b == 3 Now I want to append "&& x > 2" to the value of b. How do I do that? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

Re: [R] Splitting Datasets

2011-03-27 Thread Jack Tanner
Wainscott, Robert LT cvn74.navy.mil> writes: > I want to split dataset "ZIDL", into individual datasets based on the > string content of variable "Dept". There are many, many ways to do this, depending on what you're really after. Here's one: depts = levels(factor(zidl$dept)) for (i in 1:length

[R] importing date vector with read.table

2010-12-10 Thread Jack Johnson
ot;,"numeric")) But I am getting an error: Error in charToDate(x) : character string is not in a standard unambiguous format because my date vector is in a format below: format="%d.%m.%Y" But how can i define the date format for date vector in read.

Re: [R] format y-axis values in ggplot

2010-11-23 Thread Jack Johnson
Dennis, Thanks for your answer. That is working nicely! Br, Jack 2010/11/23 Dennis Murphy > Hi: > > Borrowing an idea from a post by Baptiste Auguie a few weeks ago on the > ggplot2 list, try this: > > http://groups.google.com/group/ggplot2/browse_thread/thre

[R] format y-axis values in ggplot

2010-11-23 Thread Jack Johnson
p+geom_point() Thanks for any help! -Jack [[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.htm

[R] between-group covar matrix

2010-11-21 Thread jack hietpas
Hello- I am trying to calculate the between-group covariance matrix for a set of data for eventual Canonical Discrim Analysis. I can obtain the total covariance matrix and individual group covar matrix, but I am failing miserably at getting the between-group covar. The data set is composed of 9 v

[R] slow dget

2010-11-05 Thread Jack Tanner
I have a data structure that is fast to dput(), but very slow to dget(). On disk, the file is about 35MB. > system.time(dget("r.txt")) user system elapsed 142.931.27 192.84 The same data structure is fast to save() and fast to load(). The .RData file on disk is about 12MB. > system.t

Re: [R] 64 bit use of odbcConnectExcel

2010-10-14 Thread Jack T.
Still doesn't work, any ideas? Error in sqlTables(channel1) : first argument is not an open RODBC channel In addition: Warning messages: 1: In odbcDriverConnect(con, tabQuote = c("[", "]"), ...) : [RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver Manager] Data source name n

Re: [R] estimate intrinsic dimension

2010-10-05 Thread Jack Siegrist
Someone said that I need to define "intrinsic dimensionality" in my question. Basically, this is the topological dimension of a set of points that are represented in a space of possibly higher dimension. For example, your data might describe a corkscrew line through a 30-dimensional space (you mea

[R] estimate intrinsic dimension

2010-10-05 Thread Jack Siegrist
Does anyone know of any packages or have any loose code for estimating the intrinsic dimension of a data set? Thanks for any leads, Jack -- View this message in context: http://r.789695.n4.nabble.com/estimate-intrinsic-dimension-tp2956401p2956401.html Sent from the R help mailing list

[R] keep par settings after device closes

2010-09-16 Thread Jack Siegrist
your help, Jack -- View this message in context: http://r.789695.n4.nabble.com/keep-par-settings-after-device-closes-tp2542910p2542910.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] how to convert a unix R package to windows installable zip file?

2010-08-24 Thread Jack Luo
cting from zip file 2: In gzfile(file, "r") : cannot open compressed file 'CustomCDF_1.1.0.tar.gz/DESCRIPTION', probable reason 'No such file or directory' Does anyone know how to convert the package into a windows installable zip file? Thanks a bunch, -Jack

Re: [R] question about SVM in e1071

2010-07-28 Thread Jack Luo
ree SVs. Here is another question: is the complexity of the boundary determined by number of total SVs (bounded SV + free SV) or free SVs only? Thanks a bunch, -Jack On Thu, Jul 15, 2010 at 4:17 AM, Pau Carrio Gaspar wrote: > Hi Jack, > > to 1) and 2) there are telling you the same. I

[R] densityplot on date objects

2010-07-23 Thread Jack T.
Hi, I'm looking for a way to use densityplot in the lattice package on Date data or manipulate the labels for tick marks. Here's an example: #generate psuedo dates dat.Date <- as.Date('2009-12-31')+as.integer(abs(rnorm(1))*100) #convert to a julian date for densityplot #because it doesn'

[R] 64 bit use of odbcConnectExcel

2010-07-22 Thread Jack T.
Hi All, I'm using R 2.11.1 on 64 bit windows XP. The little function I wrote below I use often to import the first 1001 lines in an excel sheet to R. This works fine on the 32 bit version of R but fails on the 64 bit [both on the same machine, using the same function, importing the same .xls f

Re: [R] question about SVM in e1071

2010-07-14 Thread Jack Luo
Pau, Thanks a lot for your email, I found it very helpful. Please see below for my reply, thanks. -Jack On Wed, Jul 14, 2010 at 10:36 AM, Pau Carrio Gaspar wrote: > Hello Jack, > > 1 ) why do you thought that " larger C is prone to overfitting than smaller > C" ? >

[R] question about SVM in e1071

2010-07-13 Thread Jack Luo
the largest cost have fewest support vectors, which is contrary to what I think. please see the scripts below: Am I misunderstanding something here? Thanks a bunch, -Jack > model1 <- svm(databctrain, classesbctrain, kernel = "linear", cost = 0.01) > model2 <- svm(datab

Re: [R] how to display the clock time in the loop

2010-07-07 Thread Jack Luo
; Try to flush output after printing: > > cat(paste(Sys.time()),"\n"); flush(stdout()) > > On Thu, 2010-07-01 at 16:17 -0400, Jack Luo wrote: > > Hi, > > > I am doing some computation which is pretty time consuming, I want R to > > display CPU time after each it

[R] how to display the clock time in the loop

2010-07-01 Thread Jack Luo
Hi, I am doing some computation which is pretty time consuming, I want R to display CPU time after each iteration using the command Sys.time(). However, I found that the code only began to display the CPU time after quite a while and several iterations have finished. Is there a way to ask R to dis

[R] color lines by group membership in spaghetti plot

2010-05-14 Thread Jack Monpas-Huber
color scheme in the legend? Any advice would be much appreciated. Jack Jack B. Monpas-Huber, Ph.D. Director of Assessment & Student Information Shoreline Public Schools 18560 1st Ave NE Shoreline, WA 98155 (206) 368-4774 Office (206) 947-9926 Cell Shoreline Assessment Web site My

[R] vectorize a power analysis?

2010-05-12 Thread Jack Siegrist
of the comparative time efficiencies of these and other appropriate methods? I'm not looking for specific code, just sort of a list of the common approaches with information about efficiency. Thanks, Jack -- View this message in context: http://r.789695.n4.nabble.com/vectorize-a-

Re: [R] read.table understands comment field and ignores text

2010-04-22 Thread Jack T.
Oh man, totally missed that one! Thanks so much for the reminder. -- View this message in context: http://r.789695.n4.nabble.com/read-table-understands-comment-field-and-ignores-text-tp2021036p2021055.html Sent from the R help mailing list archive at Nabble.com. ___

[R] read.table understands comment field and ignores text

2010-04-22 Thread Jack T.
Hi I'm trying to import a large csv file without quotes around each field. This creates some problems when there are "#" characters in certain strings as R understands its comment field and ignores the rest of the line. Here's an example: var1, var2, var3, var4 one, two, three, four Use this

Re: [R] how to plot only the upper triangle using the pairs function?

2010-03-12 Thread Jack Luo
That works, thanks. In addition, is there a way to specify the color and symbol for some of the figures in the panel, but not all of them? Seems that the color and symbol arguments apply to all the figures in the panel. Thanks, -Jack On Fri, Mar 12, 2010 at 11:16 AM, Marc Schwartz wrote: >

[R] how to plot only the upper triangle using the pairs function?

2010-03-12 Thread Jack Luo
Hi, I am trying to use function pairs to plot the scatterplot, but I only want to keep the upper triangle, what's the argument to do this? Thanks, -Jack [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] two questions for R beginners

2010-02-26 Thread Jack Siegrist
My biggest impediment, as a scientist without previous programming experience, is that the R help is not beginner-friendly. I think it is probably great for experienced programmers and for the people who helped to create the software, to help them remember what they did, but I think it is very di

Re: [R] barplot y axis too short

2010-02-02 Thread Jack Siegrist
ax(data)*axExFact, digits=1))) ymin <- min(c(0, signif(min(data)*axExFact, digits=1))) barplot(data, ylim=c(ymin, ymax), ...) } # example using the function barplotCovered(data, axExFact=1.1, names.arg=c("a", "b", "c", "d")) -

[R] barplot y axis too short

2010-02-01 Thread Jack Siegrist
Hello, The function barplot automatically creates a y-axis that doesn't necessarily cover the range of y-values to be plotted. I know how to manually create my own y-axis so that it does cover the range, but I was wondering if there is some parameter to change so that the scale of the y-axis is a

[R] apply function with grouped columns

2010-01-28 Thread Jack Siegrist
t(MeanByRowTraits[2:5])) colnames(rotateData) <- c(levels(rowFactor[,1])) rotateData #This is the kind of result I want in the end aggregate (rotateData, colFactor[1], mean) -- Jack Siegrist Graduate Program in Ecology & Evolution, and Department of Ecology, Evolution,

[R] correlation significance testing with multiple factor levels

2010-01-21 Thread Jack Tanner
[Apologies in advance if this is too "statistics" and not enough "R".] I've got an experiment with two sets of treatments. Each subject either received all treatments from set A or all treatments from set B. I can compute the N pairwise correlations for all treatments in either set using cor().

[R] RFE: bQuote like sQuote

2010-01-18 Thread Jack Tanner
I'm writing SQL queries, and it's very handy to be able to use sQuote for string parameter values. It makes me wish that I could use an sQuote-like function for enclosing column names and other identifiers in backticks, i.e., select `foo` from `table`. Obviously I can do this with paste(), I'm just

[R] ensemble for machine learning

2009-12-23 Thread Jack Lewis
ss']) x.en.rocr <- prediction(x.en.prob, BreastCancer[ind == 2,'Class']) x.en.perf <- performance(x.en.rocr, "tpr","fpr") plot(x.en.perf, col=5, add=TRUE) # Draw a legend. legend(0.6, 0.6, c('bagging','svm', 'cforest', '

[R] serialized plot object (2 years later)

2009-11-22 Thread Jack Tanner
About 2 years ago, Tobias Verbeke asked: "I am looking for a way to capture the binary string that in normal use of graphics devices will bewritten to (most commonly) a file connection... Is there a way of capturing the binary `jpeg string' [generated by jpeg()]?" http://tolstoy.newcastle.edu.

Re: [R] fitting a logistic regression with mixed type of variables

2009-11-16 Thread Jack Luo
David, Thanks for your reply. Since I am kinda new to this forum, could you please advise me on where to read those questions in R-help? In addition, I did not pay much attention to the na.action, probably I should use na.action = na.omit instead of na.pass. -Jack On Mon, Nov 16, 2009 at 2:32

[R] fitting a logistic regression with mixed type of variables

2009-11-16 Thread Jack Luo
ink="logit"), na.action=na.pass)* * * *Thanks,* * * *-Jack* [[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-projec

[R] how to suppress the output from stepAIC?

2009-11-10 Thread Jack Luo
Hi, I am now running a cross-validation using coxph coupled with stepAIC for model selection, is there anyway to suppress the output? It's too much. -Jack [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] a sequence that wraps around

2009-09-16 Thread Jack Tanner
Szabolcs Horvát gmail.com> writes: > You could use the modulo operator. > > > > # additional examples of what I want > > seq(from=2, length.out=4, rlimit=3) > > [1] 2 3 1 2 > > seq(from=1, length.out=4) %% 3 + 1 Ah, that's so slick. You're off to a great start! Huge thanks to you and everyone

Re: [R] a sequence that wraps around

2009-09-16 Thread Jack Tanner
Henrique Dallazuanna gmail.com> writes: > Try rep: > > rep(2:4, length.out = 3, times = 10) That's close, but it doesn't wrap to start at 1. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

  1   2   >