Re: [R] install issue with survey package?

2018-10-12 Thread Alexander Nervedi
are no spaces in path names. Thanks for the pointer, best wishes, Alnerdi From: Michael Dewey Sent: Friday, October 12, 2018 4:33 AM To: Alexander Nervedi; r-help@R-project.org Subject: Re: [R] install issue with survey package? Dear Al It looks like the problem m

[R] install issue with survey package?

2018-10-12 Thread Alexander Nervedi
Have been trying to run a few packages with dependency on the survey package (e.g. twang) and have run into trouble that I am not sure how to resolve. Any help would be appreciated, the code (and error messages) are below: --- R log begins --- > install.packages("survey") Installing package

[R] GA/SWARM Hyperparameter (HP) Optimisation for Classification based Machine Learning

2018-05-03 Thread Alexander Gracian via R-help
Hi, I believe that Caret uses a  grid-serach approach. I was wondering if: 1 There are more efficient implementations for HP tuning for classification algos (eg XGboost, CatBoost, SVM, RF etc), using say GM/SWARM approaches, akin to Google's approach AutoML for Image related Net problems? 2 This

[R] parfm unable to fit models when hazard rate is small

2018-04-04 Thread Alexander Pate
Hello, I would like to use the parfm package: https://cran.r-project.org/web/packages/parfm/parfm.pdfhttps://cran.r-project.org/web/packages/parfm/parfm.pdf in my work. This package fits parametric frailty models to survival data. To ensure I was using it properly, I started by running some

[R] coxme in R underestimates variance of random effect, when random effect is on observation level

2018-03-28 Thread Alexander Pate
Hello, I have a question concerning fitting a cox model with a random intercept, also known as a frailty model. I am using both the coxme package, and the frailty statement in coxph. Often 'shared' frailty models are implemented in practice, to group people who are from a cluster to account

Re: [R] restricted cubic spline in FGR function

2018-03-24 Thread Thomas Alexander Gerds
the problem is not in my package. you can probably see this with tracebach() rcs is from rms and FGR is just a wrapper for cmprsk it would be nice though to fix this and if you can I would be very happy to include your contribution in my package. "Raja, Dr. Edwin Amalraj"

Re: [R] selectFGR - variable selection in fine gray model for competing risks

2018-03-19 Thread Thomas Alexander Gerds
Dear Raja the technical problem is that the function crrstep does not communicate the selected variables in a proper way. the function pec::selectFGR uses rownames(crrstep.fit$coefficients). the other problem is that I don't like and never use backward elemination -- so, I am not motivated to fix

[R] source files in temp environment

2017-12-02 Thread Alexander Shenkin
Hi all, I often keep code in separate files for organizational purposes, and source() that code from higher level scripts. One problem is that those sourced files often create temporary variables that I don't want to keep around. I could clean up after myself with lots of rm()'s, but that's

[R] Yield-to-Maturity problem

2017-11-16 Thread Alexander Bergmüller
Hello everybody, I am not very advanced in my R skills so I really hope anybody of you can help me with this problem on which I have been working for hours. I would like to write a function, which can guess the yield-to-maturity for any values: C, NV, r, s1, s2, and for a freely chosen

Re: [R] Is there a tool to find unused functions?

2017-11-15 Thread Alexander Engelhardt
17 10:44 AM, Michael Hannon wrote: mvbutils::foodweb produces a graphical display of the hierarchy (or network or ...) of function calls. Isolated functions are not called. This might help you. -- Mike On Wed, Nov 15, 2017 at 12:44 AM, Alexander Engelhardt <a...@chaotic-neutral.de> wrote:

[R] Is there a tool to find unused functions?

2017-11-15 Thread Alexander Engelhardt
I've inherited a large R codebase which has grown over a few years and a few different developers. It contains many things I'd like to delete: - Unused functions - Variable definitions that are never called - Unreachable code I'd write that myself, it would even be fun, but I don't want to

Re: [R] To implement OO or not in R package, and if so, how to structure it?

2017-09-14 Thread Alexander Shenkin
Did you read this? https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf Maybe it could give you some insight in how to create package. That resource is ~9 years old. There are more modern treatments available. You can read mine at http://r-pkgs.had.co.nz. Hadley Thanks both.

[R] To implement OO or not in R package, and if so, how to structure it?

2017-09-14 Thread Alexander Shenkin
Hello all, I am trying to decide how to structure an R package. Specifically, do I use OO classes, or just provide functions? If the former, how should I structure the objects in relation to the type of data the package is intended to manage? I have searched for, but haven't found,

[R] Calculating cumulative lengths of hierarchical topology

2017-07-03 Thread Alexander Shenkin
Hello All, I need to calculate cumulative lengths along a hierarchical network topology (it's a representation of a tree). I can roll my own, but thought that there might be a package out there that would handle hierarchical network topology functions such as this nicely (and that might

Re: [R] Maximum # of DLLs reached, or, how to clean up after yourself?

2016-09-14 Thread Alexander Shenkin
thout being on the library search path ... OK For further details on my thoughts on this, see https://github.com/HenrikBengtsson/Wishlist-for-R/issues/29. Hope this helps Henrik On Tue, Sep 13, 2016 at 6:05 AM, Alexander Shenkin <ashen...@ufl.edu> wrote: Hello all, I have a nu

[R] Maximum # of DLLs reached, or, how to clean up after yourself?

2016-09-13 Thread Alexander Shenkin
Hello all, I have a number of analyses that call bunches of sub-scripts, and in the end, I get the "maximal number of DLLs reached" error. This has been asked before (e.g. http://stackoverflow.com/questions/36974206/r-maximal-number-of-dlls-reached), and the general answer is, "just clean

[R] Factors in nlme: singularity in backsolve error

2016-07-19 Thread Alexander Shenkin
Hello all, I tried posting on r-sig-ME, but it's not going through. So I thought I would try here. Apologies if this ends up being a cross-post if it eventually goes through there I am parameterizing exponential fits for some metabolic scaling models. I have done this in lmer already,

[R] remove fixed effect in predict.merMod

2016-05-19 Thread Alexander Shenkin
Hello all, I've run a model, and now would like to extract residuals. However, I have set sum-to-zero contrasts for the categorical fixed effect (contr.sum). Because I am interested in looking at the variation in the residuals associated with that fixed effect (along with other levels), I

[R] Parsing and counting expressions in .txt-files

2016-04-20 Thread Alexander Nikles
Dear Community, I hope that I have the right category selected because I am relatively new to the "R" world. I come with a relatively challenging problem in the luggage. I would like to realize, that "R" reads text files (there are several hundred pieces in my folder) sequentially, and screens

Re: [R] Fit a smooth closed shape through 4 points

2016-03-21 Thread Alexander Shenkin
get a very rough approximation no matter the method used. Regards, Charles On Mon, Mar 21, 2016 at 7:59 AM, Alexander Shenkin <ashen...@ufl.edu <mailto:ashen...@ufl.edu>> wrote: Hello all, I have sets of 4 x/y points through which I would like to fit closed, smoothed sha

[R] Fit a smooth closed shape through 4 points

2016-03-21 Thread Alexander Shenkin
Hello all, I have sets of 4 x/y points through which I would like to fit closed, smoothed shapes that go through those 4 points exactly. smooth.spline doesn't like my data, since there are only 3 unique x points, and even then, i'm not sure smooth.spline likes making closed shapes. Might

[R] ggplot: geom_bar not respecting factor order when stacking

2016-02-04 Thread Alexander Shenkin
Hi all, ggplot2 (v2.0.0) does not seem to respect factor order when stacking bars in geom_bar(). ## > dput(temp) structure(list(phylo_sig = c(0.148740270638472, 0.148740270638472, 0.148740270638472, 0.148740270638472, 0.148740270638472), trait = c("p_corrected_percent",

Re: [R] problems with plotting/graphics after changing my computer

2015-12-10 Thread Alexander Moßbrucker
Just curious: do you get the same error message, or is it a problem with my specific version/computer??? 2015-12-10 15:28 GMT+07:00 Alexander Moßbrucker <islandelepha...@gmail.com>: > I am not surve, as I cannot start the crashed computer I used before. I > guess it might be the same

Re: [R] problems with plotting/graphics after changing my computer

2015-12-10 Thread Alexander Moßbrucker
9FDF2> 2015-12-10 15:04 GMT+07:00 PIKAL Petr <petr.pi...@precheza.cz>: > Hi > > > > Reply to the list too, somebody could answer your question better than > myself. > > > > You say that it is the same script. OK. But is it also the same version of > R an

[R] problems with plotting/graphics after changing my computer

2015-12-09 Thread Alexander Moßbrucker
Dear all, I have worked on AKDEs using the package ctmm. Because my old computer often crashed, I bought a new one and reinstalled all the software, including r. All seemed to work fine, but when I wanted to plot several results I encountered error messages. I tried many different plots, some

[R] Function help

2015-10-26 Thread alexander . thomas . 1
Hello, I'm following an example in the book, analyzing baseball data with R, but it's not working for me. The example is: compute.hr <- function(pid){d <- subset(Batting.60, playerID==pid) sum(d$HR)} Every time I try this, it says there's an unexpected symbol. Any idea on what the unexpected

[R] apply function across dataframe columns for non-exclusive groups

2015-10-21 Thread Alexander Shenkin
Hello all, I've been banging my head over what must be a simple solution. I would like to apply a function across columns of a dataframe for rows grouped across different columns. These groups are not exclusive. See below for an example. Happy to use dplyr, data.table, or whatever. Any

[R] Quantifying widths of polygons

2015-09-25 Thread Alexander Shenkin
Hello all, I am working with data on tree crowns, and this data describes points (verticies) around the polyhedron of the crown volume (think of the crown as a single volume with vertices and faces). I can calculate maximum z distance between any 2 points (maximum depth) and maximum x/y

Re: [R] ERROR - non-conformable arguments

2015-09-21 Thread Alexander Moßbrucker
Hi all, I am sorry I forgot to attach the excel file and txt files with the test data I used for this example. I am almost sure the problem was caused by the way R is reading this data, Hope to get some help, best, Alex 2015-09-20 14:03 GMT+07:00 Alexander Moßbrucker <islandele

[R] Fwd: ERROR - non-conformable arguments

2015-09-20 Thread Alexander Moßbrucker
Hi, I am using adehabitatHS for habitat selection analysis using widesII(), when running the script I get the error message: Error in as.vector(X) %*% t(as.vector(Y)) : non-conformable arguments Here the script I am using including the data > #dataset (read from tab deliminated text file) > >

[R] return named list from foreach

2015-02-20 Thread Alexander Shenkin
Hello all, I've been trying to figure out how to return a named list from foreach. Given that the order of the returned list is guaranteed to be in the order in which the object is passed to foreach, list members can be named afterwards. However, I'm wondering if there's a better way to do

[R] Using factors to analyze table by quantiles

2014-11-16 Thread Alexander Predeus
Hello all, I've been trying to do the following analysis. I have a table (T1) that defines sizes of my datasets (~80k rows): size X1 1000 X2 8323 X3 58 And then I have a table (T2) of ~ 5 million significant overlaps between datasets: X234 X443 X323 X1 X998 X12 What I want

[R] expected arguments for rgl.triangles

2014-11-14 Thread Alexander Shenkin
Hello all, I have a set of points in 3D space that represent vertices of a non-convex polyhedron. I would like to plot this polyhedron, and have been trying to do so with rgl.triangles, but to no avail. I imagine I don't understand what rgl.triangles expects for arguments. I have

[R] foreach/dopar's processes accumulate RAM

2014-10-29 Thread Alexander Engelhardt
Hello all, I have a triple nested loop in R like this: all - list() for(a in A){ all[[a]] - list() for(b in B){ all[[a]][[b]] - foreach(c=C, .combine=rbind) %dopar% { ## I'm leaving out some preprocessing here this_GAM - gam(formula, data=data,

[R] SQL Requests Templating

2014-10-29 Thread Alexander Myltsev
Hi, I am new to R. What I'd like to know is how to empower sqldf with templates like https://www.playframework.com/documentation/2.3.x/ScalaAnorm does? What does seasoned R-hacker use for this purpose: dedicated R-package that I am not aware of, or kind of format string, or something else? A.

[R] Making a very specific heatmap in R (ggplot2?)

2014-10-16 Thread Alexander Predeus
Hello All, I'm trying to figure out the (automated) way to generate heatmaps from simple data tables with annotated rows and columns. In the end, I need these files to be easily viewed in a browser. The initial data tables are simple; numbers are row-normalized (values are real numbers varying

[R] Weighted Mann-Whitney-Wilcoxon-Test

2014-08-26 Thread Alexander Sommer
of the weights, /svyttest/ not. Thomas, one more time: thank you for your help. Cheers, Alex -- Alexander Sommer wissenschaftlicher Mitarbeiter Technische Universität Dortmund Fakultät Erziehungswissenschaft, Psychologie und Soziologie Forschungsverbund Deutsches Jugendinstitut/Technische

[R] Weighted Mann-Whitney-Wilcoxon-Test

2014-08-19 Thread Alexander Sommer
Data Analysis 51 (9), 2007-05-15, pages 4337–4353. (http://dx.doi.org/10.1016/j.csda.2006.06.003.) -- Alexander Sommer wissenschaftlicher Mitarbeiter Technische Universität Dortmund Fakultät Erziehungswissenschaft, Psychologie und Soziologie Forschungsverbund Deutsches Jugendinstitut

Re: [R] mgcv: I can't manually reconstruct a P-spline from a GAM's coefficients

2014-06-18 Thread Alexander Engelhardt
, Simon On 17/06/14 15:40, Alexander Engelhardt wrote: Hello R-helpers, I am working through Simon Wood's GAM book and want to specify my own knot locations (on even tens, i.e. 10, 20, 30, etc.). Then, I want to compute a GAM on that area, and given the coefficients, reconstruct the same P-spline

[R] mgcv: I can't manually reconstruct a P-spline from a GAM's coefficients

2014-06-17 Thread Alexander Engelhardt
Hello R-helpers, I am working through Simon Wood's GAM book and want to specify my own knot locations (on even tens, i.e. 10, 20, 30, etc.). Then, I want to compute a GAM on that area, and given the coefficients, reconstruct the same P-spline that is drawn in plot(my_gam). I'm failing. Here

[R] dimensions of polyhedrons

2014-06-10 Thread Alexander Shenkin
Hello all, I have sets of points in (x,y,z) that represent polyhedron vertices (actually tree crowns). I have used convhulln to estimate volumes (the shapes are not necessarily convex, but good enough for now). Now I would like to extract various dimensions of these shapes - horizontal width

[R] mle together with pnorm

2014-05-28 Thread Alexander Ketonen
Hi, The problem I have is that the standard errors for the estimates doesn't make any sense. Here is the background: The values in vector a are seen as the true values and I want to estimate them using mle. I make 100 disturbed vectors from a by adding noise, N(0,sigma^2). For every disturbed

[R] How to define and calculate volume of 3D polygon?

2014-05-19 Thread Alexander Shenkin
Hi Folks, I have a set of x,y,z points in 3D space that defines the outline of a tree crown (5 - 15 perimeter points + 1 top bottom point). I would like to calculate the volume of the corresponding 3D polygon based on those points. I have been able to use geometry::convhulln, but I think

[R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread Alexander Engelhardt
Hello R-help, I keep noticing R functions that don't compare integers like if(x == 2) but instead if(x == 2L) Is this a long integer? Also, when do the two notations have a different effect on the code? Thanks in advance, Alex __

Re: [R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread Alexander Engelhardt
So in essence, it always provides the same output, but saves space and speed. Thanks everyone! - Alex On 05/15/2014 01:06 PM, Prof Brian Ripley wrote: On 15/05/2014 11:54, Alexander Engelhardt wrote: Hello R-help, I keep noticing R functions that don't compare integers like if(x == 2

[R] Rare Association Rule Mining

2014-03-10 Thread Alexander Kruse
Hello: I´m searching for some Example R Code on Rare Association Rule Mining/Infrequent Itemset Mining. Thanks in advance for any help. Alex __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Finding files matching full path regex

2014-02-27 Thread Alexander Shenkin
Hi folks, I'm interested in finding files by matching both filenames and directories via regex. If I have: dir1_pat1/file1.csv dir2_pat1/file2.csv dir2_pat1/file3.txt dir3_pat2/file4.csv I would like to find, for example, all csv files in directories that have pat1 in their

[R] howto join matrices produced by rcorr()

2013-12-30 Thread Alexander Schuster
Hi, i have used rcorr() for calculating pearsons r and according p-values for my data, giving me 2 matrices. Now I would like to print scatterplots for all results with good correlation values. So i need a way to extract the row-name and column-name for each item in the matrix with good

[R] How to vectorize plot graphic?

2013-12-01 Thread Alexander Shenkin
Hi Folks, Using ggplot, I've produced the following graphic: http://i.imgur.com/39a139C.png The graphics in the plot seem to be bitmapped and not vectorized. That is, the vertical and horizontal lines jump rows of pixels instead of having just nice, angled lines. Any thoughts about how to get

Re: [R] How to vectorize plot graphic?

2013-12-01 Thread Alexander Shenkin
suggest trying ggsave() with the extension .svg . I realize that SVG files are not recognized by some image display apps (Microsoft Windows I'm looking at YOU), but IMHO it's the best choice for vectorized images. Alexander Shenkin wrote Hi Folks, Using ggplot, I've produced the following

Re: [R] How to vectorize plot graphic?

2013-12-01 Thread Alexander Shenkin
--- Sent from my phone. Please excuse my brevity. Alexander Shenkin ashen...@ufl.edu wrote: Hi Folks, Using ggplot, I've produced the following graphic: http://i.imgur.com/39a139C.png The graphics in the plot seem to be bitmapped

[R] R.oo in R-3.0.1

2013-08-21 Thread Grach, Alexander
Fellow R users, I'm trying to upgrade from 2.11 to 3.0.1. I have a legacy S3 class defining method DAILY within one of our in-house packages using R.oo. This method does not seem to get 'resolved' under 3.0.1, specifically the following does not work: CODE WITHIN PACKAGE (e.g.

[R] Barplots

2013-08-14 Thread Alexander Gotowski
Hi, I'm attempting to make a bar plot for some genomics data that includes a separate bar for each sample taken. I am having trouble applying these sample labels to the individual bars. It seems that the barplot() function will only take a numeric matrix, and therefore cannot have any

[R] cannot install XML package - getting cannot open URL 'http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip' error

2013-07-26 Thread Grach, Alexander
Hello All, I am not able to install/update XML package, getting the following: install.packages(XML, lib = .libPaths()[3]) trying URL 'http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip' Error in download.file(url, destfile, method, mode = wb, ...) : cannot open

[R] Invert a positive definite symmetric Block Toeplitz Matrix

2013-06-17 Thread Alexander Braumann
Is there a function in r that let's you efficiently invert a positive definite symmetric Block Toeplitz matrix? My matrices are the covariance matrices of observations of a multivariate time series and can be 1000*1000 or larger. I know the package 'ltsa' which seems to use the Trench

[R] devtools: rtools not compatible with 3.0.1

2013-06-11 Thread Alexander Shenkin
Hi Folks, I'm trying to load devtools in R 3.0.1 in order to run the dev version of lme4. I've updated devtools, and just installed Rtools30.exe. However, I get the following warning (in R-Studio, RGui, and R.exe, both x64 and i386): - WARNING: Rtools is required to build R

[R] xml newbie

2013-05-23 Thread Alexander Coppock
Dear r-helpers, I am trying to extract quantities of interest from my iTunes library xml file.  For example, i'd like to be able to run a simple regression of playcount on track number, under the theory that tracks near the beginning of albums get played more (either because they are better

[R] Calculate confidence intervals in mgcv for unconditional on the, smoothing parameters

2013-04-20 Thread Alexander März
Dear R-Help members, I am using Simon Wood`s mgcv package version1.7-22and R version 3.0.0 (2013-04-03) for fitting a GAM-Model to the LIDAR Data contained in the SemiPar package. Here is the code for fitting the model and for plotting the result: data(lidar) attach(lidar) ### # mgcv fitting

[R] exporting tables to word

2013-04-02 Thread Alexander Shenkin
Hello all, What is your preferred method to export tables (from ftable()) to Word? Do you just export to a text file and then copy/paste? Or perhaps via HTML output? Thanks, Allie __ R-help@r-project.org mailing list

Re: [R] exporting tables to word

2013-04-02 Thread Alexander Shenkin
2013/4/2 Alexander Shenkin ashen...@ufl.edu Hello all, What is your preferred method to export tables (from ftable()) to Word? Do you just export to a text file and then copy/paste? Or perhaps via HTML output? Thanks, Allie __ R-help@r

Re: [R] exporting tables to word

2013-04-02 Thread Alexander Shenkin
this helps, Carlos On Tue, Apr 2, 2013 at 12:13 PM, Alexander Shenkin ashen...@ufl.edu wrote: Thanks Frans, odfTable seems not to like ftable objects. any thoughts? Error: chunk 1 (label = damageTable) Error in UseMethod(odfTable) : no applicable method for 'odfTable' applied to an object

Re: [R] behaviour of formula objects and environment inside functions

2013-03-21 Thread Thomas Alexander Gerds
-project.org] On Behalf Of Charles Berry Sent: Wednesday, March 20, 2013 7:04 PM To: r-h...@stat.math.ethz.ch Subject: Re: [R] behaviour of formula objects and environment inside functions Thomas Alexander Gerds tag at biostat.ku.dk writes: Dear List I am looking for the recommended way

[R] behaviour of formula objects and environment inside functions

2013-03-20 Thread Thomas Alexander Gerds
Dear List I am looking for the recommended way to create a formula inside a function with an empty environment. I tried several versions (see below), and one of them seemed to work, but I dont understand why there is a difference between .GlobalEnv and the environment inside a function. I would

[R] summarize dataframe based on multiple cols, not their combinations

2013-03-20 Thread Alexander Shenkin
Hi folks, I'm trying to figure out how to get summarized data based on multiple columns. However, instead of giving summaries for every combination of categorical columns, I want it for each value of each categorical column regardless of the other columns. I could do this with three different

Re: [R] summarize dataframe based on multiple cols, not their combinations

2013-03-20 Thread Alexander Shenkin
, Alexander Shenkin ashen...@ufl.edu wrote: Hi folks, I'm trying to figure out how to get summarized data based on multiple columns. However, instead of giving summaries for every combination of categorical columns, I want it for each value of each categorical column regardless of the other

Re: [R] summarize dataframe based on multiple cols, not their combinations

2013-03-20 Thread Alexander Shenkin
Thanks, John. Your solution gives me: ddply(my_df, .(a), summarize, mm = mean(dat), number = length(dat)) a mm number 1 0 14 3 2 1 11 3 I'm looking for (and Ista found a way): a b c mean n 1 1 * * 11 3 2 * 1 * 14 3 3 * * 1 12 3 thanks, allie On 3/20/2013 3:24 PM,

Re: [R] positioning a light source within a rgl-plot

2013-02-17 Thread Alexander Senger
Am 27.01.2013 16:48, schrieb Duncan Murdoch: On 13-01-27 10:37 AM, Alexander Senger wrote: Hello useRs, I would like to draw a 3D-surface using rgl with a point-like light-source within the scene, that is with finite distance of the light-source to the surface to be lit. The rgl package

[R] ks.test and wilcoxon.test results differ from other stat.packages

2013-02-01 Thread Alexander Favorov
Probably, it's an obvious info, but I have not found anything in R FAQ concerning this feature/bug. The results of ks.test and wilcoxon.test (in the Mann-Whitney version, paired = 'FALSE') don't coincide with the results from the other statistical packages, e.g. Statistica, Medcalc, and (as for

[R] positioning a light source within a rgl-plot

2013-01-27 Thread Alexander Senger
Hello useRs, I would like to draw a 3D-surface using rgl with a point-like light-source within the scene, that is with finite distance of the light-source to the surface to be lit. From the help to the 'light3d' command I read: They [the light-sources] are positioned either in world space or

Re: [R] X11 plot window doesn't show graphic immediately

2013-01-13 Thread Alexander Engelhardt
Hi Ista, thanks for your advice. I updated my .Rprofile file with the following two lines: require(grDevices) X11.options(type=nbcairo) Everything works fine now. Best wishes, Alex On 01/13/2013 02:26 AM, Ista Zahn wrote: Hi Alexander, Try changing your type, e.g., X11.options(type

[R] X11 plot window doesn't show graphic immediately

2013-01-12 Thread Alexander Engelhardt
Hi r-help, I have a weird problem. When I plot anything, say plot(1:10), a plot window opens but it's empty. It looks just like this: http://i.imgur.com/9uqO6.png I have to resize the window, either by clicking the fullscreen icon on the menu bar, or by dragging the borders. Then the plot

[R] extract indep vars from formula

2012-11-07 Thread Alexander Shenkin
Hello, I'm trying to extract the independent variables from a formula. The closest I've been able to come, aside from rolling my own, is the following: a = y ~ b * x attr(terms(formula(a)),variables) The reason I'm doing this is that I'm building a grid of points that I use to construct a

Re: [R] backreferences in gregexpr

2012-11-03 Thread Alexander Shenkin
On 11/2/2012 5:14 PM, Gabor Grothendieck wrote: On Fri, Nov 2, 2012 at 6:02 PM, Alexander Shenkin ashen...@ufl.edu wrote: Hi Folks, I'm trying to extract just the backreferences from a regex. temp = abcd1234abcd1234 regmatches(temp, gregexpr((?:abcd)(1234), temp)) [[1]] [1] abcd1234

[R] backreferences in gregexpr

2012-11-02 Thread Alexander Shenkin
Hi Folks, I'm trying to extract just the backreferences from a regex. temp = abcd1234abcd1234 regmatches(temp, gregexpr((?:abcd)(1234), temp)) [[1]] [1] abcd1234 abcd1234 What I would like is: [1] 1234 1234 Note: I know I can just match 1234 here, but the actual example is complicated enough

[R] Problems plotting a sparse time series in R

2012-10-29 Thread Alexander Engelhardt
Hi guys, I am logging data about my body (weight, body fat, blood pressure, ..) in a .csv file and would like to plot this as a time series. I uploaded the (noisified) .csv, you can see the link in the code I have so far (you can run the code directly as-is): df.raw -

Re: [R] Problems plotting a sparse time series in R

2012-10-29 Thread Alexander Engelhardt
- na.approx(ts) Thanks again! -- Alex On Oct 29, 2012, at 8:14 AM, Alexander Engelhardt wrote: Hi guys, I am logging data about my body (weight, body fat, blood pressure, ..) in a .csv file and would like to plot this as a time series. I uploaded the (noisified) .csv, you can see the link

[R] Which packages are incompatible with 64-bit R?

2012-10-19 Thread Alexander Shenkin
Hi folks, Despite the pain of migrating to 64-bit R (I have to install 64-bit Office also due to RODBC), I'm considering making the leap due to memory issues. Is there any place that lists packages that are 64-bit incompatible? Or, will I just have to march through all my packages and check

Re: [R] Which packages are incompatible with 64-bit R?

2012-10-19 Thread Alexander Shenkin
] pkgnames64 = pkgs64[,Package] as.character(pkgnames32[which(is.na(match(pkgnames32, pkgnames64)))]) [1] RSVGTipsDevice RSvgDevice ecorcqp sparsenet hdf5 On 10/19/2012 8:22 AM, Duncan Murdoch wrote: On 19/10/2012 8:10 AM, Alexander Shenkin wrote: Hi folks, Despite the pain

[R] spTransform longlat to utm

2012-10-18 Thread Alexander Belousov
Dear all, I am trying to project my LongLat-maps to a plane. The ultimate purpose is to do a search of points in vicinity of other points using overlay-commands (sp) with radius in km. I am applying spTransform (package rgdal) and it gives my some curious results. An example. Let's take a

[R] bigmemory for dataframes?

2012-10-18 Thread Alexander Shenkin
Hi Folks, I've been bumping my head against the 4GB limit for 32-bit R. I can't go to 64-bit R due to package compatibility issues (ROBDC - possible but painful, xlsReadWrite - not possible, and others). I have a number of big dataframes whose columns all sorts of data types - factor,

Re: [R] bigmemory for dataframes?

2012-10-18 Thread Alexander Shenkin
System Info: R 2.14.2 Windows 7 Pro x64 SP1 8GB RAM On 10/18/2012 3:42 PM, Alexander Shenkin wrote: Hi Folks, I've been bumping my head against the 4GB limit for 32-bit R. I can't go to 64-bit R due to package compatibility issues (ROBDC - possible but painful, xlsReadWrite - not possible

[R] how to know where you've been sourced from

2012-09-26 Thread Alexander Shenkin
Hello All, I need a script to perform different actions depending on the file from which it was source()'d. Thus, my script needs a way to figure out from whence it was sourced. There seems to be some relevant information in sys.calls() (see below). However, I need to get at the name of the

[R] remove all terms with interaction factor in formula

2012-09-13 Thread Alexander Shenkin
Hi Folks, I'm trying to find a way to remove all terms in a formula that contain a particular interaction. For example, in the formula below, I'd like to remove all terms that contain the b:c interaction. attributes(terms( ~ a*b*c*d))$term.labels [1] a b c d a:b

[R] select specific rows from regression output

2012-09-03 Thread Alexander Snijders
Hello everyone, I have a data set that contains characteristics of 25,000 patients of 92 different hospitals. I have run a regression to capture the probability these patients will have a complication after a certain operation. Now, I actually want to predict the probability per patient, using

Re: [R] select specific rows from regression output

2012-09-03 Thread Alexander Snijders
(untested) predict(fit, newdata=olddata[olddata$BMI25,]) Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Alexander Snijders Sent: Monday, September 03, 2012 1:13 PM To: r-help@r-project.org Subject: [R] select

[R] POSIXct-coerced NA's not considered NA by is.na()

2012-08-24 Thread Alexander Shenkin
Hello folks, I found a strangeness while experimenting with POSIXct vectors and lists. It seems that coerced NA's aren't real NAs, at least as considered by is.na()? date_vec = c(as.POSIXct(now()), as.POSIXct(now()+1),NA,b) date_vec [1] 2012-08-22 15:00:46 COT 2012-08-22 15:00:47 COT NA [4]

Re: [R] POSIXct-coerced NA's not considered NA by is.na()

2012-08-24 Thread Alexander Shenkin
in that conversion. thanks, Allie On Fri, Aug 24, 2012 at 9:47 AM, Alexander Shenkin ashen...@ufl.edu wrote: Hello folks, I found a strangeness while experimenting with POSIXct vectors and lists. It seems that coerced NA's aren't real NAs, at least as considered by is.na()? date_vec = c

[R] Sweave: R chunk inside caption?

2012-08-21 Thread Alexander Shenkin
Hi Folks, I'm surprised, but I didn't find this question addressed anywhere. I'd like to generate a LaTeX caption with R code. I've tried the code below, but I get the following TeX error: ! Argument of \@caption has an extra }. inserted text \par l.21 } Any thoughts? Perhaps

[R] export table in separate file

2012-08-10 Thread Alexander Shenkin
Hi Folks, I'm using Sweave to generate png pdf graphics that I then Import Link in a Word document. This let's me create sharable and editable dynamic documents. They are dynamic in that I can regenerate figures when the data changes, and have those figures automatically updated in my Word

[R] r-forge down?

2012-08-07 Thread Alexander Shenkin
Hi Folks, I've looked around, haven't found anything, and I'm not sure where else to check. I haven't visited R-forge (http://r-forge.r-project.org) in a long time. Now that I'm trying, it seems to be down. Anyone know if this is a temporary condition, and if so, when it's expected to rise

Re: [R] r-forge down?

2012-08-07 Thread Alexander Shenkin
: http://www.rforge.net -Roy On Aug 7, 2012, at 3:25 PM, Alexander Shenkin wrote: Hi Folks, I've looked around, haven't found anything, and I'm not sure where else to check. I haven't visited R-forge (http://r-forge.r-project.org) in a long time. Now that I'm trying, it seems to be down

[R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()

2012-07-09 Thread Alexander Erbse
with the installed java version. Has anyone an idea how to solve that problem? Regards, Alexander Erbse [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()

2012-07-09 Thread Alexander Erbse
...@gmail.com] Gesendet: Montag, 9. Juli 2012 13:14 An: Alexander Erbse Cc: r-help@r-project.org Betreff: Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect() Alexander, I agree, this feels like a java version issue. You could start by telling us what version

Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()

2012-07-09 Thread Alexander Erbse
32-Bit both. -Ursprüngliche Nachricht- Von: John Laing [mailto:john.la...@gmail.com] Gesendet: Montag, 9. Juli 2012 14:39 An: Alexander Erbse Cc: r-help@r-project.org Betreff: Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect() OK. Are you

Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()

2012-07-09 Thread Alexander Erbse
[mailto:john.la...@gmail.com] Gesendet: Montag, 9. Juli 2012 14:39 An: Alexander Erbse Cc: r-help@r-project.org Betreff: Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect() OK. Are you running 32 bit or 64 bit R? And 32 bit or 64 bit Java? This can help shed

Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()

2012-07-09 Thread Alexander Erbse
John, the problem is now resolved. I changed the PATH environment variable. I replaced the path leading to the old java installation by the new one and now it works. Thanks for your help. Regards, Alex -Ursprüngliche Nachricht- Von: Alexander Erbse Gesendet: Montag, 9. Juli 2012 17

Re: [R] set tkscale by tkentry

2012-05-25 Thread Alexander
Hi Greg and jverzaniNWBKZ, thank you very much for your help. I already thought about your solution jverzaniNWBKZ. I hoped I could find a simpler solution (such as refering to the global variable of scale). As this is not possible for some intervals, I will take your solution. Thanks again for

Re: [R] sweave tables as images?

2012-05-25 Thread Alexander Shenkin
, Alexander Shenkin ashen...@ufl.edu wrote: Hello folks, I've been on a journey trying to figure out how to manage documents that are amenable to sharing and editing, but that contain dynamic content generated by R. I've come to the following solution: I use Sweave to generate labeled png pdf

Re: [R] sweave tables as images?

2012-05-25 Thread Alexander Shenkin
Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, May 25, 2012 at 2:44 PM, Alexander Shenkin ashen...@ufl.edu wrote: grid.table() works well, but using it in sweave creates graphics with very wide margins. I'm sure

Re: [R] sweave tables as images?

2012-05-25 Thread Alexander Shenkin
at https://gist.github.com/2013903 On 26 May 2012 09:16, Alexander Shenkin ashen...@ufl.edu wrote: Thanks Yihui, That's a great idea, and comes close to the mark, except that I have to use png's in order to Insert Link them as pictures in Word (and hence make the doc both shareable

  1   2   3   4   >