[R] R

2021-03-16 Thread Jonathan Lim
Hi I found your email on a website Can I ask some questions about R please Many thanks Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo

[R] Best settings for RStudio video recording?

2020-08-13 Thread Jonathan Greenberg
Folks: I was wondering if you all would suggest some helpful RStudio configurations that make recording a session via e.g. zoom the most useful for students doing remote learning. Thoughts? --j -- Jonathan A. Greenberg, PhD Randall Endowed Professor and Associate Professor of Remote Sensing

Re: [R-es] Como cambiar el formato de fecha de ymd_hms a dmy_hms

2020-01-02 Thread Jonathan bartolo pinzon
Emilio, Muchas gracias por tu ayuda, efectivamente funcionó! Un abrazo y feliz año! *JONATHAN BARTOLO PINZON * *"En los momentos de crisis, sólo la imaginación es más importante que el conocimiento". Albert Einstein * El jue., 2 ene. 2020

[R-es] Como cambiar el formato de fecha de ymd_hms a dmy_hms

2020-01-01 Thread Jonathan bartolo pinzon
? Quedo atento a sus comentarios. Saludos, Gracias, *JONATHAN BARTOLO PINZON * *"En los momentos de crisis, sólo la imaginación es más importante que el conocimiento". Albert Einstein * [[alternative HTML versi

[R] Checking for a proper "stop" statement...

2018-02-21 Thread Jonathan Greenberg
g a hard time figuring out how to do this test. --j -- -- Jonathan A. Greenberg, PhD Randall Endowed Professor and Associate Professor of Remote Sensing Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Natural Resources & Environmental Science University of Nevada, Reno 1664 N

[R] [R-pkgs] New package: rDotNet

2017-09-04 Thread Jonathan Shore
rg/web/packages/rDotNet/index.html <https://cran.r-project.org/web/packages/rDotNet/index.html> The package is stable, as has been in use for some years, but only now packaged up for public use on CRAN. Feel free to contact with questions or suggestions on GitHub or by email. Regards -- Jo

Re: [R] Odd results from rpart classification tree

2017-05-15 Thread Marshall, Jonathan
replicate(1000, test_split(0.5))) # 2-12, i.e. splits only sometimes... Adding a constant to y and getting different trees is a bit strange, particularly stochastically. Will see if I can track down a copy of the CART book. Jonathan From: Therneau, Terry

[R] Odd results from rpart classification tree

2017-05-15 Thread Marshall, Jonathan
able(y))) impurity_L <- gini(prop.table(table(obs_L))) impurity_R <- gini(prop.table(table(obs_R))) impurity <- impurity_root * n - (n_L*impurity_L + n_R*impurity_R) # 2.880952 Thus, an improvement of 2.88 should result in a split. It does not. Why? Jonathan ___

[R] [R-pkgs] New package: ggghost 0.1.0 - Capture the spirit of your ggplot2 calls

2016-08-08 Thread Jonathan Carroll
me any feedback or suggestions you may have. Kind regards, - Jonathan Carroll. [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-pa

[R] 2x2x2 rm ANOVA, varying results

2016-05-15 Thread Jonathan Reardon
Hello, I ran a 2x2x2 repeated measures ANOVA which turned out fine: DfSum Sq Mean Sq F value Pr(>F) Attend1 0.5540 0.55402 7.03740.01079 *PercGrp 1

[R] Problems with pooling Multiply Imuputed datasets, of a multilevel logistic model, using (MICE)

2016-03-30 Thread Jonathan Halls via R-help
I am having problems with the MICE package in R, particularity with pooling the imputed data sets. I am running a multilevel binomial logistic regression, with Level1 - topic (participant response to 10 questions on different topics, e.g. T_Darkness, T_Day) nested within Level2 - individuals.

[R] R Licensing Question

2016-01-26 Thread Jonathan Gellar
, but I could not find an answer elsewhere. Thank you, Jonathan __ Jonathan Gellar Statistician Mathematica Policy Research 1100 First Street NE, 12th Floor Washington, DC 20002 __ R-help@r-project.org mailing list

Re: [R] Replace NaN with value from the same row

2015-10-18 Thread Jonathan Reardon
.OO#. rocks...1k > --- > Sent from my phone. Please excuse my brevity. > > On October 18, 2015 12:24:42 PM PDT, Jonathan Reardon > <jonathanrear...@outlook.com> wrote: > >Hi, Sorry to be a pain.

[R] Replace NaN with value from the same row

2015-10-18 Thread Jonathan Reardon
lue from that very same row? I don't want to use any pasting etc as this needs to be used as part of a function working over a large dataset than the one shown here. Cheers Jonathan [[alternative HTML version dele

[R] Replace NaN from 1 column with a value from the same row

2015-10-18 Thread Jonathan Reardon
Hi everyone, Ignore my previous post, i realised that the rows and columns i typed into the email were unreadable, sincere apologies for this. A simple question, but i cannot figure this out. I have a data-frame with 4 columns (onset, offset, outcome, mean):

Re: [R] kknn::predict and kknn$fitted.values

2015-08-29 Thread Jonathan Henkelman
, but want to verify this. Hopefully that clarifies the issue. I post here in case future users have a similar question. Thanks to any who took the time to think about this! Jonathan -- View this message in context: http://r.789695.n4.nabble.com/kknn-predict-and-kknn-fitted-values

[R] kknn::predict and kknn$fitted.values

2015-08-28 Thread Jonathan Henkelman
17 0 0 0 5 0 0 0 13 0 0 6 0 0 0 0 9 0 7 0 0 0 0 0 29 Can anyone clarify what fitted.values and predict actually do? I would have expected they would give the same output. Thanks... Jonathan -- View this message in context: http://r.789695.n4.nabble.com/kknn-predict

[R] R command to open a file browser on Windows and Mac?

2015-08-03 Thread Jonathan Greenberg
Folks: Is there an easy function to open a finder window (on mac) or windows explorer window (on windows) given an input folder? A lot of times I want to be able to see via a file browser my working directory. Is there a good R hack to do this? --j [[alternative HTML version deleted]]

[R] Correlation question

2015-02-21 Thread Jonathan Thayn
I recently compared two different approaches to calculating the correlation of two variables, and I cannot explain the different results: data(cars) model - lm(dist~speed,data=cars) coef(model) fitted.right - model$fitted fitted.wrong - -17+5*cars$speed When using the OLS fitted values, the

Re: [R] Correlation question

2015-02-21 Thread Jonathan Thayn
cor(cars$dist,fitted.right)^2 and cor(x=cars$dist,y=fitted.wrong)^2 must be the same. HTH d Feladó: R-help [r-help-boun...@r-project.org] ; meghatalmaz#243;: Jonathan Thayn [jth...@ilstu.edu] Küldve: 2015. február 21. 22:42 To: r-help@r

[R] prediction intervals for robust regression

2015-02-11 Thread Burns, Jonathan (NONUS)
for robust regression, I haven't had much success in finding out how to create prediction intervals for the results. I was wondering if anyone would be able to provide some direction on how to create these prediction intervals in the robust regression setting. Thanks, Jonathan Burns Sr

Re: [R] Using PCA to filter a series

2014-10-04 Thread Jonathan Thayn
This is exactly what I was looking for. Thank you. Jonathan Thayn On Oct 3, 2014, at 10:32 AM, David L Carlson wrote: You can reconstruct the data from the first component. Here's an example using singular value decomposition on the original data matrix: d - cbind(d1, d2, d3, d4

[R] Using PCA to filter a series

2014-10-02 Thread Jonathan Thayn
the clean pattern I want, but I would like to project the first component back into the original axes? Is there a simple way to do that? Jonathan B. Thayn [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] Using PCA to filter a series

2014-10-02 Thread Jonathan Thayn
a long time since I've played with PCA. Jonathan Thayn On Oct 2, 2014, at 4:59 PM, David L Carlson wrote: I think you want to convert your principal component to the same scale as d1, d2, d3, and d4. But the original space is a 4-dimensional space in which d1, d2, d3, and d4 are the axes

Re: [R] Building R for better performance

2014-09-15 Thread Anspach, Jonathan P
All, I’ve attached the actual benchmark TACC and I used. I’ve also attached a paper I wrote covering this in a little more detail. The paper specifies the hardware configuration I used. Let me know if you have any other questions. Regards, Jonathan Anspach Sr. Software Engineer Intel Corp

Re: [R] Building R for better performance

2014-09-11 Thread Anspach, Jonathan P
I'm out of the office today, but will resend it tomorrow. Jonathan Anspach Intel Corp. Sent from my mobile phone. On Sep 11, 2014, at 3:49 AM, arnaud gaboury arnaud.gabo...@gmail.com wrote: I got the benchmark script, which I've attached, from Texas Advanced Computing Center. Here are my

Re: [R] Building R for better performance

2014-09-11 Thread Anspach, Jonathan P
Yes, that's the original. Then TACC increased the matrix sizes for their tests. Jonathan Anspach Intel Corp. Sent from my mobile phone. On Sep 11, 2014, at 9:18 AM, Henrik Bengtsson h...@biostat.ucsf.edumailto:h...@biostat.ucsf.edu wrote: You'll find R-benchmark-25.R, which I assume

[R] table over a matrix dimension...

2014-07-10 Thread Jonathan Greenberg
(apply and for() ), so # not efficient for very large datasets. ### Is there a more elegant solution to this? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science

[R] StatET and R 3.1.0

2014-04-11 Thread Jonathan Greenberg
package 'rj' (1.1 or compatible) is installed and that the R library paths are set correctly for the R environment configuration 'R'. --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic

Re: [R] Ignore escape characters in a string...

2014-04-09 Thread Jonathan Greenberg
#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. On April 8, 2014 8:00:03 AM PDT, Jonathan Greenberg j...@illinois.edu wrote: R-helpers

[R] Ignore escape characters in a string...

2014-04-08 Thread Jonathan Greenberg
Windows explorer I'm not aware of? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 259 Computing Applications Building, MC

[R] numeric to factor via lookup table

2014-03-28 Thread Jonathan Greenberg
the correct levels (ID matches the values), and code is the label? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 259

Re: [R] Overriding predict based on newdata...

2014-03-18 Thread Jonathan Greenberg
through the rest of the session and could be source()-ed in further sessions. -- David. On Mar 16, 2014, at 2:09 PM, Jonathan Greenberg wrote: R-helpers: I'm having some trouble with this one -- I figure because I'm a bit of a noob with S3 classes... Here's my challenge: I want

[R] Overriding predict based on newdata...

2014-03-16 Thread Jonathan Greenberg
parameter, this is causing me confusion -- my object should still remain the model, I'm just allowing a new data type to be fed into the predict model(s). Cheers! --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department

Re: [R] Building R for better performance

2014-03-10 Thread Anspach, Jonathan P
CE, Sorry for the delay. I haven't installed any additional packages, so I don't know the answer to your question. Let me look into it and get back to you. Regards, Jonathan Anspach Sr. Software Engineer Intel Corp. jonathan.p.ansp...@intel.com 713-751-9460 -Original Message- From

Re: [R] Building R for better performance

2014-03-05 Thread Anspach, Jonathan P
274.93 21.01 Regards, Jonathan Anspach Sr. Software Engineer Intel Corp. jonathan.p.ansp...@intel.com 713-751-9460 -Original Message- From: Simon Zehnder [mailto:szehn...@uni-bonn.de] Sent: Wednesday, March 05, 2014 3:55

[R] Building R for better performance

2014-03-04 Thread Anspach, Jonathan P
if anyone is interested. Thanks, Jonathan Anspach Sr. Software Engineer Intel Corp. jonathan.p.ansp...@intel.com 713-751-9460 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] install packages from R-forge SVN

2014-02-26 Thread Jonathan Greenberg
-- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 259 Computing Applications Building, MC-150 605 East Springfield Avenue Champaign, IL

[R] Checking for and adding ... arguments to a function...

2014-02-17 Thread Jonathan Greenberg
the function, e.g. I'm not asking how to test for this WITHIN the function, I'm asking how to test myfunction directly as an R object. Thanks! --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic

[R] Multimodal multidimensional optimization

2013-10-18 Thread Jonathan Thayn
suggestions, I'm quite a bit beyond my expertise here. Thanks. Jonathan B. Thayn, Ph.D. Ridgely Fellow of Geography Department of Geography – Geology Illinois State University Felmley Hall of Science, Rm 200A Normal, IL 61790 jth...@ilstu.edu my.ilstu.edu/~jthayn [[alternative HTML

Re: [R] Official way to set/retrieve options in packages?

2013-10-18 Thread Jonathan Greenberg
))) options(survey.multicore = FALSE) if (is.null(getOption(survey.replicates.mse))) options(survey.replicates.mse = FALSE) } environment: namespace:survey On Sat, Jun 1, 2013 at 4:01 PM, Jonathan Greenberg j...@illinois.eduwrote: R-helpers: Say I'm developing a package that has a set

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-28 Thread Jonathan Greenberg
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of William Dunlap Sent: Friday, September 27, 2013 12:56 PM To: Jonathan Greenberg; r-help Subject: Re: [R] Error: C stack usage is too close to the limit when using list.files() Do

[R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread Jonathan Greenberg
getting an error: Error: C stack usage is too close to the limit when running this command. Any ideas on 1) how to fix this or 2) if there is an alternative to using list.files() to accomplish this search without resorting to an external package? Cheers! --jonathan -- Jonathan A. Greenberg, PhD

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread Jonathan Greenberg
... On Fri, Sep 27, 2013 at 2:36 PM, Ben Bolker bbol...@gmail.com wrote: Jonathan Greenberg jgrn at illinois.edu writes: R-helpers: I'm running a file search on my entire drive (Mac OS X) using: files_found - list.files(dir=/,pattern=somepattern,recursive=TRUE,full.names=TRUE) where

Re: [R] Confusing behaviour in data.table: unexpectedly changing variable

2013-09-25 Thread Jonathan Dushoff
Thanks for your help, and sorry for mis-posting. JD On Wed, Sep 25, 2013 at 3:18 AM, Matthew Dowle mdo...@mdowle.plus.com wrote: Very sorry to hear this bit you. If you need a copy of names before changing them by reference : oldnames - copy(names(DT)) This will be documented and

[R] Confusing behaviour in data.table: unexpectedly changing variable

2013-09-24 Thread Jonathan Dushoff
I got bitten badly when a variable I created for the purpose of recording an old set of names changed when I didn't think I was going near it. I'm not sure if this is a desired behaviour, or documented, or warned about. I read the data.table intro and the FAQ, and also ?setnames. Ben Bolker

Re: [R] R-3.0.1 g77 errors

2013-09-19 Thread Prigot, Jonathan
Sadly, I am limited to the Solaris 10 system. I wish that I could use Linux, the world uses it. -- Jonathan M. Prigot jpri...@partners.org Partners Healthcare Systems On Wed, 2013-09-18 at 17:20 +0200, Simon Zehnder wrote: On my systems Linux Scientific and Mac OS X I use as well for the F77

[R] R-3.0.1 g77 errors

2013-09-18 Thread Prigot, Jonathan
declaration of or reference to symbol `digits' at (^) [initially seen at (^)] dlamch.f:89: warning: INTRINSIC DIGITS, EPSILON, HUGE, MAXEXPONENT, ^ Reference to unimplemented intrinsic `EPSILON' at (^) (assumed EXTERNAL) -- Jonathan M. Prigot jpri

[R] library() and install.packages() no longer working (Access is denied error)

2013-09-13 Thread Jonathan Greenberg
. The Mirror browser shows up, I select a mirror. A 3.0 directory is created, but I got the same error, and when examining the (new) 3.0 directory, nothing is created inside of it. Any ideas what this could be caused by? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis

[R] ifelse question (I'm not sure why this is working)...

2013-09-10 Thread Jonathan Greenberg
statement used that way, and I was fully expecting that to NOT work, or to place the output of which(x%%d==0) in each location where the statement x%%d==0 was true. Any ideas on deconstructing this? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing

[R] Vectorized version of colMeans/rowMeans for higher dimension arrays?

2013-08-29 Thread Jonathan Greenberg
operation (so it doesn't execute as quickly). How would one vectorize this operation (if possible)? Is there an array equivalent of colMeans/rowMeans? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography

Re: [R] Parallel version of Map(rather, mapply)

2013-08-28 Thread Greenberg, Jonathan
Hi Saptarshi: There are quite a few parallel mapply's out there -- my recommendation is to use the foreach package, since it allows you to be flexible in the parallel backend, and you don't have to write two statements (a sequential and a parallel statement) -- if a parallel backend is

[R] Determining the maximum memory usage of a function

2013-06-20 Thread Jonathan Greenberg
this? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801 Phone: 217-300-1924

Re: [R] Determining the maximum memory usage of a function

2013-06-20 Thread Jonathan Greenberg
, Jonathan Greenberg j...@illinois.edu wrote: Folks: I apologize for the cross-posting between r-help and r-sig-hpc, but I figured this question was relevant to both lists. I'm writing a function to be applied to an input dataset that will be broken up into chunks for memory management reasons

Re: [R] Instant search for R documentation

2013-06-13 Thread jonathan cornelissen
was unaware of the sos package, looks very nice, thank you for sharing! Hope this helps. Spencer Best regards, Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing

[R] Instant search for R documentation

2013-06-12 Thread jonathan cornelissen
Hi, I just wanted to share with you that we made a website over the weekend that allows instant search of the R documentation on CRAN, see: www.Rdocumentation.org. It's a first version, so any feedback/comments/criticism most welcome. Best regards, Jonathan

Re: [R] Official way to set/retrieve options in packages?

2013-06-02 Thread Jonathan Greenberg
: namespace:survey On Sat, Jun 1, 2013 at 4:01 PM, Jonathan Greenberg j...@illinois.edu wrote: R-helpers: Say I'm developing a package that has a set of user-definable options that I would like to be persistent across R-invocations (they are saved someplace). Of course, I can

[R] Official way to set/retrieve options in packages?

2013-06-01 Thread Jonathan Greenberg
this? I see there is an options() and getOptions() function, but I'm unclear how I would use this in my own package to create/save new options for my particular package. Cheers! --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS

[R] RCurl: using ls instead of NLST

2013-05-29 Thread Jonathan Greenberg
to use ls remotely on this site? Thanks! --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC

Re: [R] points overlay axis

2013-05-17 Thread Jonathan Phillips
) David L Carlson Associate Professor of Anthropology Texas AM University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of John Kane Sent: Tuesday, May 14, 2013 7:47 AM To: Jonathan

[R] R help: Batch read files based on names in a list

2013-05-15 Thread Jonathan Dry
* I am currently reading in a series of files, applying the same functions to them one at a time, and then merging the resulting data frames e.g.: MyRows - c(RowA, RowB, RowC)File1_DF - read.delim(DirectoryToFiles\\File1_Folder\\File1.txt, stringsAsFactors=FALSE, check.names=FALSE)File1_DF

[R] points overlay axis

2013-05-14 Thread Jonathan Phillips
Hi, I'm trying to do quite a simple task, but I'm stuck. I've set xaxs = 'i' as I want the origin to be (0,0), but unfortunately I have points that are sat on the axis. R draws the axis over the points, which hides the points somewhat and looks unsightly. Is there any way of getting a point to

[R] Stepwise regression for multivariate case in R?

2013-04-26 Thread Jonathan Jansson
differ (found for 'grouping') What can be wrong here? I have checked and all variables in my.data is of the same length. //Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Singular design matrix in rq

2013-04-19 Thread Jonathan Greenberg
. :69.342 fit_spl - rq(response ~ bs(predictor,df=15),tau=1,data=mydata) # Error in rq.fit.br(x, y, tau = tau, ...) : Singular design matrix --j On Fri, Apr 19, 2013 at 8:15 AM, Koenker, Roger W rkoen...@illinois.eduwrote: Jonathan, This is not what we call a reproducible example... what

[R] Singular design matrix in rq

2013-04-16 Thread Jonathan Greenberg
],df=15),tau=1) Error in rq.fit.br(x, y, tau = tau, ...) : Singular design matrix Any ideas what might be causing this or, more importantly, suggestions for how to solve this? I'm just trying to fit a smoothed hull to the top of the data cloud (hence the large df). Thanks! --jonathan

[R] Check if a character vector can be coerced to numeric?

2013-03-21 Thread Jonathan Greenberg
. Is there any simple way to do this (e.g. some function that tests if a vector is coercible to a numeric before doing so)? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information

Re: [R] Check if a character vector can be coerced to numeric?

2013-03-21 Thread Jonathan Greenberg
Yep, type.convert was exactly what I was looking for (with as.is=TRUE). Thanks! On Thu, Mar 21, 2013 at 1:31 PM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: On 21/03/2013 18:20, Jonathan Greenberg wrote: Given an arbitrary set of character vectors: myvect1 - c(abc,3,4) myvect2 - c

[R] Issue with matrices within nested for-loops

2013-02-22 Thread Jonathan Richar
that the bounds of the indicated vector/matrix have been violated. I am however at a loss as to how to resolve this. Any advice would be appreciated Cheers! JR -- Jonathan Richar Doctoral candidate UAF SFOS Fisheries Division 17101 Pt. Lena Loop Rd. University of Alaska Fairbanks Juneau, AK 99801 Phone

[R] mixed effects regression with non-independent data

2013-02-15 Thread Bone, Jonathan
one subject from each game for the analysis (and so losing half the data). Is there a way to introduce this into the model instead, perhaps as a random effect?? Thanks, Jonathan [X] [X] [X] [X] [X] [X] [X] [X] [[alternative HTML version deleted

[R] Mixed models with missing data

2013-02-15 Thread Bone, Jonathan
Hi, I am creating a mixed model based on a experiment where each subject has 2 repeats. In some instances though there is only data for one of a given subjects repeats for most there is data for both. Can I still justify having subject as a random effect? Thanks, Jonathan [X] [X] [X] [X] [X

[R] Inserting rows of interpolated data

2013-02-11 Thread Benstead, Jonathan
Dear help list - I have light data with 5-min time-stamps. I would like to insert four 1-min time-stamps between each row and interpolate the light data on each new row. To do this I have come up with the following code: lightdata - read.table(Test_light_data.csv, header = TRUE, sep = ,) #

[R] Count of Histogram Bins using Shingles with lattice

2013-02-08 Thread Burns, Jonathan (NONUS)
I know that I can get a count of histogram bins in base R with plot=FALSE. However, I'd like to do the same thing with lattice. The problem is that I've set up shingles, and I'd like to get the count within each bin within each shingle. plot=FALSE doesn't seem to do it.

Re: [R] Loading a list into the environment

2013-02-02 Thread Jonathan Greenberg
, Rui Barradas Em 01-02-2013 22:24, Jonathan Greenberg escreveu: R-helpers: Say I have a list: myvariables - list(a=1:10,b=20) Is there a way to load the list components into the environment as variables based on the component names? i.e. by applying this theoretical function

[R] Loading a list into the environment

2013-02-01 Thread Jonathan Greenberg
without having to explicitly define them. --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150

[R] scaling of nonbinROC penalties - accurate classification with random data?

2013-01-24 Thread Jonathan Williams
[[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

[R] scaling of nonbinROC penalties - accurate classification with random data?

2013-01-24 Thread Jonathan Williams
arbitrarily-scaled penalty matrices? I apologise if I am wasting your by making an obvious mistake. I am a clinician, not a statistician. So, I do not understand the mathematics. Thanks, in advance, for your help, Jonathan Williams

Re: [R] Adding a line to barchart

2013-01-23 Thread Jonathan Greenberg
- project.org] On Behalf Of Jonathan Greenberg Sent: Tuesday, January 22, 2013 11:42 PM To: r-help Subject: [R] Adding a line to barchart R-helpers: I need a quick help with the following graph (I'm a lattice newbie): require(lattice) npp=1:5 names(npp)=c(A,B,C,D,E) barchart

[R] Adding a line to barchart

2013-01-22 Thread Jonathan Greenberg
I go about doing this? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South Mathews Avenue, MC 150 Urbana, IL 61801

[R] scaling of nonbinROC penalties

2013-01-18 Thread Jonathan Williams
for estimates of the accuracy of an ordinal gold standard? Thanks, in advance, for your help, Jonathan Williams [[alternative HTML version deleted

[R] Anomalous outputs from rbeta when using two different random number seeds

2012-12-06 Thread Jonathan Minton
Hi, in the code below, I am drawing 1000 samples from two beta distributions, each time using the same random number seed. Using set.seed(80) produces results I expect, in that the differences between the distributions are very small. Using set.seed(20) produces results I can't make sense of.

[R] Best way to coerce numerical data to a predetermined histogram bin?

2012-12-06 Thread Jonathan Greenberg
, the bins are not necessarily equal widths. I can, of course, cycle through each element of data, and then move through breaks, stopping when it finds the correct bin, but I feel like there is probably a faster (and more elegant) approach to this. Thoughts? --j -- Jonathan A. Greenberg, PhD

[R] How to change smoothing constant selection procedure for Winters Exponential Smoothing models?

2012-11-28 Thread Jonathan Seaver
help? Thank you, Jonathan [[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

[R] Selecting the non-attribute part of an object

2012-11-15 Thread Jonathan Dushoff
I have two matrices, generated by R functions that I don't understand. I want to confirm that they're the same, but I know that they have different attributes. If I want to compare the dimnames, I can say identical(attr(tm, dimnames), attr(tmm, dimnames)) [1] FALSE or even:

Re: [R] Selecting the non-attribute part of an object

2012-11-15 Thread Jonathan Dushoff
,check.attributes=FALSE) gives TRUE!!! I.e. sometimes attributes really are vital characteristics. cheers, Rolf Turner On 16/11/12 08:52, Jonathan Dushoff wrote: I have two matrices, generated by R functions that I don't understand. I want to confirm that they're the same, but I know

[R] Best R textbook for undergraduates

2012-10-23 Thread Jonathan Greenberg
is, an if-then statement, etc). Suggestions? In particular, I'd like to hear from those of you who have TAUGHT classes using R. Thanks! --jonathan -- Jonathan A. Greenberg, PhD Assistant Professor Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607 South

[R] Can I please be taken off the mailing list

2012-10-20 Thread Jonathan Brown
[[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

[R] Completely ignoring an error in a function...

2012-10-17 Thread Jonathan Greenberg
file it creates is what I wanted and there is no current way to create that single file on its own without a lot of additional coding). --j -- Jonathan A. Greenberg, PhD Assistant Professor Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 607

[R] Proposal: Package update log

2012-10-02 Thread Starkweather, Jonathan
I'm relatively new to R and would first like to sincerely thank all those who contribute to its development. Thank you. I would humbly like to propose a rule which creates a standard (i.e., strongly encouraged, mandatory, etc.) for authors to include a `change log' documenting specific

Re: [R] Proposal: Package update log

2012-10-02 Thread Starkweather, Jonathan
Thanks to all for the responses and suggestions. I was primarily proposing a more detailed change log for packages on CRAN. To my mind, repositories like R-forge host packages more 'raw' than those on CRAN (i.e. CRAN seems to me to contain more 'finished' packages which occasionally are

Re: [R] [R-sig-hpc] Quickest way to make a large empty file on disk?

2012-09-28 Thread Jonathan Greenberg
1Kb in size. Hope this helps, Rui Barradas Em 27-09-2012 20:17, Jonathan Greenberg escreveu: Folks: Asked this question some time ago, and found what appeared (at first) to be the best solution, but I'm now finding a new problem. First off, it seemed like ff as Jens suggested worked

Re: [R] [R-sig-hpc] Quickest way to make a large empty file on disk?

2012-09-27 Thread Jonathan Greenberg
the filesystem can handle). However, length appears to be restricted by .Machine$integer.max (I'm on a 64-bit windows box): .Machine$integer.max [1] 2147483647 Any suggestions on how to solve this problem for much larger file sizes? --j On Thu, May 3, 2012 at 10:44 AM, Jonathan Greenberg j

[R] Shading in prediction intervals

2012-09-13 Thread Jonathan Zhang
I have the following code for the minimum and maximum of my prediction interval y.down=lines(x[x.order], set1.pred[,2][x.order], col=109) y.up=lines(x[x.order], set1.pred[,3][x.order], col=109) domain=min(x):max(x) polygon(c(domain,rev(domain)),c(y.up,rev(y.down)),col=109) It doesnt seem to

[R] list of funtions

2012-09-13 Thread Jonathan Phillips
Hi, I have a function called fitMicroProtein which takes a value called form, this can be any integer from 0-38. In a larger function I'm making (it's called Newton), the first thing I want to do is construct a list of functions where form is already set. So in pseudocode fs[[1]](...) -

Re: [R] list of funtions

2012-09-13 Thread Jonathan Phillips
in a loop. I don't think it's something obvious I've missed... On 13 September 2012 18:06, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 13.09.2012 19:01, Jonathan Phillips wrote: Hi, I have a function called fitMicroProtein which takes a value called form, this can be any integer from 0-38

[R] How do you learn/teach R?

2012-08-29 Thread Jonathan Cornelissen
us and fill out the survey on http://www.Rcademy.org. It takes less than 5 minutes. Thank you, Jonathan Cornelissen Doctoral researcher, KU Leuven [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] fitting particular distributions

2012-07-29 Thread Jonathan Hughes
processes in R? Any help will be greatly appreciated. Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] problem plotting in a grid

2012-07-29 Thread Jonathan
Hi all, I'm trying to generate a grid of four plots. The first 2 appear just fine, but the final 2 will not appear in the grid, instead overwriting the first two.Any ideas on how to get them all in the same window would be greatly appreciated. Cheers, Jonathan library(fields) par(mfrow

[R] help with filled.contour() -

2012-07-04 Thread Jonathan Hughes
Dear all, I can't figure out a way to have more than one plot using filled.contour() in a single plate. I tried to use layout() or par(), but the way filled.contour() is written seems to override those commands. Any suggestions would be really appreciated. Jonathan

Re: [R] X11 font error on headless server running Xvfb

2012-06-08 Thread Jonathan Levine
the Cairo package. It's my understanding (from a time when I was using Xvgb for the same reason) that Cairo does not depend on X Windows. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 6/4/12 9:31 AM, Jonathan

[R] X11 font error on headless server running Xvfb

2012-06-04 Thread Jonathan Levine
I am trying to run an R script to create a .png file containing a tree map on a headless Linux server using Xvfb. When I try to run tmPlot, I get the following errors and warnings: Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : X11 font

  1   2   3   4   5   6   >