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.

38 results for “from:jcrosbie”

flagging values without a loop
jcrosbie · Jun 7, 2012 · r-help

For a given hour I want to be able to add a new column called flag. The flag column will flag the highest price in a given hour. Is there a way to do this without a loop? matrix: Unit...

Downloading CSV file - RCurl help
jcrosbie · Jun 15, 2013 · r-help

There are some CSV file from the link below. I'm having trouble installing the package. Is this the package I have to use or is there another one I need to use? If so how do I get this...

remove loop which compares row i to row i-1
jcrosbie · Jul 16, 2012 · r-help

Thank you, That was very helpful. I do have another problem along the same lines. But I can not think of a way to do this with a function like ddply or aggregate. Example: x = sample(0:1,42,TRUE...

remove loop which compares row i to row i-1
jcrosbie · Jul 3, 2012 · r-help

I would like to remove a loop to speed up my code. I want to remove a loop which references the last row. In general I want to a remove a loop which looks something like this: for 2 to...

How to get a subset with a date such as Date=11/03/2013 HE=02*?
jcrosbie · Mar 24, 2014 · r-help

I'm having a problem working with daylight savings dates in R. I'm downloading data in two formats. Format One Col 1: a date such as "11/03/2013" col 2: Hour ending = 02* Col1<-c("11/02/2008...

How to fix the warning message "the condition has length > 1 and only the first element will be used"?
jcrosbie · Mar 19, 2014 · r-help

I'm trying to create a function to return the date x months in the past. With the code below I'm getting the warning message: Warning message: In if (MonthsBack >= CurrentMonth) { : the condition has length > 1 and only the...

How to finding a given length of runs in a series of data?
jcrosbie · May 6, 2015 · r-help

I'm trying to study times in which flow was operating at a given level or greater. To do so I have created a way to see how long the series has operated at a high level. But for some...

How two have two legends on a chart with different groups?
jcrosbie · Apr 12, 2014 · r-help

I'm trying to have two legends on a chart, with two sets of data with subgroups. Currently ggplot is are merging the to sets of data together. I would like to have the vertical lines in there own legend...

remove loop which compares row i to row i-1
jcrosbie · Jul 12, 2012 · r-help

Thank you, I am sorry but I am still trying to figure out how to make the function work. I have a column called tUnitsort$BlockNumber which can range from 0 to 6. I have another two columns with the...

Percent of a given subset
jcrosbie · Jun 8, 2012 · r-help

How would I find the Percent of FuelTypeNum within the Band given AvailableMW? example: type 1 is 1% of PB0 type 2 is 54% of PB0 type 4 is 4% of PB0 type 5 is 42% of PB0 Note: the...

points() function will not plot
jcrosbie · Jun 1, 2012 · r-help

I can not get the point function to work with in my code. The code: AggOfTempMatrix$CumSumPercentSize<-c( 0.05265450, 0.05738490, 0.05865403, 0.05911553, 0.05957703, 0.06003854, 0.06058368, 0.06098750, 0.06147208, 0.06187589, 0.06291427...

ggplot incorrect legend
jcrosbie · Jun 5, 2012 · r-help

How do I create a legend with ggplot? I think should be getting the FuelTypeNum in the legend. Plot: http://r.789695.n4.nabble.com/file/n4632471/Rplot.jpeg My code is: ggplot(data=tempTable, aes(x=Bands8, y=SubPercent...

why is as.date function not working for me? (dd/mm/yyyy h:mm)
jcrosbie · Feb 6, 2014 · r-help

Why am I know getting hours after I convert the date? dates <- c('31/12/2013 0:00', '31/12/2013 1:00', '31/12/2013 2:00', '31/12/2013 3:00', '31/12/2013 4:00', '31/12...

How to importing a CVS file with multiple tables?
jcrosbie · Mar 20, 2014 · r-help

I'm trying to figure out how to import data into a dataframe in R. The table I'm trying to import is: HistoricalTradingReportServlet.csv <http://r.789695.n4.nabble.com/file/n4687246/HistoricalTradingReportServlet.csv> I would like to add...

Custom function causing an error with returning a ggplot object and Error in eval(expr, envir, enclos) : object '...' not found
jcrosbie · Feb 19, 2015 · r-help

I'm trying to create a custom function to return a chart object. This function seems to be having an error with calculating min/max/etc in the ggplot object. If I run the code for the ggplot not inside...

How to get a subset with a date such as Date=11/03/2013 HE=02*?
jcrosbie · Mar 25, 2014 · r-help

Sorry I thought I was being clear. These is how the time values in columns are downloaded from online (http://ets.aeso.ca/). When there is an extra hour in the date there are two hour ending twos in the...

custom function & missing value where TRUE/FALSE needed
jcrosbie · Nov 5, 2012 · r-help

I can't figure out why this function wont work. #Custom Function used fallInBand <- function(x){ #Assume the bands fall go up form 0 to 100 in intervals of 5 then from 100 to 1000 in intervals of 100. #returns...

aggregate function not working?
jcrosbie · Oct 17, 2012 · r-help

The aggregate function for some reason will now work for me. The error I'm getting is: "Error in sort.list(y) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list?" agPriceList=aggregate(PriceList$Size...

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