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).

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

[R] Incorporating a dataset only package

2013-08-25 Thread Tyler Rinker
Greetings R Community, I am attempting to make sure a parent package passes all CRAN checks for the dev version (R Under development (unstable) (2013-08-24 r63687) -- "Unsuffered Consequences").  The parent package I'm compiling relies on another package that is purely a dataset package as reco

[R] (no subject)

2013-08-25 Thread Tyler Rinker
Greeting R Community, Greetings R Community, I am attempting to make sure a parent package passes all CRAN checks for the dev version (R Under development (unstable) (2013-08-24 r63687) -- "Unsuffered Consequences").  The parent package I'm compiling relies on another package that is purely a

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 > > I was using tagPOS fun

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] [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] 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]

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

[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

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] 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] 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

Re: [R] Plot

2012-05-14 Thread Tyler Rinker
I noticed I was remiss in addressing your origin question: Use the xlim and ylim, setting the lower limit to 0.  Here's an example of this with the CO2 dataset: plot(uptake~Plant, data=CO2) plot(uptake~as.numeric(Plant), data=CO2) plot(uptake~as.numeric(Plant), data=CO2, ylim=c(0, 50), xlim

Re: [R] Error in names(x) <- value: 'names' attribute must be the same length as the vector

2012-05-14 Thread Tyler Rinker
I'd throw a browser() in at that point and see what colnames(newdf.int) gives you.  If you have less columns than names this is likely the reason for the error. You can get the same error with: colnames(mtcars) <- LETTERS Cheers,Tyler > Date: Mon, 14 M

Re: [R] Plot

2012-05-14 Thread Tyler Rinker
That is likely because ferm is a factor.  A scatterplot is two numeric variables.  To make it a scatterplot wrap ferm with as.numeric.  Cheers, Tyler Date: Mon, 14 May 2012 12:21:12 -0700 From: kellycoo...@yahoo.com To: r-help@r-project.org Subject: [R] P

Re: [R] How to specify multiple regular expressions for pattern argument

2012-05-11 Thread Tyler Rinker
I'm curious about the 'real' answer myself but this would work: ls(pattern='^d')[ls(pattern='^d') %in% ls(pattern='[[:digit:]]$')] Cheers,Tyler Rinker > Date: Fri, 11 May 2012 13:18:

Re: [R] for loop problem

2012-04-30 Thread Tyler Rinker
I don't really work with dates but thought I'd pass a solution on.  I think that there some great packages for handling dates though (lubridate) and you may want to convert your data to a true date instead of separate columns. # FUNCTION TO INDEX DATES date.int <- function(month, year, day){

Re: [R] introducing R to high school students

2012-04-18 Thread Tyler Rinker
/ I wish I knew R when I was a math teacher and applaud any effort to engage students in authentic learning with powerful tools that they may use later on.   I would encourage physics teachers to incorporate R too.   Tyler Rinker From: indra_cali...@yahoo.com To: R-help@r-project.org Subject: Re

Re: [R] Choose between duplicated rows

2012-04-14 Thread Tyler Rinker
My solution: SP <- split(df, df[, 1:2]) minner <- function(x, col = 'numMiss') {    x[which.min(unlist(x[,col])), , drop=FALSE]} NEW <- do.call('rbind', lapply(SP, minner))SP2 <- split(NEW, NEW[, 'id'])do.call('rbind', lapply(SP2, function(x) minner(x, 'A'))) Cheers,Tyler > Date: Sat, 14 Apr

[R] Missing CRAN Mirror

2012-04-06 Thread Tyler Rinker
he fate of this repository? Cheers,Tyler Rinker If this was not the appropriate place for this question please feel free to direct me to a more appropriate place to ask this question. [[alternative HTML versi

Re: [R] Reshape from long to wide

2012-03-20 Thread Tyler Rinker
Another approach, as your needs are very specific (take every other item in the second column and the unique values of columns 1) would be to index, use unique and put it together with data.frame (or cbind). data.frame(family = unique(x[, 1]), kid1 = x[c(T, F), 2], kid2 = x[c(F, T), 2]) Cheers

Re: [R] paste (CTRL + v) not working rgui

2012-03-19 Thread Tyler Rinker
I attempted the advice of Ajay but found that the names ◦Network DDE DSDM, ◦Network DDE, ◦Clipbook were not found in that location. Here's a bit more information about the problem I've discovered. I have a manual I've created of useful R tricks I've elarned that I created as a word doc

[R] paste (CTRL + v) not working rgui

2012-03-17 Thread Tyler Rinker
and no change in behavior. I appreciate any direction anyone can give me with solving this problem as I use the command very frequently. Cheers,Tyler Rinker [[alternative HTML version deleted]] __ R-help@

Re: [R] Vertical string with horizontal letters

2012-02-02 Thread Tyler Rinker
I apologize for the improperly formatted submission. I had my hotmail set to plain text instead of rich text. x <- "output"y <- unlist(strsplit(x, NULL)) plot.new()text(.5, .5, paste(y, collapse="\n")) > From: tyler_rin...@hotmail.com > To: israelb...@hotmail.com; r-help@r-project.org > Date: T

Re: [R] Vertical string with horizontal letters

2012-02-02 Thread Tyler Rinker
One possible solution is to use strsplit to break on each character and then paste to put in a "\n" after each character.  Then when you plot the text should be in the format you desire. x <- "output"y <- unlist(strsplit(x, NULL))p <- cat(paste(y, collapse="\n")) plot.new()text(.5, .5, paste(y,

Re: [R] tm package: handling contractions

2012-01-27 Thread Tyler Rinker
This may not be the answer to your problem but you could gsub out the "pretty apostrophe" for the one tm recognizes.  Also note that this may be due to your use of word which automatically uses the "pretty apostrophe".  The default setting on MS word can be altered to alleviate this.#

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] Problem creating reference manuals from latex

2011-11-15 Thread Tyler Rinker
> Subject: Re: [R] Problem creating reference manuals from latex > > On 11-11-14 10:25 PM, Tyler Rinker wrote: > > > > Duncan, > > > > Thank you for your reply. I was not clear about the Internet access. I do > > have access, just at times I don't, hence the n

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

[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] Rd2pdf error after 2.14 upgrade‏

2011-11-07 Thread Tyler Rinker
I have determined this is a MikTex problem and not an R problem. I apoligize for the post. > From: tyler_rin...@hotmail.com > To: r-help@r-project.org > Date: Mon, 7 Nov 2011 20:38:54 -0500 > Subject: [R] Rd2pdf error after 2.14 upgradeþ > > > > The command Rd2pdf was rather useful for open

[R] Rd2pdf error after 2.14 upgrade‏

2011-11-07 Thread Tyler Rinker
> The command Rd2pdf was rather useful for opening a package's manual > when you don't have access to the Internet (by using latex to pdf > conversion). However the way the function seems to operate changed at > version 2.14 of R. The noted changes listed on CRAN for this function > are as follo

Re: [R] Summary stats in table

2011-10-23 Thread Tyler Rinker
I had to set it up as a data frame and then it workd beautifully with the reshape package. DF<-data.frame(A,B,x) library(reshape) cast(DF, A ~ B, fun.aggregate=mean, margins=c("grand_row", "grand_col")) Cheers Tyler > Date: Sun, 23 Oct 2011 14

Re: [R] summarizing a data frame i.e. count -> group by

2011-10-23 Thread Tyler Rinker
This could be done with aggregate but I am unfamiliar with it so I'll give what I think you want from your message using the library 'reshape' that you'll have to doneload. If you're problem is large the data.table library would be much faster. You haven't really said what you'd like to get

Re: [R] Expanding rows of a data frame into multiple rows

2011-10-22 Thread Tyler Rinker
To further Weidong Gu's suggestion merge would give you what you want but not the numeric column corresponding to the sector. Adding that would be easy enough via transform if you really desired it. Tyler obs.l<-sapply(input$observations,length) desire.output<-data.frame(site=rep(1:6,ob

Re: [R] Square ended segments

2011-10-19 Thread Tyler Rinker
ents. It even says "... further graphical parameters (from par)" right in the help page for ?segments. I apoligize for this oversight and appreciate your response anyway. Tyler Rinker > Date: Wed, 19 Oct 2011 17:34:27 -0400 > Subject: Re: [R] Square ended segments >

[R] Square ended segments

2011-10-19 Thread Tyler Rinker
Good Afternoon R Community, I am working on plotting behavior codes over short durations of time (a few seconds at a time over 1-2 hrs). I am utilizing as.POSIXct to store the time. I wanted to make a quasi time line using these time. I utilized the segments function to represent these time

Re: [R] Import in R with White Spaces

2011-10-03 Thread Tyler Rinker
I use the following function I stole somewhere. There's probably better ways. white <- function(x){ x <- as.data.frame(x) W <- function(x) gsub(" +", "", x) sapply(x,W) } #EXAPLE dat <- paste(letters," ", " ", LETTERS) (DAT <- data.frame(dat, dat)) #nasty white spaces white(DAT) #white spa

Re: [R] R help on write.csv

2011-09-21 Thread Tyler Rinker
You haven't followed the rules of the posting guide. No reproducible code. No OS or R version. I'm guessing you are a newer R user and didn't know this. So please read that guide. It'll help others to help you more quickly. If you're new you may not know about using ?object. So if you ty

[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] url prep function (backslash issue)

2011-08-30 Thread Tyler Rinker
#x27;s another > problem: > > On 30/08/2011 8:14 AM, Tyler Rinker wrote: > > [ much deleted ] > > When I try > > the function the backslash gets me again: > > > > > > > readyPath("C:\Users\Rinker\Desktop\Research& Law\Data\School Data > &

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

2011-08-30 Thread Tyler Rinker
tion (backslash issue) > > You seem to be looking for chartr("\\", "/", path) (and FAQ Q7.8) > > What does any of this have to do with 'url prep': URLs are never > written with backslashes? > > On Tue, 30 Aug 2011, Tyler Rinker wrote: > >

[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] 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

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
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

[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] Construct a File Path: File Path Unknown

2011-08-25 Thread Tyler Rinker
---Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > > Behalf Of Tyler Rinker > > Sent: Thursday, August 25, 2011 12:43 PM > > To: jvad...@usgs.gov > > Cc: r-help@r-project.org > > Subject: Re: [R] Cons

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

[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] Opening package manual from within R

2011-08-24 Thread Tyler Rinker
4 Aug 2011 07:12:24 +0100 > From: rip...@stats.ox.ac.uk > To: tyler_rin...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] Opening package manual from within R > > On Tue, 23 Aug 2011, Tyler Rinker wrote: > > > > > Simple question but searching rseek

Re: [R] Opening package manual from within R

2011-08-23 Thread Tyler Rinker
hin R > Date: Tue, 23 Aug 2011 18:22:38 -0400 > > > Try: > > help(package=tm) > > (You do not need library(). ) > -- > David. > > On Aug 23, 2011, at 6:17 PM, Tyler Rinker wrote: > > > > > I don't think help.start is what I'm lookin

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? > >

[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] 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

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

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] ifelse returns

2011-07-29 Thread Tyler Rinker
Thanks toy Jim and Michael for their response. The suggestion to use regular if/else was spot on. > From: tyler_rin...@hotmail.com > To: r-help@r-project.org > Date: Sat, 30 Jul 2011 01:48:21 -0400 > Subject: [R] ifelse returns > > > Greetings R Community, > > I am working with the ifelse

[R] ifelse returns

2011-07-29 Thread Tyler Rinker
Greetings R Community, I am working with the ifelse function and it is returning something unexpected. In the code the line with the MODE1 assignment the output is a vector [1] 4 5 6 but when I put the MODE1 object into the ifelse function [R}'s output for MODE1 is the first number from the

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] (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] Storing and managing custom R functions for re-use

2011-07-09 Thread Tyler Rinker
I personally place functions like this in my .First function under the .Rprofile, making them instantly accessible. I also keep a function called my.fun() which lists a data frame containing a column of all the function names, one for arguments, and a brief description. This also goes in .Fir

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

2011-06-28 Thread Tyler Rinker
Problem solved. I lazily forgot to clean up my workspace with rm(list=ls()). A good reminder to do so after each exit. Sorry for the wasted server space. From: tyler_rin...@hotmail.com To: r-help@r-project.org Date: Tue, 28 Jun 2011 22:58:47 -0400 Subject: Re: [R] library(doBy) will not loa

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

2011-06-28 Thread Tyler Rinker
This is the error I get when I try to load snow. > library(snow) Error in as.character(t) : 't' is missing Error in library(snow) : .First.lib failed for ‘snow’ From: tyler_rin...@hotmail.com To: r-help@r-project.org Date: Tue, 28 Jun 2011 22:47:06 -0400 Subject: [R] library(doBy) will not lo

[R] library(doBy) will not load

2011-06-28 Thread Tyler Rinker
Greetings R Community, One of my favorite packages won't load and I'm not sure why. It loaded earlier today. The problem appears with the snow package, which doBy requires. I tried reinstalling both packages again ,shutting [R] down, reinstalling [R] in the workspace (shortcut). Here's the

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] Somers Dyx

2011-06-12 Thread Tyler Rinker
Hello R Community, I'm continuing to work through logistic regression (thanks for all the help on score test) and have come up against a new opposition. I'm trying to compute Somers Dyx as some suggest this is the preferred method to Somers Dxy (Demaris, 1992). I have searchered the [R] arc

[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

Re: [R] draw text outside plot boundaries

2011-06-06 Thread Tyler Rinker
Erik, To add to what epter said... I created this little function for clicking text anywhere on the plot (I probably stole the idea from a list serve or Dalgaard's book or someplace like that). Anyway it is helpful to me and may be of use to you too. Very basic but I use it a ton. You modi

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] 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

[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.

Re: [R] Function for finding NA's

2011-04-03 Thread Tyler Rinker
ction for finding NA's > Date: Sun, 3 Apr 2011 14:19:40 -0400 > > > On Apr 3, 2011, at 1:44 PM, Tyler Rinker wrote: > > > > > Quick question, > > > > I tried to find a function in available packages to find NA's for an > > entire data set (

[R] Function for finding NA's

2011-04-03 Thread Tyler Rinker
Quick question, I tried to find a function in available packages to find NA's for an entire data set (or single variables) and report the row of missing values (NA's for each column). I searched the typical routes through the blogs and the help manuals for 15 minutes. Rather than spend any

Re: [R] Sequential multiple regression

2011-03-31 Thread Tyler Rinker
Mar 2011 09:32:02 -0700 > Subject: Re: [R] Sequential multiple regression > From: gunter.ber...@gene.com > To: tyler_rin...@hotmail.com > CC: r-help@r-project.org > > ?drop1 > > -- Bert > > On Thu, Mar 31, 2011 at 9:24 AM, Tyler Rinker > wrote: > > > &g

[R] Sequential multiple regression

2011-03-31 Thread Tyler Rinker
Hello, In the past I have tended to reside more in the ANOVA camp but am trying to become more familiar with regression techniques in R. I would like to get the F change from a model as I take away factors: SO... mod1<-lm(y~x1+x2+x3)...mod2<-lm(y~x1,x2)...mod3<-lm(y~x1) I can

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] 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] Looking for a repeated measure two groups comparison and a two factor ANOVA in Circular distribution

2011-03-22 Thread Tyler Rinker
I don't know if this is what you're looking for but it describes how to do a 2 way repeated measures with R. You problem may be different and I lack the stats knowledge to know that. If that's the case I apoligize: http://rtutorialseries.blogspot.com/2011/02/r-tutorial-series-two-way-repeated

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

[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-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-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] 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 > Date: Fri,

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:

[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

[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