[R] Getting individual co-ordinate points in k medoids cluster

2024-09-17 Thread Nick Wray
cluster(kmed, data = df) Thanks for any help or pointers Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Listing folders on One Drive

2024-05-20 Thread Nick Wray
ll against a list of folders on my laptop. Can I somehow use list.files() - I've tried various things but none seem to work... Any help appreciated Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

[R] Removing polygons from shapefile of Scotland and Islands

2024-05-14 Thread Nick Wray
ersions and manipulations Any pointers, thoughts etc much appreciated Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Truncated plots

2024-01-09 Thread Nick Wray
anyone needs to see what it looks like. Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Mann Kendall mutation package?

2023-12-01 Thread Nick Wray
rr.io) <https://rdrr.io/github/Sibada/sibadaR/man/MK_mut_test.html> but there doesn't seem to be a package corresponding to this. I've tried installing various permutations of the apparent name Sibada/sibadaR but nothing comes up, so I'm not sure whether it even e

[R] Yamamoto again

2023-10-19 Thread Nick Wray
Aaargh after sending out last message realised that the R code is in fact on the Cran site. However, if anyone has an algebraic form that would still be v useful as it's hard to get an overview of the process by looking just at the code Thanks Nick Wray [[alternative HTML ve

[R] Yamamoto test in BreakPoints package

2023-10-19 Thread Nick Wray
the method is not very clear and whether it’s actually what the package does I can’t tell. There is info about a Toda-Yamamoto causality test but this doesn’t seem to be the same thing as the Yamamoto test in the R package BreakPoints If anyone can point me to where either an algebraic algorithm or the

[R] rnrfa package problems

2023-10-13 Thread Nick Wray
<- catalogue(minRec = 100, all = FALSE) # Print s100Y to the screen. s100Y But again I get an error message I haven’t gone any further through the article because there doesn’t seem much point unless I can sort things. I am puzzled as to why the examples don’t work – I’ve got all the

[R] halting with errors

2023-09-18 Thread Nick Wray
(and there doesn’t seem to be a way of determining this elsewhere) and so there’s nothing to read, an error message comes up and halts the program loop, so that manually I have to reset the url to try to find out whether there is data for the next year. What I’d like to know is whether there’s any

[R] Problems with facets in ggplot2

2023-08-04 Thread Nick Wray
ylab("Flow") 1)This gives me a facetted plot but I can’t work out why I’m not getting a labelled y scale 2)Why are plots down at the bottom of the facets rather than in the middle? 3)And also I’d like the plots to be in the order (top left to bottom right) of AMAX MEAN A

[R] Choosing colours for lines in ggplot2

2023-08-02 Thread Nick Wray
14, 10, 16, 19)) ggplot(df.1, aes(x=week, y=sales, group=store, color=store)) + geom_line(size=2) + #scale_color_manual(values=c('orange', 'pink', 'red')) scale_color_manual(values=cb8[4:6]) Can anyone help? Thanks Nick Wray [[alternative HTML ve

Re: [R] col2rgb() function

2023-07-23 Thread Nick Wray
lso has an optional alpha > argument. So if you want to generate these colors with an alpha of 0.3 you > can also do: > > palette.colors(8, alpha = 0.3) > > or more explicitly > > palette.colors(8, palette = "Okabe-Ito", alpha = 0.3) > > On Sun, 23 Jul

Re: [R] col2rgb() function

2023-07-23 Thread Nick Wray
#CC79A7") > plot(0,0,xlim=c(1,8),ylim=c(0,1)) > points(1:8,rep(0.5,8),col=cb8,pch=19,cex=2) > points(1:8,rep(0.75,8),col=adjustcolor(cb8, alpha.f = 0.3), pch=19,cex=2) > > On 2023-07-23 2:15 p.m., Nick Wray wrote: > > Hello I have a palette vector of colour blind colours

[R] col2rgb() function

2023-07-23 Thread Nick Wray
;) (number 7) I get *col2rgb("#D55E00"* [,1] red213 green 94 blue 0 *points(7,0.25,col=rgb(rgb(213,94,0)),pch=19,cex=2)* gives me an error message and although if I divide through *points(7,0.25,col=rgb(213/307,94/307,0),pch=19,cex=2)* gives me a reddish dot, but

[R] weird things in seqMK() and sqmk()

2023-04-01 Thread Nick Wray
ed these and do they know of any sites with further ifo, as it seems v sparse about these two functions Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.c

[R] seqMK function

2023-03-30 Thread Nick Wray
-value of the changepoint identification which you get with functions ie func$p_value etc ... Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

[R] null in rao.test in R

2023-03-11 Thread Nick Wray
7;m not sure what either of these things mean (not really an R-help question I know) as I've only just begun serious analysis of circular data but I am surprised that this toy data gives a p-value of 1 in each case can anyone cast light on all this? Thanks Nick Wray [[alt

[R] p-value in changepoint package

2023-02-15 Thread Nick Wray
Hello Does anyone know how to get the p values for changepoints in the "changepoint" package? There is guidance in the CRAN vignette https://cran.r-project.org/web/packages/changepoint/changepoint.pdf but I can't make it work to get the p value out... Thanks Nick Wray [[a

[R] Lazy-load corrupt?

2023-02-03 Thread Nick Wray
ans that I have to uninstall my current R and reinstall the latest version - but before I go through all that can anyone confirm that that is indeed what I need to do or is there some other problem? Thanks Nick Wray [[alternative HTML version deleted]] _

Re: [R] Detpack package

2023-02-01 Thread Nick Wray
> What happens when you try detpack::chi2testuniform(...) ? > > > On Wed, Feb 1, 2023 at 6:08 PM Nick Wray wrote: > >> Hello I've successfully installed the package "Detpack" and remembered >> to >> call it via library() But when I try

[R] Detpack package

2023-02-01 Thread Nick Wray
tion and I can't find references to any problems with this package on the net Can anyone cast light on what's happening? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRI

[R] Scrub last query on yamamoto

2023-01-24 Thread Nick Wray
Ach please scrub my last email - I didn't realise that the package name was given without it being expicit in the site quoted Sorry Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] yamamoto

2023-01-24 Thread Nick Wray
Hello I am trying to use the yamamoto function, as given in an example: on this site: R: Yamamoto (r-project.org) but it doesn't seem to give the package when the function comes and it doesn't work in base. I can't actuall

[R] Topological network Map

2023-01-11 Thread Nick Wray
ty to create my first candidate R package? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

[R] getting information out of Rao test output

2023-01-08 Thread Nick Wray
s.character(rao) etc rao<-rao.spacing.test(pi_data,alpha=0.05) ## my input Rao's Spacing Test of Uniformity Test Statistic = 169.6952 Level 0.05 critical value = 155.19 Reject null hypothesis of uniformity-- can't break this down Des anyone know how I could do this? Thanks, Nick Wray

[R] Rate of Reading into R from net

2022-11-14 Thread Nick Wray
ing is two things - a)is the data in fact downloading but it's just taking ages and I need to let it run and go and have a coffee b)is there (I can't find anything) within R which allows me to monitor the progress of the download, if in f

[R] (no subject)

2022-11-06 Thread Nick Wray
hey do about it? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Opening shapefiles in R

2022-10-22 Thread Nick Wray
ordinates. Any suggestions 'd be v welcome Nick On Sat, 22 Oct 2022 at 10:28, Micha Silver wrote: > Hello Nick: > > > First: as Jeff pointed out, you'll probably have better luck posting to > the r-sig-geo list. > > > On 21/10/2022 14:25, Nick Wray wrote: >

[R] Linestring values to vector

2022-10-21 Thread Nick Wray
. Does anyone know how? Thanks, Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] Opening shapefiles in R

2022-10-21 Thread Nick Wray
. and the four suffixes. Just subbing in “rivers” for “21009” in my code above doesn’t work and I can’t find a way of getting into the shapefiles and opening them I'd be grateful if anyone can help me get further with this Thanks Nick Wray [[alte

[R] Reading Text files from UK Met Office into R again...

2022-10-09 Thread Nick Wray
into other formats but nothing seems to work If anyone has any ideas I’d be v grateful Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listin

Re: [R] Reading very large text files into R

2022-09-30 Thread Nick Wray
ht be saved alternately in a > format that can be used without anomalies. > > Avi > > -Original Message- > From: R-help On Behalf Of Ebert,Timothy > Aaron > Sent: Friday, September 30, 2022 7:27 AM > To: Richard O'Ke

Re: [R] Reading very large text files into R

2022-09-29 Thread Nick Wray
u, 29 Sept 2022 at 15:09, Ivan Krylov wrote: > В Thu, 29 Sep 2022 14:54:10 +0100 > Nick Wray пишет: > > > although most lines in the text doc consist of 15 elements, every so > > often there is a sixteenth one and R doesn’t like this and gives me > > an error message

Re: [R] Reading very large text files into R

2022-09-29 Thread Nick Wray
> I had no trouble reading your text snippet with > read.csv(text = > "... your text... ") > > There were 15 columns. The last column was all empty except for the row > containing the "B". > > So there seems to be some confusion here. > >

[R] Fwd: Reading very large text files into R

2022-09-29 Thread Nick Wray
-- Forwarded message - From: Nick Wray Date: Thu, 29 Sept 2022 at 15:32 Subject: Re: [R] Reading very large text files into R To: Ben Tupper Hi Ben Beneath is an example of the text (also in an attachment) and it's the "B", of which there are quite a few scatt

[R] Reading very large text files into R

2022-09-29 Thread Nick Wray
bits of the text file I have already pasted in without laborious scrolling? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

[R] reading text files directly into program from net

2022-09-25 Thread Nick Wray
se I get an error. I can't find an example online which I can tweak to allow me to do this. can anyone help? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see http

[R] removing non-table lines

2022-09-18 Thread Nick Wray
be hard to spot. I can't find anything on the net about this - has anyone else had to deal with this problem and if so do they have any solutions using R? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org maili

[R] opening nimroad tar gz files in R

2022-09-15 Thread Nick Wray
erface. I’ve tried -- read.table (gzfile ("metoffice-c-band-rain-radar_uk_200404062250_1km-composite.dat.gz")) but that just gives a load of error messages and I haven’t found any other way of opening them as .gz files. I’m rather baffled – can anyone make any suggestions?

[R] GIS in R

2022-09-01 Thread Nick Wray
sources of information on GIS processing in R. Does anyone know of any accessible sites or useful texts on GIS processing in R? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] von Neumann/Bartels/Serial Correlation

2022-08-14 Thread Nick Wray
re Cran pages Can anyone point me to where I can find these functions and any info? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/lis

[R] lfstat package

2022-08-11 Thread Nick Wray
lthough i can't find it anywhere but in lfstat thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

[R] bu.test again

2022-06-26 Thread Nick Wray
Hello This is a second message as the first seemed a bit messed up. i will not copy anything into this but just ask the simple question - the function bu.test() in R - does it come in a package because I can't find it anywhere and it doesn't work on base R thanks

[R] Naming files within R code

2022-03-20 Thread Nick Wray
1]) I don't know whether this is possible but if it is I'd be grateful for any pointers Thanks, Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

[R] Rcpp package problems

2021-09-29 Thread Nick Wray
o an endless loop with the red button thing Can anyone help me to sort this? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-

[R] Augmented Dickie-Fuller test

2021-08-26 Thread Nick Wray
Dickey-Fuller = -9.9714, Lag order = 5, p-value = 0.01 alternative hypothesis: stationary Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/li

[R] airGR package

2021-08-19 Thread Nick Wray
ackage and do they have any further examples or just explanatory info which they would be willing to share? Thanks, Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st

[R] Unending loop

2021-07-29 Thread Nick Wray
ouple of months ago) when it gets to the thresh.range line it goes into an unending loop (or something) with the little red Stop button, and just sits there. I have R 4.0.4 on my uni laptop and R 4.0.5 on my own one. Could this be the reason? Thanks, Nick Wray install.packages("extRemes

[R] Puzzled over "partial"

2021-07-26 Thread Nick Wray
o different things in R both described as "partial" but which are actually different entities? Thanks for any elucidation Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE a

[R] Magick Package

2021-06-07 Thread Nick Wray
; the code runs without an error message but it doesn't give the animation sequence you see on the website Any help suggestions appreciated Nick Wray Animation # # Create png files for Binomial distribution png(file="binomial%02d.png", width=600, height=300) n =

[R] DBDA2E-utilities.R file download

2021-05-31 Thread Nick Wray
#x27;t get hold of the utilities file. Does anyone know what I should now do? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

Re: [R] Creating a histogram from a frequency vector

2019-10-09 Thread Nick Wray via R-help
Aargh of course - so obvious I'd completely overlooked that.>. Thanks Nick > On 09 October 2019 at 16:21 Ivan Krylov wrote: > > > On Wed, 9 Oct 2019 16:12:57 +0100 (BST) > Nick Wray via R-help wrote: > > > I have a vector like say 73,53,42,67,41,50 where the

[R] Creating a histogram from a frequency vector

2019-10-09 Thread Nick Wray via R-help
#x27;s, 53 2's etc) of creating a histogram from this data set. Is there one? Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Pasting R code lines into labels

2019-06-07 Thread Nick Wray via R-help
s(x)" > >>>> > >>>> and for the third: > >>>> > >>>>> deparse(f) > >>>> [1] "function (x) " "exp(x) + 1" > >>>> > >>>> > >>>> T

Re: [R] Pasting R code lines into labels

2019-06-06 Thread Nick Wray via R-help
Reference" manual or from suitable tutorials on the web. > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic

Re: [R] Pasting R code lines into labels

2019-06-06 Thread Nick Wray via R-help
rote: > > > > > On Jun 6, 2019, at 11:19 AM, Nick Wray via R-help > > wrote: > > > > Is there any way of taking a line of r code (eg y<-x^2) and pasting that > > line of code, as is, into a label, so that for example I could then have a > >

[R] Pasting R code lines into labels

2019-06-06 Thread Nick Wray via R-help
Is there any way of taking a line of r code (eg y<-x^2) and pasting that line of code, as is, into a label, so that for example I could then have a plot label "Plot of y<-x^2"? Thanks Nick Wray [[alternative HTML version deleted]] _

[R] load.wave

2019-02-02 Thread Nick Wray via R-help
these elements actually stand for? I would have thought that one needed as a minimum both volume and frequency ie a two dimensional vector but as far as I can tell there is only one single vector. I'm aware that this question is pushing the envelope of R help but... Thanks,

[R] load.wave q

2019-02-01 Thread Nick Wray via R-help
Please delete my last question as I have worked out what is going on myself Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

[R] periodicity

2019-01-30 Thread Nick Wray via R-help
I've found references on websites to an R function "periodicity", but there's no such built-in function as far as I can see in R studio. I can't find reference to it being part of any package either. Can anyone help with this? Thanks, Nick Wray [[alterna

[R] Why does R do this?

2019-01-08 Thread Nick Wray via R-help
ly leave the host set unchanged if there are no elements to take out? Any thoughts? Thanks, Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-h

[R] Resetting bin size in histogram having already changed to relative frequencies

2018-08-31 Thread Nick Wray via R-help
this seems horrendously complicated and I wonder whether I am missing something simple Any ideas I would be thankful for Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.

[R] Main label on Cullen and Frey

2018-08-31 Thread Nick Wray via R-help
ata) but it just returns the summary statistics. Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

Re: [R] How long can a csv file label be?

2018-06-27 Thread Nick Wray via R-help
of 4096. If > you are simply writing a file to the current path, it won't make much > difference. > > Jim > > On Thu, Jun 28, 2018 at 8:33 AM, Nick Wray via R-help > wrote: > > Hi For various reasons too dull to go into I have been trying to write csv > > files

[R] How long can a csv file label be?

2018-06-27 Thread Nick Wray via R-help
he maximum pathname is 255 characters but is that the same thing? Thanks if anyone can enlighten me Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

Re: [R] Can't open R files

2018-05-21 Thread Nick Wray via R-help
Oh fab it works! thanks v much i'd never used open file like that before Nick > On 21 May 2018 at 12:24 Duncan Murdoch wrote: > > > On 21/05/2018 7:20 AM, Nick Wray via R-help wrote: > > Hello. I'm not sure whether this is strictly the right forum but here > &

[R] Can't open R files

2018-05-21 Thread Nick Wray via R-help
e way as they simply do on my desktop or old laptop. I'd be grateful for any ideas or pointers Thanks Nick Wray [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.c