[R] mice: selecting small subset of variables to impute from dataset with many variables (> 2500)

2022-07-14 Thread Ian McPhail
out a method of skipping variables where EVERY variable is named (as "bmi" is named above). I am wondering if there is a reasonably easy way to select out approximately 30 variables for imputation from a larger dataset with around 2500 variables, without having to name all

[R] Error in mice package when trying to use subset of variables for imputation model

2020-07-21 Thread Ian McPhail
, 0), TSHS_33R = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), row.names = c(NA, -10L), class = c("tbl_df", "tbl", "data.frame")) > rstudioapi::versionInfo() $`citation` To cite RStudio in publications use: RStudio Team (2018). RStudio: Integrated Development for R. RS

[R] Computing tetrachoric covariance matrices for multiple imputed datasets using MICE package

2020-04-24 Thread Ian McPhail
ery savvy with R, but I appreciate any help people are able to provide. tia, Ian [[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

[R] Again: A problem someone should know about

2015-03-30 Thread Ian Lester
uot;Body fat",ylab="BMI") serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in a

[R] A problem someone should know about

2015-03-29 Thread Ian Lester
I’m a novice and this message looks like it shouldn’t be ignored. Someone who knows what they’re doing should probably take a look. Thanks Ian Lester >logfat.lm<-(lm(body.fat~log(BMI))) > plot(logfat) Error in plot(logfat) : object 'logfat' not found > plot(logfat.lm) Hit

[R] Help: The Difference Between Workspace, Script, and History

2014-12-17 Thread Ian Evans
I apologize that I am very new to R and programming in general. I do not understand the difference between the script, the workspace, and the history, and what saving each one means. I seem to be doing fine writing commands and going through lessons and examples (I'm using Learn R in a Day) but wh

Re: [R] Analysis of censored cost data

2014-07-03 Thread Ian Cromwell
Paul, I happen to be working on the exact same problem. If you found a solution somewhere, please let me know. I will do the same if I stumble onto a solution first. Rich - cost information can be collected prospectively but be censored due to incomplete follow-up or some other similar reason. Thi

Re: [R] Plot fn, xlim when x is a date. XXXX

2014-03-15 Thread Ian Cook
Sent from my iPhone __ 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] Problems with line types in plots saved as PDF files

2013-02-19 Thread Ian Renner
Hi Ista, I'm using Adobe Reader XI. It's good to hear that the plot was produced correctly and that it is Adobe that is failing to represent it properly. Thanks! Ian From: Ista Zahn Cc: "r-help@r-project.org" Sent: Wednesday, 20 F

[R] Help with functions as arguments

2013-02-11 Thread Ian Renner
object 'x' not found" I'm not sure how to define environments within the functions so that the just-defined 'x' may be passed as an argument to f1 within f2. Any help would be greatly appreciated! Ian Renner [[alternative HTML version deleted]]

Re: [R] Merging data tables

2012-12-28 Thread Ian Fellows
It is also possible to construct the r call in the GUI. See: http://www.deducer.org/pmwiki/index.php?n=Main.MergeData Ian Sent from my iPhone On Dec 28, 2012, at 4:41 AM, Djordje Bajic wrote: > see ?merge, > > for your dataframes, the following should work: > > mer

[R] [R-pkgs] glm2 version 1.1

2012-12-05 Thread Ian Marschner
archived because it called a Fortran routine no longer available in R >= 2.15.1. This has been addressed in the current version of glm2. --- Ian Marschner Professor, Dept. of Statistics Macquarie University, Sydney, Austra

Re: [R] Pkg rgl: installation fails because of x11

2012-10-12 Thread ian
In my case R was not built with X support, and I was also missing some openGL libraries. The info I needed was in the README inside the unzipped tarball for rgl. But rgl cleaned up after failing the install, and deleted the README, so I never new the README was there until I manually untarr'ed th

[R] Subsetting a group of data

2012-10-04 Thread Ian Arvin
1 1 2 1 1 3 1 1 Group 2 Cola Colb 1 -11 Group 3 Cola Colb 1 -1-1 2 -1-1 Thank you for you

Re: [R] download truncating large files

2012-09-18 Thread Ian Shannon
. Any pointers as how to proceed? I am currently stumped because "download" is an internal command and I can't dive into it to trace the source the error. Ian Ian Shannon Landscape Modelling and Decision Support Section Office of Environment & Heritage PO Box A290 Sydney South

[R] download truncating large files

2012-09-17 Thread Ian Shannon
value of status for XLConnect_0.2-1.zip is 0 trying URL 'http://cran.csiro.au/bin/windows/contrib/2.15/XLConnectJars_0.2-0.zip' Content type 'application/zip' length 16486857 bytes (15.7 Mb) opened URL downloaded 15.6 Mb the value of status for XLConnectJars_0.2-0.zip is 0

[R] [R-pkgs] Updates to the Deducer family of packages

2012-03-29 Thread Ian Fellows
Dear R users, Over the past month there have been a number of package updates in the deducer ecosystem. Deducer is a general purpose, extensible, data analysis GUI. It is designed to be a free easy to use alternative to proprietary data analysis software such as SPSS, JMP, and Minitab. It has a

[R] Forloop/ifelse program problem and list of dataframes

2012-03-21 Thread Ian Craig
Hello R Community, I don't post to these things often so excuse me if I stumble on my forum etiquette. This is a complex problem for me, which may require two forum entries, but I will try my best to be concise. Also, I am a self taught coder, so if my code is not to convention, your constructi

Re: [R] Coding C++ in R. What is faster : Using bosst external libraries or R.h header file?

2012-03-13 Thread Ian Schiller
Thank you Michael, Your advices are truly appreciated! Ian -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: 13 mars 2012 09:44 To: Ian Schiller Cc: r-help@r-project.org Subject: Re: [R] Coding C++ in R. What is faster : Using bosst external

[R] Coding C++ in R. What is faster : Using bosst external libraries or R.h header file?

2012-03-13 Thread Ian Schiller
hanks! ****** IAN SCHILLER, M.Sc. Statistical research assistant, Division of Clinical Epidemiology, McGill University Health Center Assistant de recherche en statistiques, Département d'Épidémiologie Cliniq

[R] [R-pkgs] New package: OpenStreetMap 0.2

2012-03-05 Thread Ian Fellows
, so downloads occur only when necessary. 4. ggplot 0.9.0 integration More information is available at: http://blog.fellstat.com/?p=130 Ian Fellows http://www.fellstat.com ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch

[R] passing "..." arguments to (plot.ca)

2012-01-22 Thread Ian Robertson
(), but I can't get anything similar to work in this case. I have done some searching in the help archives (and various of my R books) without identifying anything helpful--so any suggestions for specific code I might try, or things I need to go read, etc., would be much appreciated. Th

Re: [R] Calling R functions within C/C++

2012-01-05 Thread Ian Schiller
> I am not sure if you have found Rcpp yet I will take a look for sure! Thanks a lot! Ian -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: 5 janvier 2012 15:18 To: Ian Schiller Cc: r-help@r-project.org Subject: Re: [R] Calling R functions within C/C++ O

[R] Calling R functions within C/C++

2012-01-05 Thread Ian Schiller
mes=n) // Can we call the R rep function such that this line of code (or any equivalent code) is valid? ... } } } Thanks, ****** IAN SCHILL

Re: [R] Is there way to add a new row to a data frame in a specific location

2011-11-25 Thread Ian Strang
This look really interesting but I don't understand what is happening. Please can someone explain the last line and what the bit in [] is doing. Ian df = data.frame( A=c('a','b','c'), B=c(1,2,3), C=c(10,20,30), stringsAsFactors=FALSE) newrow = c('X

Re: [R] Scatter plot - using colour to group points?

2011-11-23 Thread Ian Robertson
while experimenting with the problem (indicating the specific line of code I asked him about) followed by Michael's thoughtful reply. Saludos - Ian -- Ian G. Robertson Department of Anthropology Building 50, 450 Serra Mall Stanford University, CA 94305-2034 e:i...@stanford.edu

Re: [R] Adding two or more columns of a data frame for each row when NAs are present.

2011-11-22 Thread Ian Strang
ow is considered as an integer and OK for rowSums etc. A missing value in col Q00 will be interpreted as a row with one less value at the end, I think. Ian + yy <- read.table( header = T, sep=",", text = + "Q00, Q20, Q21, Q22, Q23, Q24 + 0, 0, 1, 2, 3, 4 + 0, 1, 2, 3, 4, 5 +

Re: [R] Adding two or more columns of a data frame for each row when NAs are present.

2011-11-21 Thread Ian Strang
Hi, Thanks, your method does indeed work. Thank you. Last night, I worked out something similar and found out about rowMeans as well. Kind wishes, Ian yy <- read.table( header = T, sep=",", text = "Q20, Q21, Q22, Q23, Q24 0,1, 2,3,4 1,NA,2,3,4 2,1, 2,3,4 5,NA,3,NA,NA&q

[R] Adding two or more columns of a data frame for each row when NAs are present.

2011-11-20 Thread Ian Strang
add together several columns giving the result for each row in mySum? NA should be treated as a 0. Please, note, I do not want to sum all the columns, as I think rowSums would do, just the selected ones. Thanks for your help. Ian, > yy <- read.table( header = T, sep=",", text =

Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Ian Deters
It worked fabulously. Thank you so much for help and time. -- View this message in context: http://r.789695.n4.nabble.com/ATSP-to-TSP-reformulation-tp3777105p3779476.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] ATSP to TSP reformulation

2011-08-30 Thread Ian Deters
Dr. Hahsler, Thank you so much for looking at my code. I made sure that I had TSP_1.0-3 install and ran the code again (this time with "<-" instead of "=" for my assignments). I received the same response. I checked my sessionInfo and did not see anything out of the ordinary. Does anything loo

[R] ATSP to TSP reformulation

2011-08-29 Thread Ian Deters
Greetings, I am having trouble getting the function reformulate_ATSP_as_TSP to work for me. I have provided a simple example of some of the code I've been using. In particular, I'm not sure why I'm getting the error "Error in dimnames(tsp) <- list(lab, lab) : length of 'dimnames' [1] not e

[R] Multiple Traveling Salesperson Problem

2011-08-29 Thread Ian Deters
While R has library TSP to help solve traveling salesperson problems, does anyone know if it has any libraries to help solve multiple traveling salesperson problems? For instance, suppose one is planning school bus routes and one has multiple buses. Thank you for your time. -- View this message

[R] Multiple Traveling Salesperson Problem

2011-08-19 Thread Ian Deters
While R has library TSP to help solve traveling salesperson problems, does anyone know if it has any libraries to help solve multiple traveling salesperson problems? For instance, suppose one is planning school bus routes and one has multiple buses. Thank you for your time. -- View this message

[R] ATSP to TSP reformulation

2011-08-19 Thread Ian Deters
Greetings, I am having trouble getting the function reformulate_ATSP_as_TSP to work for me. I have provided a simple example of some of the code I've been using. In particular, I'm not sure why I'm getting the error "Error in dimnames(tsp) <- list(lab, lab) : length of 'dimnames' [1] not eq

Re: [R] ideas about how to reduce RAM & improve speed in trying to use lapply(strsplit())

2011-05-29 Thread Ian Gow
Not a new approach, but some benchmark data (the perl=TRUE speeds up Jim's suggestion): > x <- c('18x.6','12x.9','302x.3') > y <- rep(x,10) > system.time(temp <- unlist(lapply(strsplit(y,".",fixed=TRUE),function(x) >x[1]))) user system elapsed 1.203 0.018 1.222 > system.time(temp2 <-

Re: [R] NaN, Inf to NA

2011-05-26 Thread Ian Gow
> df$a[is.infinite(df$a) | is.nan(df$a) ] <- NA > df a 1 NA 2 NA 3 NA 4 1 5 2 6 3 On 5/26/11 3:18 PM, "Albert-Jan Roskam" wrote: >Hi, > >I want to recode all Inf and NaN values to NA, but I;m surprised to see >the >result of the following code. Could anybody enlighten me about this? > >>

Re: [R] Importing fixed-width data

2011-05-25 Thread Ian Gow
Everything looks OK. Does this help? > test <- >data.frame(alpha=as.factor(c("A","A","B","B","C")),number=c(1,2,3,4,5)) > mode(test) [1] "list" > class(test) [1] "data.frame" > sapply(test, mode) alphanumber "numeric" "numeric" > sapply(test, class) alphanumber "factor" "numeric

Re: [R] how to eliminate first row in datafile created in do loop

2011-05-24 Thread Ian Gow
3975" >one.month "5" "30.894195075" "37.657271835" >one.month "6" "29.27843098" "37.59689852" >one.month "7" "27.5014142975" "34.36265367" >one.month "8" "26.4055425"

Re: [R] how to eliminate first row in datafile created in do loop

2011-05-24 Thread Ian Gow
data.frame(lower, upper) limit.list <- rbind(limit.list, one.month) } limit.list -Ian On 5/24/11 7:30 AM, "Graves, Gregory" wrote: >I am trying to create a routine that would take a time series and >generate monthly 25%tile and 75%tile limits based on 12 calendar months. >

Re: [R] days between dates

2011-05-23 Thread Ian Gow
1 Tuesday 18 27 2006-02-22 Wednesday 19 28 2006-02-23 Thursday 20 -Ian On May 23, 2011, at 12:30 PM, Geoffrey Smith wrote: > Thank you for the email. The data is unbalanced, meaning that some days are > missing. So the sequence of days could be something like Tuesday

Re: [R] Downloading a csv from Dropbox using the shareable link

2011-05-23 Thread Ian Gow
ofile and then use Sys.getenv("DROPBOX_PATH") to access the path. It seems from looking at forums for Dropbox that there is no easily accessed environment variable that Dropbox sets for the path to the Dropbox folder. -- Ian Gow Accounting Information and Management Kellogg School of

Re: [R] Add a vector to the values in a specific dimension of an array

2011-05-18 Thread Ian Gow
Hi: Reordering the dimensions, then doing a vectorized addition, then reordering (back) again is faster, it seems. > m <- 20; n <- 30; p <- 40; q <- 30 > a <- NA > length(a) <- m * n * p * q > dim(a) <- c(m, n, p, q) > x <- 1:n > a[1:m,,1:p,1:q] <- 0 > b <- a > > # Approach 1 > system.time({ +

Re: [R] rbind with partially overlapping column names

2011-05-15 Thread Ian Gow
That approach relies on df1 and df2 not having overlapping values in b. Slight variation in df2 gives different results: > df1 <- data.frame(a=c("A","A"),b=c("B","B")) > df2 <- data.frame(b=c("B","B"),c=c("c","c")) > merge(df1,df2,all=TRUE) b a c 1 B A c 2 B A c 3 B A c 4 B A c On 5/15/11 11:1

Re: [R] rbind with partially overlapping column names

2011-05-15 Thread Ian Gow
Hi: This is a bit of a kluge, but works for your test case: > df2[,setdiff(names(df1),names(df2))] <- NA > df1[,setdiff(names(df2),names(df1))] <- NA > df3 <- rbind(df1,df2) > df3 a b c 1 A B 2 A B 3 b c 4 b c -Ian On 5/15/11 7:41 PM, "Jonathan Flowers" wro

Re: [R] how to merge within range?

2011-05-14 Thread Ian Gow
N df_2 AS b ON a.time BETWEEN b.start AND b.end")> df_3 time value 1 101 1 2 199 1 3 301 1 4 401NA 5 501 3 6 601 3 7 700 3 8 800 5 9 900 5 10 1000NA On Sat, May 14, 2011 at 1:06 PM, René Mayer wrote: > thanks David and Ian,

Re: [R] how to merge within range?

2011-05-14 Thread Ian Gow
If I assume that the third column in data.frame.2 is named "val" then in SQL terms it _seems_ you want SELECT a.time, b.val FROM data.frame.1 AS a LEFT JOIN data.frame.2 AS b ON a.time BETWEEN b.start AND b.end; Not sure how to do that elegantly using R subsetting/merge, but you might try a packa

Re: [R] Layout within levelplot from the lattice package

2011-04-13 Thread Ian Renner
Hi Dieter, Thank you for that! Your post helped me on my way by introducing me to the padding settings within lattice, and I'm nearly there now. My new problem related to this graph is that I would like to add a polygon to one of the panels, but it seems that my code also adds the polyg

Re: [R] Fwd: CRAN problem with plyr-1.4.1

2011-04-12 Thread Ian Davis
our help, and for your work on maintaining R. Best, Ian 2011/4/12 Uwe Ligges > > > On 11.04.2011 21:03, Douglas Bates wrote: > >> The first thing to do is try another mirror. The "official" (or as >> official as we ever get about anything) U.S. mirror is >>

Re: [R] Fwd: CRAN problem with plyr-1.4.1

2011-04-12 Thread Ian Davis
2011/4/12 Uwe Ligges > On 12.04.2011 14:52, Ian Davis wrote: > >> I really do appreciate the help from you and Douglas on resolving this >> problem. However, I respectfully disagree on a few points: >> >> - install.packages() was broken and f

[R] Fwd: CRAN problem with plyr-1.4.1

2011-04-11 Thread Ian Davis
t the same problem with all of them. They think the current version is 1.4.1, but they don't have any files available for download. Hope this helps, Ian [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

[R] Layout within levelplot from the lattice package

2011-04-06 Thread Ian Renner
)),colorkey=list(space="bottom")),split=c(2,2,3,2),newpage=FALSE) print(levelplot(z~x*y,data=data.C1,col.regions=terrain.colors,asp="iso",xlab = "", ylab = "", main="Method C",scales=list(y=list(draw=F),x=list(draw=F)),colorkey=FALSE),split=c(3,

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
just copy the Rcmd.bat file into the Rtools/bin folder for example. This will prevent any change to the path and avoid typographical errors. Thanks! Ian ****** IAN SCHIL

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
> You likely have the Hide extensions options enabled on your Windows system. Yes you're right! Guys, I thank you all for your precious help! Ian ****** IAN SCHILL

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
tar.gz' Directory of C:\R 03/24/2011 01:16 PM . 03/24/2011 01:16 PM .. 03/24/2011 01:08 PM HSROC 03/24/2011 01:16 PM47,976 HSROC_1.0.0.tar.gz 1 File(s) 47,976 bytes

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
ent variables that may compensate for a mis-configured system. Thanks! I'll try this too. Ian ****** IAN SCHILLER, M.Sc. Statistical research assistant, Division of

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
an't see. Agree. > Can you try doing the build on a 32 bit OS, or on Windows 7? I'll give it a shot. Thanks again Mr. Murdoch (got it now!) Ian ****** IAN SCHILLER

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
Oh Sorry Mr Murdoch! I read a post where both you and Brian Ripley were involved and the confusion probably arose from that! Ok thanks Mr Ligges. Ian ** IAN SCHILLER

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
with the R CMD build command. Then my question would be the following. If I submit my package to CRAN do you know if it needs to be tar.gz or will a tar file be accepted? Thanks

[R] R CMD build creates tar file instead of tar.gz file

2011-03-24 Thread Ian Schiller
I also have the latest version of Rtools (Rtools212.exe). My operating system is Windows XP professional x64 edition if it can help. Any clues on how to solve this issue would be appreciated. Ian *********

Re: [R] Fuzzy merge using timestamps

2010-11-10 Thread Ian Craig
ata_gpsur$t_datetimegps, gpsARC=data_gpsur$gpsARC, y=data_gpsur$y, x=data_gpsur$x, tot_pos=data_gpsur$TOT_POS) testdata <- testdata[order(testdata$gpsARC, t_datetimegps),] Thoughts? On Wed, Nov 10, 2010 at 2:09 PM, Sarah Goslee wrote: > Hi Ian, > > Did you see the second part of my request,

Re: [R] Fuzzy merge using timestamps

2010-11-10 Thread Ian Craig
0 0 0 2009-07-23 11:15:00 141 15 38-C 217276 12/21/2008 4:31 12/22/2008 16:31 12/21/2008 4:31 0 0 0 2008-12-22 16:31:00 151 On Wed, Nov 10, 2010 at 1:12 PM, Sarah Goslee wrote: > On Wed, Nov 10, 2010 at 12:57 PM, Ian Craig wrote: > > Greeting

[R] Fuzzy merge using timestamps

2010-11-10 Thread Ian Craig
Greetings Supreme Council of R Masters, Like toddler, I have gotten my head stuck in the banisters of R ... again. Let it be know I am still a neophyte in the R-community forum world, so please don't flame me too bad. I have two sets of data, each with a set of timestamps. I would like to someh

[R] ANOVA table and lmer

2010-11-05 Thread ian m s white
quare is 1.485 times *main-plot* residual mean square. -- ian m s white 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/listi

[R] Using data( ) in a loop

2010-11-02 Thread McCarthy, Ian
te[1] tract <- paste(state.temp,".tract",sep="") data(tract) Warning message: In data(tract) : data set 'tract' not found Ian McCarthy, Ph.D. F T I 214.397.1761 direct 214.663.1683 mobile ian.mccar...@fticonsulting.com <mailto:firstname.lastn

[R] How do I install (download) a package with my own package?

2010-10-28 Thread Ian Schiller
existing package with the package I will create so that one doesn't have to install my package and then the package in which some of my functions depend on? Thanks! Ian [[alternative HTML version deleted]] __ R-help@r-project.org mailing

[R] using coxme to fit random slope cox PH model

2010-10-25 Thread Ian Vi
Hi all, I was trying to fit random slope cox proportional hazards model on counting process type of data (right censoring data), but the  coxme(Surv(time1, time2, event)~ x + (1+x | cluster)) did not seem to work. I'd appreciate it if anyone can help me with that. [[alternative HTML

[R] [R-pkgs] Deducer 0.4-1 and JGR 1.7-2 released

2010-09-27 Thread Ian Fellows
systems New Features: 1. Graphics device save support for png, jpeg, bmp, and tiff 2. User control over the menu system has been improved. Added ability to insert new menus, menu items, separators, and sub-menus. Menus and menu items can also be removed. Ian Fellows

[R] [R-pkgs] Major update of Deducer, including GSOC funded work

2010-08-17 Thread ian fellows
A new version of Deducer (0.4) has been sent to CRAN, and should be propagating to all the mirrors in due course. Also, a new plug-in package (DeducerExtras) has also been released to CRAN, containing additional dialogs and functionality. I would like to take this opportunity to thank the

[R] Layering multiple persp plots

2010-07-30 Thread Ian Bentley
Hi all, I've got two persp plots with Identical X and Y's, and I'd like to plot them on the same graph, so that it is obvious where one plot is above the other. I can't find any mention of this anywhere. Do I need to use wireframe? Any help is appreciated. Thanks,

Re: [R] a very particular plot

2010-07-14 Thread Ian Bentley
roblems on google. Thanks again, Ian On 14 July 2010 03:56, Dennis Murphy wrote: > Hi: > > This is untested, so caveat emptor. I believe Hadley is busy teaching a > ggplot2 course this week so his availability is limited at best. I guess I > can give it a shot... > > You need a

Re: [R] POSIXlt error

2010-07-13 Thread Ian Seow
at 10:24 AM, Erik Iverson wrote: > Do you care to share your sessionInfo() , as the Posting Guide asks? > > I cannot reproduce on: > > R version 2.11.1 (2010-05-31) > i486-pc-linux-gnu > > > > On 07/13/2010 09:07 PM, Ian Seow wrote: > >> Hi, I'm encou

[R] POSIXlt error

2010-07-13 Thread Ian Seow
01" > as.POSIXlt("1972-01-01") [1] "1972-01-01" > as.POSIXlt("1962-01-01") [1] "1962-01-01" Thanks. Ian [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.

[R] POSIXlt error for 1982-01-01

2010-07-13 Thread Ian Seow
ot; > as.POSIXlt("1972-01-01") [1] "1972-01-01" > as.POSIXlt("1962-01-01") [1] "1962-01-01" Ian [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

Re: [R] a very particular plot

2010-07-13 Thread Ian Bentley
;Network Complexity (nodes)') + ylab('Battery Cost (uJ)') + --END-- And this works great, except that I think that I am not being very R'y, since now I want to add a legend saying that circle (i.e. shape 1) is the minimum, and shape 2 is the med, and shape 3 is max. I'd al

[R] a very particular plot

2010-07-10 Thread Ian Bentley
histogram data, so that the y values which have more density in the subframe are darker, and the ones with less density are lighter. I know this is fairly particular, and may not be possible, but it would be really great for me! If anyone can help - thanks! -- Ian Bentley M.Sc. Candidate Queen&#

[R] Boxplots from data.frame

2010-07-07 Thread Ian Bentley
uch. Can anyone give me a helping hand? -- Ian Bentley M.Sc. Candidate Queen's University Kingston, Ontario [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Plot with whispers

2010-07-05 Thread Ian Bentley
hough, I tried a number of things ydata <- seq(length=100, from=1, by=0) p1 <- c(data[1], ydata) seems to be the close to what I want, but it isn't quite right. Can anyone give me an idea how to associate the 100 data points with a y-coord, so that I can then use them in a boxplot/wh

[R] Plot with whispers

2010-07-05 Thread Ian Bentley
including Send, Receive. Anyways, I'd appreciate a push in some direction - hopefully the right one :). -- Ian Bentley M.Sc. Candidate Queen's University Kingston, Ontario [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Transforming simulation data which is spread acrossmanyfiles into a barplot

2010-06-12 Thread Ian Bentley
Tufte's term) and distracts. > > > I'll keep this in mind. I am just using this chart for my own analysis now, and probably won't include it later. > Bert Gunter > Genentech Nonclinical Biostatistics > > > > -Original Message- > From: r-help-boun..

Re: [R] Transforming simulation data which is spread across manyfiles into a barplot

2010-06-11 Thread Ian Bentley
x scatterplot to see the relationship. > > Bert Gunter > Genentech Nonclinical Biostatistics > > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On > Behalf Of Hadley Wickham > Sent: Friday, June 11,

[R] Transforming simulation data which is spread across many files into a barplot

2010-06-11 Thread Ian Bentley
="") tmp <- read.table(tmpFile) } --- But I really don't know how to handle massaging this data into the matrix I need. I hope this makes sense, I find it a little hard to describe. Can anyone give me some help jumping into this one? Thanks -- Ian Bentley M.Sc. Candidate Queen&

Re: [R] More efficient way to use ifelse()? - A follow up

2010-05-26 Thread Ian Dworkin
factor.result=F) ) # ~ 3.5s elapsed # David Winsemius suggests system.time( elevation.DW <- (Population=="CO")* 2169+ (Population=="CN")* 1121+ (Population=="Ga")* 500+ (Population=="KO")* 2500+ (Popula

[R] More efficient way to use ifelse()?

2010-05-25 Thread Ian Dworkin
O", "Mw", "Ng"), c(2169, 1121, 500, 2500, 625, 300), c(NA, NA, NA, NA, NA, NA)) # It makes sense to me why this does not work (elevation.take.2), but I am not sure how to get it to work. Any suggestions? I suspect it involves a trick using "any" or "II&quo

[R] (no subject)

2010-05-20 Thread ian kennedy
Here's another possibility: > x <- c("Apple12","HP42","Dell91") > strsplit(x,"(?<=\\D)(?=\\d)", perl=TRUE) [[1]] [1] "Apple" "12" [[2]] [1] "HP" "42" [[3]] [1] "Dell" "91" Krishna Tateneni writes: > Greetings, > > I have a vector of values that are a word followed by a number, e.g.,

[R] Convert character vector into string

2010-04-28 Thread Ian Seow
Hi, how do I convert a character vector into a string? c("a","b","c") into "a b c" 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

[R] [R-pkgs] Deducer 0.2-3 and DeducerPlugInExample released

2010-03-15 Thread ian fellows
/ deducer All the best, Ian Fellows ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] bigglm Memory Issues

2010-03-02 Thread Ian Renner
vector of size 255.9 Mb However, I had set the maximum memory to 4095 Mb and had used only 926 Mb to that point. If I try to use a smaller chunksize, I get this error: >Error in model.frame.default(tt, chunk) : variable lengths differ (found for >'Xdes') Can

[R] bigglm Memory Issues

2010-03-01 Thread Ian Renner
emory to 4095 Mb and had used only 926 Mb to that point. If I try to use a smaller chunksize, I get this error: >Error in model.frame.default(tt, chunk) : variable lengths differ (found for >'Xdes') Can anybody help me with this? Thanks, Ian

Re: [R] Trouble with optim function

2010-02-18 Thread Ian Fiske
You're minimizing the log likelihood, but you want to minimize the *negative* log likelihood. Also, optimize() is better than optim() if you have a function of only one argument. Replace Jon Moroney wrote: > > #Create the log likelihood function > LL<-function(x) {(trials*log(x))-(x*sumvect)}

[R] Character String length

2009-12-10 Thread Ian Platt
Hi all, I have a script running on a Windows XP 32 bit OS under R 2.9.2 I am experiencing a character string limitation of 64 chars. Is this a general limitation of R or am I missing something? Any help appreciated. Regards, Ian -- View this message in context: http://n4.nabble.com

[R] [R-pkgs] Deducer: An R data analysis GUI

2009-12-03 Thread ian . fellows
Announcing a new version of Deducer: Deducer 0.2-1 is an intuitive, cross-platform graphical data analysis system. It uses menus and dialogs to guide the user efficiently through the data manipulation and analysis process, and has an excel like spreadsheet for easy data frame visualization and edi

Re: [R] Problem plotting output from tree()

2009-11-13 Thread Ian Robertson
object s1 <- nchar(mdl1$frame$splits[, 1]) > 0 sp1 <- mdl1$frame$splits[s1, 1] mdl1$frame$splits[s1, 1] <- paste("<", round(as.numeric(substr(sp1, 2, nchar(sp1))), 2), sep="") #(better) output plot(mdl1); text(mdl1, cex=.6) ##

[R] Problem plotting output from tree()

2009-11-13 Thread Ian Robertson
ot(mdl1); text(mdl1, cex=.6) plot(mdl1); text(mdl1, cex=.6, digits=2) #no change to labelling #help! ?text.tree Can anyone spot my error? Many thanks for any help. Ian Robertson __ R-help@r-pro

Re: [R] how to get rid of 2 for-loops and optimize runtime

2009-10-20 Thread Ian Willems
erent rows? Thank u for your help regards, Ian -Oorspronkelijk bericht- Van: William Dunlap [mailto:wdun...@tibco.com] Verzonden: maandag 19 oktober 2009 18:08 Aan: Ian Willems; r-help@r-project.org Onderwerp: RE: [R] how to get rid of 2 for-loops and optimize runtime > -Original

Re: [R] how to get rid of 2 for-loops and optimize runtime

2009-10-20 Thread Ian Willems
nk u for your time Greetings, Ian -Oorspronkelijk bericht- Van: joris meys [mailto:jorism...@gmail.com] Verzonden: maandag 19 oktober 2009 16:12 Aan: Ian Willems CC: r-help@r-project.org Onderwerp: Re: [R] how to get rid of 2 for-loops and optimize runtime Hi Ian, first of all, take

[R] how to get rid of 2 for-loops and optimize runtime

2009-10-19 Thread Ian Willems
e output I guess I need code that requires linear time and need to get rid of the 2 for loops. can someone help me or tell me what else I can do to optimize my runtime I use R 2.9.2 windows Xp service pack3 Thank you in advance Best regards, Willems Ian * dataset[

Re: [R] rpois formula

2009-10-06 Thread Ian Fiske
try sum(a > b) sum(b > a) sum(a == b) Ian nedmt60 wrote: > > i have > > a = rpois (10, x) > b = rpois (10, y) > > what is the code to show that a>b, b>a and a=b to show just the number of > occurances? > at the moment when I type a>

[R] [R-pkgs] Deducer 0.1 : An intuitive cross-platform data analysis GUI

2009-08-04 Thread Ian Fellows
Deducer 0.1 has been released to CRAN Deducer is designed to be a free, easy to use, alternative to proprietary software such as SPSS, JMP, and Minitab. It has a menu system to do common data manipulation and data analysis tasks, and an excel-like spreadsheet in which to view and edit data frames.

Re: [R] - counting factor occurrences within a group: tapply()

2009-07-29 Thread Ian Chidister
Jim- That did the trick- thanks so much for taking the time to help me out. Sincerely, Ian Chidister On Wed, Jul 29, 2009 at 11:57 AM, Ian Chidister wrote: > Dear List, > > I'm an [R] novice starting analysis of an ecological dataset containing the > basal areas of different

  1   2   >