Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

46 results for “from:ramoss”

subsetting by is not
ramoss · May 9, 2013 · r-help

I want to clarify we are talking about 2 variables in a datframe here. -- View this message in context: http://r.789695.n4.nabble.com/subsetting-by-is-not-tp4666706p4666707.html Sent from the R help mailing list archive at...

subset data frame by variable with missing value
ramoss · Nov 30, 2012 · r-help

I found the answer; Its mymissing <- subset(mydata,is.na(myvar)) -- View this message in context: http://r.789695.n4.nabble.com/subset-data-frame-by-variable-with-missing-value-tp4651439p4651440.html Sent from the R help mailing list archive...

How do you transform a dataframe to a corpus?
ramoss · Jan 10, 2014 · r-help

The column length is 4000 bytes long if that helps. -- View this message in context: http://r.789695.n4.nabble.com/How-do-you-transform-a-dataframe-to-a-corpus-tp4683396p4683402.html Sent from the R help mailing list archive...

Concatenating data frames in R versus SAS
ramoss · Aug 24, 2012 · r-help

I used summary <-rbind.fill(agency,prop) & it worked like a charm. Thanks everyone. -- View this message in context: http://r.789695.n4.nabble.com/Concatenating-data-frames-in-R-versus-SAS-tp4641138p4641219.html Sent from the R help mailing...

Cannot install package xlsx
ramoss · Sep 14, 2012 · r-help

It looks like they are all corrupted. I tried several other CRAN sites across the world. How can we notify the package owner? -- View this message in context: http://r.789695.n4.nabble.com/Cannot-install-package-xlsx-tp4643054p4643142.html...

Can package plyr also calculate the mode?
ramoss · Apr 4, 2013 · r-help

When I run yy <- ddply(all,"ACTIVIT", summarise, mode=mode(COUNTS)) I get : ACTIVIT mode XX numeric ZZ numeric & so on. -- View this message in context: http://r.789695.n4.nabble.com/Can-package-plyr-also-calculate-the-mode-tp4663235p4663349...

Can you have a by variable in Lag function as in SAS
ramoss · Nov 16, 2012 · r-help

Thank you again all responders. Dan your solution was both easy & miraculous. -- View this message in context: http://r.789695.n4.nabble.com/Can-you-have-a-by-variable-in-Lag-function-as-in-SAS-tp4649647p4649773.html Sent from the...

how to merge 2 data frame if you want to exclude mutual obs
ramoss · May 13, 2013 · r-help

Thanks Adam your solution worked perfectly. Thank you all for your responses. -- View this message in context: http://r.789695.n4.nabble.com/how-to-merge-2-data-frame-if-you-want-to-exclude-mutual-obs-tp4666975p4666985.html Sent from...

Can package plyr also calculate the mode?
ramoss · Apr 4, 2013 · r-help

When I put in mode=mode(COUNTS) I get the value "numeric" as an answer. I think it's giving me the data type not the mode. -- View this message in context: http://r.789695.n4.nabble.com/Can-package...

Using PLYR to apply a custom function to a data frame
ramoss · Apr 10, 2013 · r-help

Thanks everyone. The mutate function worked great: all2<- mutate(all1,upper=p75+1.5*(p75-p25),lower=p25-1.5*(p75-p25)) -- View this message in context: http://r.789695.n4.nabble.com/Using-PLYR-to-apply-a-custom-function...

subsetting by is not
ramoss · May 9, 2013 · r-help

Hello, I have a simple question: I know how to subset by is: buy1 <- subset(buy,buybdge==badge) How do I subset if I don't want buybdge to equal badge? Thanks ahead for your help -- View this message in...

Conditional operations in R
ramoss · Sep 18, 2012 · r-help

Thanks to all who responded, particularly to Michael. Your solution was the easiest to understand & to implement. This worked beautifully: cmtot <- arrange(cmtot, -PCTTOT)#sort by descending top <- with(cmtot,which.max(cumsum(PCTTOT) >= 50)) topcm <- cmtot[seq(1,top...

DTM Package removeSparseTerms function question
ramoss · Jan 16, 2014 · r-help

IN inspect(removeSparseTerms(dtm, 0.4)) does anyone knows how the sparse term "A numeric for the maximal allowed sparsity" works? ie what is the difference between say 0.2, 0.4 & 0.6? Thanks for your help -- View this...

Subset in, not in
ramoss · Jan 10, 2013 · r-help

Hello, I need to subset my dataframe into 2 parts; in: mm <- subset(agr1, subset=lmpcrd %in% c(11697,149823,7654)) not in: but where do I stick the " !" in the above? I've tried every position. Thanks for your...

Deduping in R by multiple variables
ramoss · Aug 30, 2012 · r-help

Thanks for your help guys. I was refering to the variables the wrong way. This worked for me: idx <- !duplicated(detail2[,c("TDATE","FIRM","CM","BRANCH", "BEGTIME", "ENDTIME","OTYPE","OCOND", "ACCTYP","OSIDE","SHARES","STOCKS", "STKFUL")]) detail3 <- detail2[idx,] -- View this...

if then in R versus SAS
ramoss · Aug 24, 2012 · r-help

I am new to R and I have the following SAS statements: if otype='M' and ocond='1' and entry='a.Prop' then MOC=1; else MOC=0; How would I translate that into R code? Thanks in advance -- View...

Creating a new by variable in a dataframe
ramoss · Oct 19, 2012 · r-help

Thanks for all the help guys. This worked for me: all6 <- arrange(all6, tdate,event_tim) lt <- ddply(all6,.(tdate),tail,1) lt$last_trans <-'Y' all6 <-merge(all6,lt, by.x=c("tdate","event_tim"), by.y=c("tdate...

What is SAS options missing=0 equivalent in R?
ramoss · Apr 2, 2013 · r-help

I have a dataframe & wish to convert the NA (missing values) to zero . In SAS I would use options missing=0 to convert all my obs in a dataset. How can I accomplish the same thing in R? Can it...

FF package & downloading a large file using sqlQuery
ramoss · Sep 6, 2012 · r-help

I am new to R and am encountering memory issues while trying to download a large table from Green Plump, using sqlQuery. Is there any way this FF package can help me create a large dataframe in R while downloading...

Using lubridate to increment date by business days only
ramoss · Nov 13, 2012 · r-help

Hello, I know how to increment a date by calendar date: ticker$ldate <- ticker$tdate + days(5) How do I increment it by business days only so that week-ends are not counted? So for example friday november 2 + 5days...

Can't find what you're looking for? Try searching with Google .