Re: [R] [Fwd: ***HTML***R help]

2008-09-03 Thread tyler
tion. > To correct this without deleting .Rdata: mysum <- sum ## if you still want to use your function rm(sum) This will remove your sum, leaving the 'built-in' available. You can also access the 'built-in' as: base::sum() if there was any reason to keep both functions

[R] latticeExtra: useOuterStrips and axis.line$lwd

2009-04-28 Thread tyler
.line to 0. Is there a way to use useOuterStrips but without axis boxes? I've included a short example. I know the example looks odd without axis lines, but in my more complicated wireframe plots I think the axis lines are just extra clutter, so I'd like them to disappear. Thanks,

Re: [R] latticeExtra: useOuterStrips and axis.line$lwd

2009-04-28 Thread tyler
Deepayan Sarkar writes: > On Tue, Apr 28, 2009 at 7:40 AM, tyler wrote: >> Hi, >> >> I'm working on some lattice wireframe figures that have two conditioning >> factors, and I want the strips labelled on the top and left of the >> entire plot, r

[R] ellipsis problem

2009-05-04 Thread tyler
a = tmp, mgp = c(3, 0.5, 0)) ## works plot(Y ~ X, data = tmp, tcl = -0.1) ## works What am I doing wrong? Thanks, Tyler R version 2.8.1 (2008-12-22) Debian Testing -- What is wanted is not the will to believe, but the will to find out, which is the exact opposite. --

Re: [R] ellipsis problem

2009-05-04 Thread tyler
Duncan Murdoch writes: > On 5/4/2009 2:55 PM, tyler wrote: >> > > This looks like another manifestation of the following bug: > [...] > > which has recently been fixed in R-patched. I haven't traced through > it, but I do see the same error as you in 2.9.0, b

Re: [R] using contour() with x,y,z data?

2008-06-26 Thread tyler
umeric(factor(coords[,1])) coords[,2] <- as.numeric(factor(coords[,2])) for (i in 1:nrow(coords)) image.out[coords[i,1], coords[i,2]] <- value[i] return(image.out) } my.image <- image.maker(cv_data[,c("x", "y")], cv_data$z) contour(my.image) HTH, Tyler --

[R] adonis (vegan package) and subsetted factors

2008-04-10 Thread tyler
revious experience with lda(), it seems that R generally does the right thing. Am I doing something wrong here, or is there a problem in adonis? Thanks, Tyler ps. Sorry for not supplying a reproducible bit of code. The data.frame is quite large. The general layout is: > head(gel_data) # addit

Re: [R] adonis (vegan package) and subsetted factors

2008-04-10 Thread tyler
> Management 3.0 0.57288 0.19096 1.27735 0.2694 <0.01 *** > > For now, forcibly remove empty factor levels as per your second example, > but I'll take a look at fixing adonis() Great, thanks! Tyler __ R-help@r

[R] inconsistent lm results with fixed response variable

2009-01-20 Thread tyler
e == 0 and adj.R.sq == NaN when the response variable is fixed? Thanks for any suggestions, Tyler Data follows: `tmp` <- list(structure(list(richness = c(40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,

Re: [R] inconsistent lm results with fixed response variable

2009-01-20 Thread tyler
d a check as you suggest. Thanks for your time, Tyler > Put in a check for the RSE being 0, and ``over- ride'' the adjusted R > squared to be NA (or NaN, or whatever floats your boat) in such > instances. The all.equal() function might be useful to you: > >> x <- 1.44

Re: [R] Discriminant function analysis

2008-02-07 Thread tyler
On Thu, Feb 07, 2008 at 02:36:58PM +, Gavin Simpson wrote: > > But I'm not sure this matters much. If you use the formula interface to > lda(), factors get expanded to the dummy variables Tyler is talking > about. But of course, a factor with two levels 0/1 doesn't need

[R] Need help optimizing/vectorizing nested loops

2008-12-09 Thread tyler
e call system.time(tmp <- time.test(dat)) Will run the code. Note that I've excised this from a larger, more general function, after determining that for large datasets this section is responsible for a slowdown from 10-12 seconds to ca. 250 seconds. Thanks for your patience, Tyler ti

Re: [R] Need help optimizing/vectorizing nested loops

2008-12-09 Thread tyler
Charles C. Berry writes: > On Tue, 9 Dec 2008, tyler wrote: > > > I'm analyzing a large number of large simulation datasets, and I've > > isolated one of the bottlenecks. Any help in speeding it up would be > > appreciated. > > Cast the neighb

[R] Windows R 2.15.1 on Citrix

2015-12-11 Thread Tyler Auerbeck
We're currently having an odd issue on an installation of Windows R 2.15.1 over Citrix. Occasionally we will see the application dissapear. Sometimes this will happen immediately, after a few minutes, etc. It's never after the exact same action or same period of time. I've looked at the even logs,

[R] R package built using newer version of R

2016-01-04 Thread Tyler Auerbeck
We're currently looking at using the R eclipse plugin StatET as our development environment. Due to certain requirements, we're still using 2.15.1. However a required package of StatET was built using 2.15.3, which results in the following warning: Warning message: package 'rj' was built under R v

Re: [R] R package built using newer version of R

2016-01-05 Thread Tyler Auerbeck
INSTALL packagename.tar.gz library-location > > Regards, > > Harrie > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan > Murdoch > Sent: maandag 4 januari 2016 20:16 > To: Tyler Auerbeck ; r-help@r-project.org > Su

Re: [R] R package built using newer version of R

2016-01-05 Thread Tyler Auerbeck
em to locate h.exe. Is there something I need to pull down that would provide this? Do I need to add something to my path in order for the install to find this? As always, any help would be greatly appreciated. On Tue, Jan 5, 2016 at 2:34 PM, David Winsemius wrote: > > > On J

Re: [R] R package built using newer version of R

2016-01-05 Thread Tyler Auerbeck
We can go ahead and ignore that last email. It looks like I had just configured Rtools incorrectly. Once I resolved that issue I was able to get this compiled appropriately. Thanks to everyone for the help! On Wed, Jan 6, 2016 at 1:34 AM, Tyler Auerbeck wrote: > Alright, I believe I'

Re: [R] Parts of Speach Tagging

2013-08-24 Thread Tyler Rinker
Have a look at ?Maxent_POS_Tag_Annotator The examples show you how to get the tagPOS behavior. Cheers,Tyler > Date: Sun, 25 Aug 2013 04:11:33 +0530 > From: sid.aru...@gmail.com > To: r-help@r-project.org; r-h...@stat.math.ethz.ch > Subject: [R] Parts of Speach Tagging > >

[R] (no subject)

2013-08-25 Thread Tyler Rinker
the R dev version (R Under development (unstable) (2013-08-24 r63687) -- "Unsuffered Consequences") check? Cheers Tyler === Plain text version of this email: https://dl.dropboxusercontent.com/u/61803503/Errors/depends_question.txt

[R] Incorporating a dataset only package

2013-08-25 Thread Tyler Rinker
evelopment (unstable) (2013-08-24 r63687) -- "Unsuffered Consequences") check?  This desired outcome is very much the way the `datasets` package is loaded by default when R starts. Cheers Tyler (apologies on the double send as the first one had no subject line) ===

Re: [R] Trouble with Slidify and Latex

2013-09-01 Thread Tyler Rinker
m/ramnathv/slidify/issues?state=open Tyler Rinker  > From: noahsilver...@ucla.edu > Date: Sun, 1 Sep 2013 13:40:52 -0700 > To: r-help@r-project.org > Subject: [R] Trouble with Slidify and Latex > > Hi, > > (Re-submitting as the origin

Re: [R] How do I parse text?

2013-09-06 Thread Tyler Rinker
Henry, Have look at the qdap package's termco, wfm, adjacency_matrix, and (possibly) word_associate functions.  I'm not sure if they'll work as you really don't give much in the way of what the data is and the desired output (an example of the output).

[R] [R-pkgs] qdap 0.2.0 released

2013-02-04 Thread Tyler Rinker
. Tyler Rinker ___ 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

[R] Issues with installing RBGL package

2013-02-22 Thread jason tyler
Hi all, I was installing a package *RBGL* of bioconductor. However, I had some issues while installing it. I asked the devel group of bioconductor and they told me to consult this group. Here is my conversation with the bioconductor group related to the problem *Me->* I was trying to install the

Re: [R] Word Frequency for each row

2013-03-09 Thread Tyler Rinker
I think the qdap package's termco (termo count) function will do what you want. Read the specifics as spacing around the word matters.      library(qdap);        termco(DATA$state, 1:nrow(DATA), c("it"))      > Date: Fri, 8 Mar 2013 21:34:31 +0530 > F

Re: [R] Word Frequency for each row

2013-03-09 Thread Tyler Rinker
I see you provided sample data.  Here it is with that: library(qdap) termco(dat$Data, dat$ID, c(" oranges ")) > From: tyler_rin...@hotmail.com > To: sudipanal...@gmail.com; r-help@r-project.org > Date: Sat, 9 Mar 2013 17:20:24 -0500 > Subject: Re: [R]

[R] [R-pkgs] reports 0.1.2 released

2013-03-12 Thread Tyler Rinker
(a) a help video section and (b) a vignette detailing workflow and use of reports. Tyler Rinker ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-pac

Re: [R] custom startup/welcome message

2013-04-04 Thread Tyler Rinker
What is your OS? > Fom: michael.weyla...@gmail.com > Date: Thu, 4 Apr 2013 15:31:31 -0500 > To: pelj...@yahoo.co.uk > CC: r-help@r-project.org > Subject: Re: [R] custom startup/welcome message > > On Thu, Apr 4, 2013 at 9:49 AM, lejeczek wrote: > > yeap, I

[R] Writing contrast statements to test difference of slope in linear regressions

2013-04-23 Thread Hallman, Tyler
e-02 0.01703235 7.828240e-01 55 0.4370882317 Did I write the contrasts correctly? And does this then indicate that the slope of 22:22 was significantly different from all others but none of the others were different? Help with comparing the slopes between these regressions would be wonderf

[R] Creating multiple maps so points don't overlap

2012-09-22 Thread Tyler Petroelje
Hello, I am working within package 'maptools' to plot a number of collared animal locations by reading in shapefiles of locations, roads, hydrology, and landownership as imported layers. The trouble I have is that some individual locations are overlapping and I would like to "zoom" into or create

[R] Question about use of sort.list(sort.list(x)) in rank.r

2012-10-16 Thread Tyler Ritchie
I was looking at rank() and I came across: ... "first" = sort.list(sort.list(xx)), ... line 32 of rank.r [1] sort.list(x) returns the indices of the values of x in ascending (by default) order. So sort.list(sort.list(x)) returns the same list. So, what am I missing here? -Tyler

[R] Major discrepancy between R and Stata for ARIMA

2014-04-09 Thread Benster, Tyler
Hi all, I've been looking through documentation to try to understand why Stata and R occasionally come up with very different parameter estimates for ARIMA, and am stumped. Existing discussion on this question, including code, can be found here: https://stackoverflow.com/questions/22443395/major-d

[R] Long equation in documentation

2012-12-09 Thread Tyler Rinker
\rho_{isv}\rho_{itu}-(\rho_{ist}\rho_{isu}\rho_{isv} + \rho_{its}\rho_{itu}\rho_{itv}) + \rho_{ius}\rho_{iut}\rho_{iuv} + \rho_{ivs}\rho_{ivt}\rho_{ivu}]/n_i} How can I break the formula and optionally indent the second lower piece; though I'd settle for break it right now? Tyler Ri

Re: [R] Creating an R package in windows- where to put images?

2012-12-09 Thread Tyler Rinker
I recently included a .bib file in a package in the directory: package_name/inst/extdata I then recall this file using: <- system.file("extdata/bibTest.bib", package = "metaDAT") I assume something similar could be helpful here. > From: jdnew...@dcn.davis.ca.us > Date: Sun, 9 Dec 2012 22:11

[R] clusterboot function in the fpc package in R

2013-09-17 Thread Hallman, Tyler
ther way to get metrics on the validity of clusters would be great too. Cheers, - Tyler Hallman, M.S. Ph.D. Student The Robinson Lab Department of Fisheries and Wildlife Oregon State University Corvallis [[alternative HTML version deleted]] _

[R] help, bifurcation diagram efficiency

2010-06-24 Thread Tyler Massaro
Hello all - This code will run, but it bogs down my computer when I run it for finer and finer time increments and more generations. I was wondering if there is a better way to write my loops so that this wouldn't happen. Thanks! -Tyler # # Bifurcation diagram #

[R] Quantmod Error Message

2010-07-12 Thread Tyler Campbell
I've thought it was a time series issue, but I have tried converting the "sigup" and "sigdn" to a time series using >sigup_ts=ts(sigup) >sigdn_ts=ts(sigdn) But the error still comes up. Any help on this issue would be greatly appreciated. Thanks, Tyler Campbell ty

[R] GLM Starting Values

2010-07-22 Thread Tyler Williamson
Hello, Suppose one is interested in fitting a GLM with a log link to binomial data. How does R choose starting values for the estimation procedure? Assuming I don't supply them. Thanks, Tyler __ R-help@r-project.org mailing list

Re: [R] Dual colour ramps based on pos/neg values

2011-05-10 Thread Tyler Hayes
My apologies for the late reply but I was out of town for a while. The solution I wound up using is below. Sorry about the text if it didn't wrap well. You should be able to pick out the code from the comments though. Thanks for all the help! Cheers, t. ## > Start hack ## ##

Re: [R] draw text outside plot boundaries

2011-06-06 Thread Tyler Rinker
~cyl));with(mtcars,plot(mpg~cyl)) textClick(expression(sum((bar(X)-X^2))),"pink",.5) Cheers Tyler > Date: Mon, 6 Jun 2011 15:09:29 -0700 > From: ehl...@ucalgary.ca > To: e...@q32.com > CC: r-help@r-project.org > Subject: Re: [R] draw text outside plot boundaries &g

[R] Score Test Function

2011-06-11 Thread Tyler Rinker
Greeting R Community, I'm trying to learn Logistic Regression on my own and am using An Introduction to Logistic Regression Analysis and Reporting (Peng, C., Lee, K., & Ingersoll, G. ,2002). This article uses a Score Test Stat as a measure of overall fit for a logistic regression model. The

[R] Somers Dyx

2011-06-12 Thread Tyler Rinker
incorrect logic and/or there's an easier way to calculate this thing; perhaps there’s a ‘golden’ function already created in an [R] package that I'm overlooking. Thanks in advance, Tyler [[

[R] Help writing a Scheffe Contrast function for R

2011-03-09 Thread Tyler Rinker
Hello, As a new user of R (less than a month) I have got my hands on several books and am pouting through the net looking for help in gaining understanding of this powerful tool. I am becoming more proficient with using basic functions to conduct basic statistics. I am now looking t

[R] is gzcon w/ urls not implemented or used differently on linux?

2011-03-11 Thread Tyler Backman
ched base packages: [1] stats graphics grDevices utils datasets methods base > system("uname -a") Linux biocluster 2.6.26-2-openvz-amd64 #1 SMP Tue Jan 25 06:04:33 UTC 2011 x86_64 GNU/Linux Thank you, Tyler William H Backman Cheminformatics Programmer Department of

[R] Passing a character argument onto a function

2011-03-11 Thread Tyler Rinker
I am a new R user and am beginning to employ function creation in my statistical work. I am running into a problem when I want to pass on a character (text) to the function as an argument. I have a simple example below to demonstrate this problem. I cannot seem to find a fix in my R book or

Re: [R] AOV() may misslabel random effects.

2011-03-15 Thread Tyler Rinker
Mr. Giles Crane, I am new to R (only a month in). My response is as best as I understand the workings of R (so if I'm wrong more experienced people plese help me out). AOV is not really appropriate for an unbalanced model. This is where you can rely on the lm() function using these steps:

Re: [R] How do I delete multiple blank variables from a data frame?

2011-03-19 Thread Tyler Rinker
I actually prefer to do this portion of the work (data prep) inside of excel. When you export the data as an cvs doc the NA's will be in the excel spreadsheet. Now the search and/or the search and replace option become very handy. Probably a better way in [R] though. Tyler > D

[R] Using the Mahalanobis Function

2011-03-19 Thread Tyler Rinker
Hello all, I am a 2 month newbie to R and am stumped. I have a data set that I've run multivariate stats on using the manova function (I included the data set). Now it comes time for a table of effect sizes with significance. The univariate tests are easy. Where I run into trouble fill

Re: [R] Using the Mahalanobis Function

2011-03-20 Thread Tyler Rinker
My aplogies: The Table of effects did not come through as I had intended them to. HEre they are reformatted: Again I would like to see someone actually run mahalanobis() for this data set to arrive at ?1 and ?2. I do not know what exactly (after reading the manual) goes in for x,center,or c

[R] Using the mahalanobis( ) function

2011-03-21 Thread Tyler Rinker
Hello all, I am a 2 month newbie to R and am stumped. I have a data set that I've run multivariate stats on using the manova function (I included the data set). Now it comes time for a table of effect sizes with significance. The univariate tests are easy. Where I run into trouble filling

Re: [R] Using the mahalanobis( ) function

2011-03-21 Thread Tyler Rinker
This is what I've tried so far and just can't get it. I know I want a value of 3.93 (for Age= y and m) using mahalanobis d as an effect size for a follow up to an MANOVA: age.frame<-data.frame(Age, Friend.Agression, Parent.Agression, Stranger.Agression) > age.frame Age Friend.Agression Pa

Re: [R] Looking for a repeated measure two groups comparison and a two factor ANOVA in Circular distribution

2011-03-22 Thread Tyler Rinker
-series-two-way-repeated.html Tyler From: tintin...@hotmail.com To: r-help@r-project.org Date: Tue, 22 Mar 2011 15:56:27 +0100 Subject: [R] Looking for a repeated measure two groups comparison and a two factor ANOVA in Circular distribution Hi, I am looking for a way to study some phase data

[R] Using the mahalanobis( ) function

2011-03-22 Thread Tyler Rinker
I want to calculate the Manhalanobis D as an effect size for a follow up to a MANOVA. I think I'm getting further but still not there. No one has weighed in yet to lend help and I would much appreciate it, particulalry those who are familiar with cluster analysis or MANOVA follow up/effect si

Re: [R] Using the mahalanobis( ) function

2011-03-22 Thread Tyler Rinker
In my haste I did not include the full printout of my R session. My apologies. nd<-read.table("ex20.csv", header=TRUE, sep=",",na.strings="NA") attach(nd) age.frame<-data.frame(Age, Friend.Agression, Parent.Agression, Stranger.Agression) > age.frame Age Friend.Agression Parent.Agression St

[R] Sequential multiple regression

2011-03-31 Thread Tyler Rinker
pproach but I'm really after those F changes). As is the usually the case I'm sure R does this simply and beautifully, I'm just not experienced with the statistical vocabulary and techniques around regression to find what I'm looking for. F-change values with

Re: [R] Sequential multiple regression

2011-03-31 Thread Tyler Rinker
Bert and anyone else with info, First, Bert thank you for your quick reply. drop1 gives the results as a type II anova. Is there a way to make drop1 give you type I anova (the args don't appear to have a way to do so)? Another package/function perhaps? Tyler > Date: Thu, 31

[R] Function for finding NA's

2011-04-03 Thread Tyler Rinker
people feel is worthwhile for me to put into a package of some sort? Tyler Here's the code: NAhunter<-function(dataset) { find.NA<-function(variable) { if(is.numeric(variable)){ n<-length(variable) mean<-mean(variable, na.rm=T) median<-median(variable, na.rm=T) sd<

Re: [R] Function for finding NA's

2011-04-03 Thread Tyler Rinker
an R user and have loads to learn. Simpler is better. Thanks David for your time and I will take the information you gave and put it to use in new situations. Tyler > CC: r-help@r-project.org > From: dwinsem...@comcast.net > To: tyler_rin...@hotmail.com > Subject: Re: [R] Fun

[R] Automated Fixed Order Stepwise Regression Function

2011-04-07 Thread Tyler Rinker
Greetings, I am interested in creating a stepwise fixed order regression function. There's a function for this already called add1( ). The F statistics are calculated using type 2 anova (the SS and the F changes don't match SPSS's). You can see my use of this at the very end of the email.

[R] 2-parameter MLE problems

2011-04-12 Thread Tyler Schartel
om this code: "Error in optim(poisNLL, start = c(10, 0.1), method = "BFGS") : cannot coerce type 'closure' to vector of type 'double'" Any assistance provided would be greatly appreciated! Best, Tyler [[alternative HTML version deleted]]

[R] My added packages won't load in r.2.13.0

2011-04-16 Thread Tyler Rinker
Problem: I updated from r.2.12 to r.2.13 and when I use library(car) for example it says: > library(car) Error in library(car) : there is no package called 'car' So I found that the packages I had before are located in: C:\Users\Documents\R\win-library\2.12 Now they're in: C:\Users\Documen

Re: [R] Simple Missing cases Function

2011-04-19 Thread Tyler Rinker
I use the following code/function which gives me some quick descriptives about each variable (ie. n of missing values, % missing, case #'s missing, etc.): Fairly quick, maybe not pretty but effective on either single variables or entire data sets. NAhunter<-function(dataset) { find.NA<-functio

[R] Dual colour ramps based on pos/neg values

2011-04-21 Thread Tyler Hayes
Hi Everyone: I'm going a little nuts here and am hoping someone might have some ideas to help out. Here is my problem: I am using the calendarHeatMap function (http://blog.revolutionanalytics.com/2009/11/charting-time-series-as-calendar-heat-maps-in-r.html) to plot some values of percentages abov

Re: [R] excel dates and times in R

2011-08-05 Thread Tyler Rinker
You can also make the change in the excel file first. In excel highlight the date column-> right click-> format cells ->under number tab click custom ->in the Type field type the following "-mm-dd" Now save and import. > Date: Fri, 5 Aug 2011 13:59:16 +0100 > From: ted.hard...@wlandre

Re: [R] plotting many unique colors with categorical data

2011-08-05 Thread Tyler Rinker
col=sample(colors()[-1], ncol(dataframe), replace = FALSE) This may help but since it's randomized it's a crap shoot but the colors are likely to be more distinct. > Date: Fri, 5 Aug 2011 15:38:57 -0400 > From: sarah.gos...@gmail.com > To: rloise...@usgs.gov > CC: r-help@r-p

[R] Question

2011-08-08 Thread Tyler Gruhn
Are there any methods of getting large amounts of data to process into heatmaps that I should look into? Thank you very much, Tyler [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Renaming levels of a factor in a dataframe

2011-08-14 Thread Tyler Rinker
Here's an example of relevel used to relevel and combine groups InsectSprays2<-InsectSprays levels(InsectSprays2$spray) levels(InsectSprays2$spray)<-list(new1=c("A","C"),YEPS=c("B","D","E"),LASTLY="F") levels(InsectSprays2$spray) InsectSprays2 So for you try... levels (Data1$Site) <- list(F

[R] Opening package manual from within R

2011-08-23 Thread Tyler Rinker
Simple question but searching rseek did not yield the results I wanted. Question: Is there a way to open a help manual for a package from within R. For instance I would like to type a function in r for the tm package and R would open that PDF as seen here: http://cran.r-project.org/web/packa

Re: [R] Opening package manual from within R

2011-08-23 Thread Tyler Rinker
ual(tm) > Date: Tue, 23 Aug 2011 15:10:51 -0700 > Subject: Re: [R] Opening package manual from within R > From: gunter.ber...@gene.com > To: tyler_rin...@hotmail.com > CC: r-help@r-project.org > > After loading the package, does help.start() do what you want? > >

Re: [R] Opening package manual from within R

2011-08-23 Thread Tyler Rinker
tion to do this, however, I'm guessing there is because of the existance of the vignette() function Cheers Tyler > CC: gunter.ber...@gene.com; r-help@r-project.org > From: dwinsem...@comcast.net > To: tyler_rin...@hotmail.com > Subject: Re: [R] Opening package manual from wit

Re: [R] Opening package manual from within R

2011-08-24 Thread Tyler Rinker
brary is the package name method is either web or system (web is Internet based and faster where as system creates the pdf from the library latex code and is slower) #= Thanks for your responses! Tyler > Date: Wed, 2

[R] Construct a File Path: File Path Unknown

2011-08-25 Thread Tyler Rinker
I am not a programmer and am self-taught so I may lack the language to ask this appropriately (perhaps why an rseek search was unfruitful). Let's say I saved a file to my desktop called foo.pdf. Then I want R to return the file path of foo.pdf (pretend I don't know the location(path) of

Re: [R] Construct a File Path: File Path Unknown

2011-08-25 Thread Tyler Rinker
xample dir("c:/", pattern="foo.pdf", full.names=T, ignore.case=T, recursive=T) Jean Tyler Rinker wrote on 08/25/2011 11:54:28 AM: > > I am not a programmer and am self-taught so I may lack the > language to ask this appropriately (perhaps why an rseek s

Re: [R] Construct a File Path: File Path Unknown

2011-08-25 Thread Tyler Rinker
Bill, Thank you very much! That's very fast. Exactly what I was looking for. Jean thank you for your response as well. Tyler> From: wdun...@tibco.com > To: tyler_rin...@hotmail.com; jvad...@usgs.gov > CC: r-help@r-project.org > Subject: RE: [R] Construct a File Path:

[R] Make a function work on an environemnt

2011-08-26 Thread Tyler Rinker
his code not work inside the function? Please critique both my attempts?What would I need to do to make the pieces of code work inside the function? Windows 7R 2.14 beta Thanks in advance,Tyler Rinker [[alternative HTM

Re: [R] Make a function work on an environemnt

2011-08-27 Thread Tyler Rinker
tion? Windows 7 R version 2.14 beta Thanks in advance, Tyler Rinker [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Make a function work on an environemnt

2011-08-27 Thread Tyler Rinker
not the global environment. Not sure about the second... Michael Weylandt On Sat, Aug 27, 2011 at 9:25 AM, Tyler Rinker wrote: A previous attempt at this question resulted in the message running together, making the message difficult to read and the code lines hard to distinquinsh.

Re: [R] Make a function work on an environemnt

2011-08-27 Thread Tyler Rinker
ond... Michael Weylandt On Sat, Aug 27, 2011 at 9:25 AM, Tyler Rinker wrote: A previous attempt at this question resulted in the message running together, making the message difficult to read and the code lines hard to distinquinsh. In my R learning I've come across a situation

[R] url prep function (backslash issue)

2011-08-30 Thread Tyler Rinker
") Error: '\U' used without hex digits in character string starting "C:\U" This is what I'd like the function to return: [1] "C:/Users/Rinker/Desktop/Research & Law/Data/School Data 09-10" I want a function in which I enter a path and it returns the pa

Re: [R] url prep function (backslash issue)

2011-08-30 Thread Tyler Rinker
Thank you Brian. When I wrote the email I typed url into the subject line by accident. I mean path. Thank you,Tyler > Date: Tue, 30 Aug 2011 14:00:22 +0100 > From: rip...@stats.ox.ac.uk > To: tyler_rin...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] url prep func

Re: [R] url prep function (backslash issue)

2011-08-30 Thread Tyler Rinker
Duncan, Thanks. Combined with what Brian Ripley wrote it all works. For future thread searchers this worked: oldstring <- readline() C:\Users\Rinker\Desktop\Research& Law\Data\School Data 09-10 chartr("\\", "/",olds

[R] Generating data when mean and 95% CI are known

2011-09-07 Thread Tyler Hicks
Is there a function in R that will generate data from a known mean and 95% CI? I do not know the distribution or sample size of the original data. Cheers, Tyler L Hicks PhD Student Washington State University - Vancouver E-mail: tyler_hi...@wsu.edu Website: www.thingswithwings.org "

[R] Package dependency

2011-09-20 Thread Tyler Rinker
ow do I get my package to automatically download dependencies from CRAN as other CRAN packages do when I install them to my library for the first time? Tyler Rinker R version 2.14 (beta) Windows 7 [[alternative HTML vers

Re: [R] R help on write.csv

2011-09-21 Thread Tyler Rinker
using ?object. So if you type "?write.csv" into the r console it will take you to a help page. There you will see info about the object and in this case append is what you will most likely want to look at. Tyler > From: ashish.ku...@esteeadvisors.com > To: r-help@r-proj

Re: [R] how to simulate Likert-type data using R

2011-06-26 Thread Tyler Rinker
?sample Date: Sun, 26 Jun 2011 02:26:10 -0700 From: wjca...@hotmail.com To: r-help@r-project.org Subject: [R] how to simulate Likert-type data using R Dear R members Could someone tell me how to simulate Likert-type data using the rnorm function. Let's say, 200*15 random numbers in a var

[R] library(doBy) will not load

2011-06-28 Thread Tyler Rinker
wing object(s) are masked from ‘package:stats’: AIC, BIC Loading required package: snow Error in as.character(t) : 't' is missing Error: package ‘snow’ could not be loaded > recodeVar Error: object 'recodeVar' not found Thank you in advance, Tyler

Re: [R] library(doBy) will not load

2011-06-28 Thread Tyler Rinker
: ‘lme4’ The following object(s) are masked from ‘package:stats’: AIC, BIC Loading required package: snow Error in as.character(t) : 't' is missing Error: package ‘snow’ could not be loaded > recodeVar Error: object 'r

Re: [R] library(doBy) will not load

2011-06-28 Thread Tyler Rinker
ge: ‘lme4’ The following object(s) are masked from ‘package:stats’: AIC, BIC Loading required package: snow Error in as.character(t) : 't' is missing Error: package ‘snow’ could not be loaded > recodeVar Error: object 'r

Re: [R] Storing and managing custom R functions for re-use

2011-07-09 Thread Tyler Rinker
.First. Again, this makes it easy to quickly reference what you have and makes all your functions quickly accessible. Tyler > Date: Sat, 9 Jul 2011 13:30:51 +0200 > From: s.chamai...@yahoo.fr > To: r-help@r-project.org > Subject: [R] Storing and managing custom R functions for re-u

[R] (no subject)

2011-07-14 Thread Tyler Rinker
t how to deal with duplicates after that; that’s the easy part). Thank you in advance for your help, Tyler Rinker PS if your idea is a for loop please explain it well or provide the code because I do not have a programming background and for loops are very difficult to wrap my head around. R

Re: [R] color of math annotation in legend

2011-07-28 Thread Tyler Rinker
Use the text.col argument as below ?legend x=y=1:100 z=seq(0.5,50,by=0.5) plot(x,y,type='l',col='black') lines(x,z,col='red') legend('topleft',c(expression(paste(alpha," = ", 1)), expression(paste(alpha," = ", 2))),text.col=c("black","red")) > Date: Thu, 28 Jul 2011 02:32:04 -0500 > From

[R] ifelse returns

2011-07-29 Thread Tyler Rinker
)==1,warning("No Mode: Frequency of all > values is 1", call. = FALSE),MODE1) [1] 4 Thank you in advance, Tyler [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://sta

Re: [R] ifelse returns

2011-07-29 Thread Tyler Rinker
nd of code > #=== > > R Console Output > > (MODE1<-as.vector(as.numeric(as.character(subset(df,Freq==m)[,1] > [1] 4 5 6 > > ifelse(sum(df$Freq)/length(df$Freq)==1,

Re: [R] First value in a row

2012-07-24 Thread Tyler Rinker
This would work: X <- lapply(1:nrow(dat1), function(i) rev(dat1[i, -c(1:2)]))sapply(X, function(x) x[!is.na(x)][1]) > Date: Tue, 24 Jul 2012 23:56:17 -0300 > From: cm...@dal.ca > To: smartpink...@yahoo.com > CC: r-help@r-project.org; henrik.singm...@psychologie.uni-freiburg.de > Subject: Re: [R

[R] Problem creating reference manuals from latex

2011-11-14 Thread Tyler Rinker
s n R font's file that Miktext needs to build the manual. I'd like to be able generate the reference manuals again without the Internet. While the code above worked in the past I'm open to alternative methods. Version: R 2.14.0 2011-10-31 OS: Windows 7 Latex: MikTex 2.9 Thank y

Re: [R] Problem creating reference manuals from latex

2011-11-14 Thread Tyler Rinker
ut inconsolata, unfortunately I am not grasping what I need to do. Tyler > Date: Mon, 14 Nov 2011 21:59:10 -0500 > From: murdoch.dun...@gmail.com > To: tyler_rin...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] Problem creating reference manuals from latex > > On

Re: [R] Problem creating reference manuals from latex

2011-11-15 Thread Tyler Rinker
one seemed easiest ot me) Go to the command prompt and type: mpm --verbose --install inconsolata Thanks again Duncan! I appreciate it. Tyler > Date: Tue, 15 Nov 2011 06:15:05 -0500 > From: murdoch.dun...@gmail.com > To: tyler_rin...@hotmail.com > CC: r-help@r-project.org

Re: [R] References for book "R In Action" by Kabacoff

2011-12-01 Thread Tyler Rinker
In the ebook version there is a list of references (pp. 434-437). > Date: Thu, 1 Dec 2011 10:48:45 +0100 > From: lig...@statistik.tu-dortmund.de > To: ravi.k...@gmail.com > CC: r-help@r-project.org > Subject: Re: [R] References for book "R In Action" by Kabacoff > > On 01.12.2011 10:10, Ravi Kul

Re: [R] Import in R with White Spaces

2011-10-03 Thread Tyler Rinker
a.frame(dat, dat)) #nasty white spaces white(DAT) #white spaces gone Tyler > Date: Mon, 3 Oct 2011 08:14:27 -0700 > From: francy.casal...@gmail.com > To: r-help@r-project.org > Subject: [R] Import in R with White Spaces > > Hi, > > I have a simple question about i

  1   2   >