[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
Thanks v useful to know Nick On Sun, 23 Jul 2023 at 21:13, Achim Zeileis wrote: > Just one addition which may or may not be useful: The color palette you > use is also known as "Okabe-Ito" and it is the default set of colors in > the palette.colors() function. This function a

Re: [R] col2rgb() function

2023-07-23 Thread Nick Wray
Thanks That works nicely Nick On Sun, 23 Jul 2023 at 19:26, Ben Bolker wrote: >Does adjustcolor() help? > > cb8<- c("#00", "#E69F00", "#56B4E9", "#009E73","#F0E442", "#0072B2", > "#D55E00", "

[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
I did use "detpack" ie not with a capital detpack::chi2testuniform(vals,0.05) gives this: Error: 'chi2testuniform' is not an exported object from 'namespace:detpack' ?? Thanks Nick On Wed, 1 Feb 2023 at 16:29, Eric Berger wrote: > Detpack or detpack? >

[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
n base. I can't actually find which package (I assume that it is in a package) it is within. I've tried "mediation2 and that doesn't work. Can anyone help? Thanks Nick WQray [[alternative HTML version deleted]] __ R-help@r-projec

[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
Hello I have managed to download and plot the outline for the River Tweed In the Sottish borders) catchment using this code. 21009 is a zipfile downloaded from the FEH website https://fehweb.ceh.ac.uk/Map: require(rgdal) shape <- readOGR(dsn ="C:/Users/nick/Desktop/PhD Oct 22", l

[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
tanding of R than I do however and an education in itself... Nick On Fri, 30 Sept 2022 at 20:16, wrote: > Tim and others, > > A point to consider is that there are various algorithms in the functions > used to read in formatted data into data.frame form and they vary. Some do > a >

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

2022-09-29 Thread Nick Wray
Hello Ivan's suggestion of fill=T seems to do the trick. Thanks to everyone who piled in - I'm rather touched by the support seeing as this was causing me a big headache with furthering my project. I also feel humbled by realising how little I know about the R-universe... Nick On Th

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

2022-09-29 Thread Nick Wray
Hi Bert Right Thing is, I didn't know that there even was an instruction like read.csv(text = "... your text... ") so at any rate I can paste the original text files in by hand if there's no shorter cut Thanks v much Nick On Thu, 29 Sept 2022 at 16:16, Bert Gunter wrote:

[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
Wow! I hadn't meant to set off such an email flurry... Tbh all I wanted to do was to label some plots for my own recording and notes so Bert's idea was more than adequate. On the other hand it's instructive to venture further into the R-universe in such distinguished company..

Re: [R] Pasting R code lines into labels

2019-06-06 Thread Nick Wray via R-help
Thanks Bert, that is exactly what I wanted. I think that you meant plot(z,y... in the last line? Nick > On 06 June 2019 at 17:13 Bert Gunter wrote: > > ... and if you wanted too streamline the process, something like the > following could be encapsulated in a function:

Re: [R] Pasting R code lines into labels

2019-06-06 Thread Nick Wray via R-help
What I am after is a way of running these functions and then calling each one into the labelling for the appropriate graph as I plot it. So then I would have something like mainlab<-paste("Plot of ",function in question) ...? Thanks Nick > On 06 June 2019 at 16:40 Marc Schwartz w

[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
Thanks Jim > On 27 June 2018 at 23:48 Jim Lemon wrote: > > > Hi Nick, > You are probably using Windows, for which the maximum path length is > claimed to be 260 characters. The most common alternative, Linux, has > a maximum filename length of 255 and a maximum path length

[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

[R] Data Table Merge Help

2018-02-01 Thread Graeve, Nick
Hello I'm not sure if this is an appropriate use of this mailing list or not, please let me know if it isn't.  I'm struggling to figure out how to merge two data tables based on max effective date logic compared to when a payment occurred.  My dtDistributions DT is a transactional dataset while

[R] using randomForest() with matrix() as input results to an Error: protect(): protection stack overflow

2018-01-31 Thread Nick Fikas
Hello, I'm trying to figure out a solution online but couldn't so far. I realized that others dealt with such an error but their suggestions didn't work for me. So, I'm trying to run the randomForest() using this command: rf = randomForest(classes~., data=as.matrix(train), mtry=5, ntree=2000, im

Re: [R] Resample with replacement to produce many rarefaction curves with same number of samples

2016-09-07 Thread Nick Pardikes
l=F, col=rgb(0, 0, 1, 0.1)) However, I like what you did to the rrarefy function to add the sample with replacement option. On Wed, Sep 7, 2016 at 8:17 AM, Luisfo wrote: > Hi Nick, > > If you use the following > raredata <- rarecurve(rrarefy(netdata, sample=100), label=F,

[R] Resample with replacement to produce many rarefaction curves with same number of samples

2016-09-07 Thread Nick Pardikes
number of samples. Thank you in advance for your help and suggestions. Cheers, Nick -- Nick Pardikes PhD Candidate Program in Ecology, Evolution, and Conservation Biology University of Nevada *https://nickpardikes.wordpress.com/ <https://nickpardikes.wordpress.com/>* nickpar

[R] Resample with replacement to produce many rarefaction curves with same number of samples

2016-09-07 Thread Nick Pardikes
number of samples. Thank you in advance for your help and suggestions. Cheers, Nick -- Nick Pardikes PhD Candidate Program in Ecology, Evolution, and Conservation Biology University of Nevada https://nickpardikes.wordpress.com/ nickpardi...@gmail.com rarefaction.pdf Description: Adobe PDF

[R] Resample with replacement to produce many rarefaction curves with same number of samples

2016-09-07 Thread Nick Pardikes
size and number of samples. Thank you in advance for your help and suggestions. Cheers, Nick -- Nick Pardikes PhD Candidate Program in Ecology, Evolution, and Conservation Biology University of Nevada https://nickpardikes.wordpress.com/ nickpardi...@

[R] Find mean of values in three-dimensional array

2016-06-15 Thread Nick Tulli
Hey R-Help, I've got a three dimensional array which I pulled from a netcdf file. The data in array are the humidity values of locations in the United States over a time period. The three dimensions are [longitude, latitude, days], 141x81x92. My goal is to find the mean value at each longitude/lat

[R] find longest consecutive streak in double

2016-06-05 Thread Nick Tulli
Hey guys. Learning R after gaining a background in Python this year, and I'm translating my Python projects to R now. This is the first time I'm posting to the mailing list. Essentially, I have 92 data points in one double that I created from a netcdf file. Those 92 data points represent a measure

[R] frequency tables

2015-09-09 Thread Nick Petschek
Hi, I want to run frequency tables for multiple categorical variables, ideally one in %, and the other as a count, and am unsure how to proceed. I would like my output to be the following: | favorable | unfavorable | neutral Q1 | 80% | 10%| 10% | Q2 | 70% |

Re: [R] Composite index reliability questions - cronbach()

2015-09-05 Thread Nick Petschek
Thanks, Jim! The lack of quotes was a typo, but what was not was my forgetting to include the "c(" function... Thanks! On Sat, Sep 5, 2015 at 7:23 AM, Jim Lemon wrote: > Hi Nick, > If you haven't just made a typo on your example in QUESTION 2, the "This &

[R] Composite index reliability questions - cronbach()

2015-09-04 Thread Nick Petschek
ion of the variable? For example: This works: *cronbach(jdc[,1:3])* This doesn't:* cronbach(jdc[Q1, Q2, Q3])* Thanks in advance for any insights, answers, words of encouragement, or alternate ways I could solve this puzzle. Nick [[alternative HTML version deleted]] __

[R] Mantel test

2015-05-04 Thread Nick Jeffery
ts in R but the genetic distances output by MEGA are already in 'matrix' format so I don't know how to load this CSV file into R without it calculating new genetic distances when I convert it to the dist form required by the test. Thanks in advance, Nick -- Nick Jeffery, PhD Cand

Re: [R] Run Rscript and ignore errors?

2015-04-26 Thread Nick Matzke
On Sun, Apr 26, 2015 at 1:39 PM, Adams, Jean wrote: > Nick, > > I don't know of a way to do what you want ... tell R to ignore all errors > ... but, I do have a suggestion. > > Since you regard these errors as "non-essential", why not edit your code > to re

Re: [R] run Rscript and ignore errors?

2015-04-24 Thread Nick Matzke
it would be better to write code good n stuff, but for quick and dirty things this is handy.) Cheers! Nick On Fri, Apr 24, 2015 at 10:06 AM, Jue Lin-Ye wrote: > Jeff Newmiller dcn.davis.ca.us> writes: > > > > > This seem

[R] Run Rscript and ignore errors?

2015-04-23 Thread Nick Matzke
est of the script keeps running. Thanks very much for any help!! Cheers! Nick [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

[R] run Rscript and ignore errors?

2015-04-23 Thread Nick Matzke
est of the script keeps running. Thanks very much for any help!! Cheers! Nick [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

[R] Removing 99% similar sequence help

2015-02-04 Thread Nick Jeffery
oesn't allow me to set the 99% parameter. This is because I'm building a phylogeny with tons of nearly identical sequences so I want to reduce the number of individuals. Thanks for any help and suggestions, Nick -- Nick Jeffery, PhD Candidate Integrative Biology SCIE 1453 University of Gu

[R] Predicting Smooths of Vectors in MGCV

2015-01-21 Thread Nick Jacobson
e GAM. I'm not sure how the data matrix is supposed to be set up. I searched the MGCV documentation and I also searched the forums and google, but I was unable to find an example of someone making predictions from smooths of vectors. I would appreciate any help! Thanks! Nick -- Nicholas C. Jac

[R] optimize

2014-10-01 Thread Nick gayeski
Page 53 of Robert and Casella's "Use R" book, Introduction to Monte Carlo Methods with R, has the following code: optimize(f=function(x){dbeta(x,2.7,6.3)}, + interval=c(0,1) ,max=T)$objective This should return [1] 2.669744 I run R from R Studio. When I enter this code I receive the

Re: [R] Question regarding the discrepancy between count model parameter estimates between "pscl" and "MASS"

2014-08-29 Thread Nick Livingston
R version 3.0.3) I received the same message when attempting to install it in version 3.1.0, and the latest version, 3.1.1. Am I missing something? Thank you again. I appreciate your input. -Nick On Fri, 8/29/14, Achim Zeileis wrote: Subje

[R] Question regarding the discrepancy between count model parameter estimates between "pscl" and "MASS"

2014-08-28 Thread Nick Livingston
I have sought consultation online and in person, to no avail. I hope someone on here might have some insight. Any feedback would be most welcome. I am attempting to plot predicted values from a two-component hurdle model (logistic [suicide attempt yes/no] and negative binomial count [number of att

[R] R CMD BATCH *without* saving output

2014-07-24 Thread Nick Matzke
print options that I can turn off, but I would rather be lazy. So, is there a way to run R CMD BATCH or something similar, and NOT print the output to screen or to the .Rout file? I tried: R CMD BATCH --no-save , but that still seems to save the the screen output etc. to .Rout. Thanks,

Re: [R] R CMD BATCH *without* saving output

2014-07-24 Thread Nick Matzke
.g. errors/warnings) sink(file=con, type="message") At the end of the script: # Turn off output sink sink() # Turn off message sink sink(type="message") # Close connection to black hole close(con) On Thu, Jul 24, 2014 at 12:27 PM, Nick Matzke wrote: > > On Thu, J

Re: [R] R CMD BATCH *without* saving output

2014-07-24 Thread Nick Matzke
On Thu, Jul 24, 2014 at 12:16 PM, Nick Matzke wrote: > Hi all, > > Hi have a series of scripts that print a lot of notes etc. to screen. I > have to run them on a massive set of input files. The scripts are > self-contained and save the important output to data files in an orga

[R] Using external SQLite installation for RSQLite in Windows?

2014-07-01 Thread Nick Eubank
idual processes to ~1900mb. The 32 bit build of sqlite3 still uses the variable types that can only cover 2gb of ram, so even on a 64 bit machine, 32bit sqlite3 can't allocate more than 2gb of ram, which has a huge effect on performance. So I'm trying to connect to a 64 bit build. ) T

[R] RSQLite -- Stopping / Aborting Queries and Data Integrity

2014-06-29 Thread Nick Eubank
to make sure when I abort a query I'm not doing something to endanger data integrity (especially since RSQLite defaults to syncronization =OFF). Thanks Nick ___ Nick Eubank | Political Economy PhD Candidate Stanford University GSB www.nickeubank.com ni

[R] HAC standard errors

2014-06-02 Thread Nick Pretnar
Hello, I am having a great amount of difficulty running a simple linear regression model with entity and time fixed effects and HAC standard errors. I have a data set with 3 million observations and 30 variables. My data is structured as follows: NAMESTATE YEARY X1 X2 1

[R] Mixed Effects MANOVA

2014-04-03 Thread Nick Negovetich
Greetings, I have a question regarding data analysis of habitat use of animals. These animals were radio collared and tracked periodically throughout the year. When they were sighted/detected, the habitat type was marked. Our dataset recorded the sex of the animal, and we know the data whe

[R] Determining Total Number of Multiple Comparisons

2014-03-14 Thread Nick Negovetich
Greetings, I'm running a series of Chi-square tests to examine differences across categorical variables. The situation is this: I have three variables: sex (M/F), habitat (5 levels), season (W,Sp,Su,F). A Cochran-Mantel-Haenzel test detects non-indepedence across my sex strata. I then sub

Re: [R] if else in R

2013-11-19 Thread Nick Matzke
Hi, This would be an issue with if() as well as if/else. ab$b has 4 numbers in it, so ab$b > 0 evaluates to "TRUE TRUE FALSE TRUE" or whatever. if() can only take a single true or false. Cheers! Nick On Tue, Nov 19, 2013 at 8:30 PM, Gary Dong wrote: > Dear R users, > > I

[R] Reading in csv data with ff package

2013-11-18 Thread Nick McClure
I've spent some time trying to wrap my head around reading in large csv files with the ff-package. I think I know how to do it, but am bumping into some problems. I've tried to recreate the issues as best as I can with a smaller example and maybe someone can help explain the problems. The follow

[R] Holt Winters for multiple customers and output with R

2013-11-18 Thread Martin, Nick
So I've been working through the HW work here http://a-little-book-of-r-for-time-series.readthedocs.org/en/latest/src/timeseries.html and have started testing with some "live" customer data. I have a dataset that looks like: CustomerID | Sales 123456 $5,000 123456 $3,455 12

[R] easiest way to put italics words in sentences plotted with text()?

2013-08-09 Thread Nick Matzke
and "Pan" should be italicized, since they are genus names. Is there some sneaky code to insert italics for certain words? I would rather not have to break up the string and plot every word separately, or similar insanity.

  1   2   3   >