[R] Mapping Geographical Coordinate Data

2020-07-04 Thread Graham Leask via R-help
Dear List, I have a postcode file containing geographical coordinates but this is not in the format of a standard shape file. I list the first 5 observations below; Postcode Postcode_geometry

[R] String replace

2019-04-03 Thread Graham Leask via R-help
I’m attempting to replace a string variable that normally works fine. However when trying to do this with a string in the form of a date the output becomes corrupted. See below: BHC <-BHC %>% mutate ( Date = stringr :: str_replace ( Date , "M_1" , "01-03-2017")) BHC <-BHC %>% mutate ( Date =

[R] Replace missing values within a group with the non-missing value

2013-04-06 Thread GRAHAM LEASK
I have a large dataset organised in choice groups see below. Each choice represents a separate occasion with 1 product chosen out of the 6 offered.            +-+      | dn   obs   cho

[R] aggregate binary response data

2009-12-24 Thread Graham Leask
Dear list I have a response variable coded 0/1 i.e. a binary response. There are 20,000 individual responses that I would like to aggregate into numbers of each category (i.e. 0/1) by group called dn (350 different groups) and by month mth (there are several hundred responses per month. W

[R] Colour in banner/silhouette plot

2009-07-10 Thread Graham Leask
Dear List How do you change the colour settings for the banner/silhouette plot? I am trying to produce a black and white plot of publication quality. Is there a way to set black and white plots as the default for R graphics? Any help greatly appreciated. Graham Leask Economics

[R] Time series panel

2008-03-07 Thread GRAHAM LEASK
calendar time as a group level predictor? Any help would be most appreciated. Graham Leask Kind regards Dr Graham Leask Economics and Strategy Group Aston Business School Aston University Aston Triangle Birmingham B4 7ET Tel: Direct line 0121 204 3150 Fax: 0870 759 8408