Re: [R] How to install R on Linux via source compilation?

2010-10-17 Thread John
On Sunday, October 17, 2010 10:27:48 am noclue_ wrote: How to install R on Linux via source compilation? Has anybody done it? I could not find step by step instructions online. I would appreciate if you could share your experience. If you are new to linux, I would strongly recommend using

[R] Convert data frame entries to numbers

2009-10-19 Thread John
,the_column] - test [2,the_column] without errors. as.numeric(test) yeilds the error object cannot be coerced to type 'double' Thanks! John __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] GLM: Classification problem. Help!

2009-11-18 Thread John
) However, when I run the model on my test data I receive predictions that have continuous values. I.e. if I have the classes 0 and 1 in results I get predictions of 0.234235 and so on. How do I force the output to be just 0 or 1? What am I missing? Thanks! John

[R] Identifying outliers in non-normally distributed data

2009-12-27 Thread John
Hello, I've been searching for a method for identify outliers for quite some time now. The complication is that I cannot assume that my data is normally distributed nor symmetrical (i.e. some distributions might have one longer tail) so I have not been able to find any good tests. The Walsh's

[R] memory management in R

2010-06-16 Thread john
- why the name cons cells for the stack allocation Any help with these would be greatly appreciated. Thanks greatly, John Muller __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Multiple missing values

2010-02-14 Thread John
Does anyone know, or know documentation that describes, how to declare multiple values in R as missing that does not involve coding them as NA? I wish to be able to treate values as missing, while still retaining codes that describe the reason for the value being missing. Thanks John MAcInnes

[R] Error: cannot allocate vector of size 3.0 Gb

2008-03-28 Thread John
, while a Chart attempt in OpenOffice locks up OpenOffice. So, will installation of a 64 bit Operating System, and at least an additional 1GB of RAM suffice to generate memory space for a 3.0 Gb vector, in R? Much appreciated, time to buy a new computer? John

Re: [R] Error: cannot allocate vector of size 3.0 Gb

2008-03-29 Thread John
On Friday 28 March 2008 14:28, Daniel Nordlund wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Sent: Friday, March 28, 2008 12:04 PM To: r-help@r-project.org Subject: [R] Error: cannot allocate vector of size 3.0 Gb Hello, I

[R] Labeling a plot's x-axis with 12 strings, vertically oriented.

2008-05-21 Thread John
(*) Address: 1*** ... Status: Open CR Route To: NCENGR Is there a function to define the x-axis, using the above 12 strings as axis tick labels, from 1 - 12, vertically oriented? Any help would be appreciated, as my current work around is tedious, and not asthetically pleasing. Cheers, John

[R] Hexagon border in plotrix's math2D.plot

2008-10-02 Thread john
appreciate any ideas. Thanks, John -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 __ R-help@r-project.org mailing list https

Re: [R] vectorized sub, gsub, grep, etc.

2008-10-08 Thread john
1.26 system.time( for(i in 1:1) mapply(function(p, r, x) sub(p, r, x, fixed = TRUE), p=patt, r=repl, x=X) ) user system elapsed 1.420.051.47 So much for avoiding loops. John Thaden === At 2008-10-07, 14:58:10 Christos wrote: === John, Try the following

Re: [R] How to convert number (matlab) to date

2011-07-19 Thread John
On Monday, July 18, 2011 05:56:14 peter dalgaard wrote: but even this is dubious, since there is no year 0 AD. In Gregorian and Julian calendars, 1 BC continues directly into 1 AD. Although this seems to be a widely recognized problem, I would argue it is an entirely specious one. It makes

Re: [R] Function gives numeric(0) for every input

2011-11-19 Thread John
Though it seems a pity to even hint, what value have you assigned to phat and what is the value returned when the function runs? On Saturday, November 19, 2011 18:52:20 alex_janssen wrote: Hi, I am trying to code buffons needle in R for a class This is my code w/ output from R, if anyone

Re: [R] how big (in RAM and/or disk storage) is each of these objects in a list?

2011-11-26 Thread John
On Sat, 26 Nov 2011 12:41:08 -0600 Paul Johnson pauljoh...@gmail.com wrote: Greetings, friends (and others :) ) We generated a bunch of results and saved them in an RData file. We can open, use, all is well, except that the size of the saved file is quite a bit larger than we expected. I

Re: [R] Data Analysis for Gas Prices

2011-12-04 Thread John
On Sat, 3 Dec 2011 14:11:39 -0800 (PST) inferno846 robe...@uoregon.edu wrote: ... Also, could anyone help me figure out how to import a data table to R? When I try to create a .txt file from a word document and read it in R, the format of the first column always messes up. Any/all help is

Re: [R] R report generator (for Word)?

2012-01-01 Thread John
On Sun, 1 Jan 2012 09:50:24 -0600 Michael comtech@gmail.com wrote: Happy New Year all! I am looking for a good solution for keeping record of my experiments - could you please help me? If you are working from scripts, which is a very good way to standardize procedures as a work flow

Re: [R] Allow HTML email on R-Help

2012-01-04 Thread John
On Tue, 03 Jan 2012 21:29:57 -1000 Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: It may be mainstream but it really isn't as easy to use or as universally readable as plain text. There are other forums to meet this need, such as stackoverflow.com. It's also a storage hog using several

Re: [R] using deltat parameter in time series in HoltWinters prediction

2012-01-08 Thread John
On Sat, 7 Jan 2012 14:54:30 +0100 Antonio Tirri antonio.ti...@gmail.com wrote: On 7 January 2012 14:34, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: And what did your statistics advisor say? The problem is your understanding of the words 'sampling period'. I don't have a

Re: [R] source and localhost

2011-05-22 Thread John
localhost is the computer you are working at, and the ip assigned to the loob-back interface. This is normally used for testing networking interfaces. That being so, simply using the path to the file on your machine, e.g. /home/username/data/somedata.csv should work much better. JWD

Re: [R] Value of 'pi'

2011-06-03 Thread John
Last line, try but one can't, for Pi is transcendental. On Friday, June 03, 2011 04:12:07 AM Jim Lemon wrote: On 06/01/2011 10:14 AM, baptiste auguie wrote: I propose a Pi Haiku (PIQ), Pi is of certain value, In statistics, invaluable, yet Transcending numerics. How about a pi

Re: [R] plot of tree

2011-06-11 Thread John
On Saturday, June 11, 2011 04:26:44 AM Shuiwang Ji wrote: friends, I need some tool to visualize the results of hierarchical clustering. Specifically, I want to plot it as a radial plot as a phylogenetic tree. In addition, I want to specify the color to each leaf node. I search all

Re: [R] package ReadImages

2013-02-22 Thread John
Petr, Another program that may be useful is ImageJ which has a great many useful analytic plugins. The program is written in Java and it supports a good many different image file formats. You should also be able to use Octave to normalize an image. JWDougherty

Re: [R] Adding a column into the file

2012-06-03 Thread John
On Fri, 1 Jun 2012 09:27:58 -0700 (PDT) pigpigmeow gloryk...@hotmail.com wrote: Dear all, I have a lot of problems on R-programming. for example my csv. file is .. Date wrfRH wrfsolar wrfwindspeed wrfrain wrftd wrfta 21/10/2010 92.97 22.11 53.27 0 1546.337861 61.00852664

[R] Error when attempting to install tkrplot

2012-06-09 Thread John
I am getting following error when attempting to install the tkrplot package. ... gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/tcl8.5 -I/usr/include/tcl8.5 -fpic -O3 -pipe -g -c tcltkimg.c -o tcltkimg.o tcltkimg.c:2:16: fatal error: tk.h: No such file or directory

Re: [R] Error while installing R on RHEL 6

2012-06-18 Thread John
On Mon, 18 Jun 2012 02:26:32 -0700 (PDT) Manish Gupta mandecent.gu...@gmail.com wrote: Hi, I am trying to install R from source and using configure command but gettting one error message. *configure: error: --with-readline=yes (default) and headers/libs are not available* I am

Re: [R] chisq.test

2012-06-27 Thread John
On Wed, 27 Jun 2012 16:58:29 +1200 Rolf Turner rolf.tur...@xtra.co.nz wrote: On 27/06/12 08:54, arun wrote: Hi, The error is due to less than 5 observations in some cells. NO, NO, NO It's not the observations that matter, it is the ***EXPECTED COUNTS***. These must

Re: [R] RedHat Linux intall R failed

2012-07-08 Thread John
The message concerning readline is common in compiling console mode programs. If you search on readline, you'll learn what it does. Since you are compiling source, the header files for the appropriate libraries need to available in the path. You need to install the readline and readline.h files

Re: [R] Poisson Ridge Regression

2012-07-08 Thread John
On Fri, 6 Jul 2012 21:13:32 +0530 umesh khatri khatriumes...@gmail.com wrote: Dear everyone I'm dealing with a problem related to Poisson Ridge Regression. If anyone can help me in this regard by telling if any changes in the source code of glm.fit may help You've posted this problem

Re: [R] Saving R Graph to a file

2012-11-04 Thread John
On Sat, 3 Nov 2012 21:16:49 -0700 (PDT) frespider frespi...@hotmail.com wrote: You're leaving out some critical information like the error messages, if any, you receive. That said, your example won't work properly because it is not properly coded. FI'm sure it gets tiresome being told to read

Re: [R] Saving Splitted Series to Excel via XLConnect

2012-08-08 Thread John
On Wed, 8 Aug 2012 18:06:52 -0300 Henrique Andrade henrique.coe...@gmail.com wrote: Dear Arun, Thanks a lot for your help, but I really need to save the splitted data in a Excel file (xlsx or xls). This is because I will need to make links between different Excel workbooks. As it is your

Re: [R] Basic question -loading data

2012-08-15 Thread John
On Wed, 15 Aug 2012 17:59:53 +1000 Dinuk Jayasuriya dinuk.jayasur...@anu.edu.au wrote: Hi Jeff, Thank you - your comment was much appreciated. I'm now running an ordered probit regression and get the following error: Error in family$linkfun(mustart) : Value 1.125 out of range (0, 1)

Re: [R] twitteR location?

2012-08-15 Thread John
On Wed, 15 Aug 2012 14:52:44 +1000 Sachinthaka Abeywardana sachin.abeyward...@gmail.com wrote: That worked but how do you get the location of one particular tweet. So from that list of 10, say the first tweet, is there a way to say at exactly what location it was tweeted? You are teetering

Re: [R] what's this character?

2012-11-28 Thread John
On Wed, 28 Nov 2012 16:44:59 -0800 (PST) Shi, Tao shida...@yahoo.com wrote: Hi list, I've encounter this problem (see below).  I know it's particularly R-related and it's easy to get by but it still bothers me a lot.  It looks the last character of N.C. is a space to me, but it's

Re: [R] R crashing inconsistently within for loops

2012-12-30 Thread John
On Thu, 27 Dec 2012 22:01:22 -0500 Steve Powers power...@nd.edu wrote: Two points: 1) You don't define crash. Did the script simply hang, did R abruptly cease to run and exit to the OS, did the display freeze, did the OS and machine stop working? Crashing is not explanatory, nor is it

Re: [R] From SPSS Syntax to R code

2011-02-13 Thread John
On Saturday, February 12, 2011 05:08:06 am beky wrote: There is a code from SPSS Syntax do if sub(ATVK,2,2)=01. comp strata=1. else if sub(ATVK,2,2)=05 and sub(ATVK,2,2)=27. comp strata=3. else if sub(ATVK,4,2)20 or sub(ATVK,6,2)20. comp strata=4. else if sub(ATVK,4,2)00. comp strata=2.

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-04 Thread John
On Thu, 3 May 2012 10:50:46 -0800 John Kane jrkrid...@inbox.com wrote: Thanks Jeff and Sarah. I was thinking mainly of using the base path and paste routine which is something I do in Windows It will take me a while to figrue out relative paths. Relative paths are not a mystery

Re: [R] Help with writing data to csv

2012-05-13 Thread John
On Sat, 12 May 2012 13:33:19 -0700 (PDT) DL chombito...@hotmail.com wrote: I am trying to write data to csv but I am having issues with the separations. Basically I have some results that I get with R that I copied and pasted into word and then saved as .txt I want to write the results

Re: [R] Runs up and runs down test

2012-05-19 Thread John
is commonly used for testing pseudo-random number generators and in simulations.  John C. Davis describes its use in geology in his book on geological statistics (2002).  Having searched the full site, I can locate only the runs.test() in the tseries package. See the Runs test in the *Dieharder

[R] Can R read Word fonts and comments?

2016-06-28 Thread John
Word, but don't know which one is able to do it. Thanks, John [[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

Re: [R] Can R read Word fonts and comments?

2016-07-05 Thread John
bears its own implication. Thanks! John 2016-07-05 10:03 GMT-07:00 boB Rudis <b...@rudis.net>: > I'll dig into that (was hoping the small feature addition wld cause > enhanced feature requests :-) > > On Tue, Jul 5, 2016 at 1:02 PM, John <miao...@gmail.com> wrote: >

Re: [R] Can R read Word fonts and comments?

2016-07-05 Thread John
you let the function output the above text (with the comments, of course), which you highlighted for comment? Thanks, John 2016-07-02 14:12 GMT-07:00 boB Rudis <b...@rudis.net>: > I just added `docx_extract_all_cmnts()` (and a cpl other > comments-related things) to the dev

Re: [R] Can R read Word fonts and comments?

2016-07-01 Thread John
Yes, I have done some search (e.g., tm, markdown, etc), but I can't find this function. If you know any package that works for this purpose, that would be quite helpful. Thanks, John 2016-06-28 16:50 GMT-07:00 Bert Gunter <bgunter.4...@gmail.com>: > Did you try searching before pos

[R] ggplot2: geom_segment does not produce the color I desire?

2016-09-16 Thread John
Hi, I have a dataset "test". I try to produce a "green" arrow but it gives a "red" arrow (as attached). Could someone tell me how I can fix it? Thanks, > test dateco y1 y2 5 2011-11-28 green 196.6559 1.600267 > dput(test) structure(list(date = structure(15306, class =

[R] Return the indices of rows of a data frame

2016-09-19 Thread John
Hi, I have the following dataframe: > temp<-data.frame(a=c(1,1,2), b=2:4, c=1:3) > row.names(temp)<-c("D", "E", "F") > temp a b c D 1 2 1 E 1 3 2 F 2 4 3 I would like R to tell me which rows has value "a" equal to 1. The answer is the first row and the second row, or row D and row E.

[R] Replace a dot in a string (".") with a space (" ")

2016-11-18 Thread John
Hi, Is there any function that replaces a dot with a space? I expect "c t" from the output of the second call of function sub, but it did not do so. > sub("a", "b", "cat") [1] "cbt" > sub(".", " ", "c.t") [1] " .t" Thanks! [[alternative HTML version deleted]]

[R] value matching %in% for a number pair

2016-11-12 Thread John
set of value pairs”? For example, can we test whether the pair (2,3) is identical to one of the pairs in the set S={(1,2), (4,3), (3,3), (2,3), (4,5)}? In this case, the answer is yes because the 4th element of S is (2,3). Is there any simple way to code it? Thanks! John [[alternative

Re: [R] R hangs on startup

2017-04-03 Thread John
On Sun, 2 Apr 2017 21:30:54 + Vineet Gupta wrote: > Hi, > > I have been struggling with this problem with for 2 weeks, but have > yet to find a solution on Google. > > I am running R 3.3.3 on Windows 10. For the past 2 weeks, when I open > R (and RStudio), the R

Re: [R] R hangs on startup

2017-04-04 Thread John
On Mon, 3 Apr 2017 18:06:06 +0100 "Vineet Gupta" <vineetgupta...@gmail.com> wrote: > John, > > R does not work properly, outside of RStudio. > > Vineet > That is what I thought you might be saying. Does it work outside if RStudio is not loaded? Windo

Re: [R] The R-help community list was started on this day 20 years ago

2017-04-02 Thread John
On Sat, 1 Apr 2017 11:19:07 -0700 Henrik Bengtsson wrote: > Today, it is been 20 years since Martin Mächler started the R-help > community list (https://stat.ethz.ch/pipermail/r-help/). The first > post was written by Ross Ihaka on 1997-04-01: > > Subject: R-alpha:

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-19 Thread John
On Wed, 19 Apr 2017 15:57:42 -0400 BR_email wrote: > Henrik: > Your points are well taken. > My biggest mistake was that I thought my question was an easy one. > But as you rightly stated, I did not explicitly provide my background. > I assumed my question implied how much I

Re: [R] A problem with order() function in R

2017-07-17 Thread John
On Tue, 18 Jul 2017 09:58:19 +0700 Jesadaporn Pupantragul wrote: > Hello r-help > I am learning R and use R-studio. > I create vector x <- c(19,17,23,11) and use function order(x). > The result show [1] 4 2 1 3. Why it doesn't show [1] 3 2 4 1. > Follow picture that i

[R] Extraneous full stop in csv read

2017-06-28 Thread John
I ran into a puzzling minor behaviour I would like to understand. Reading in a csv file, I find an extraneous "." after a column header, "in" [short for "inches"] thus, "in.". Is this due to "in" being reserved? I initially blamed this on RStudio or to processing the data through LibreCalc.

[R] "XLConnect" packages; Excel dates read incorrectly

2017-09-22 Thread John
Hi, I tried to read xlsx files by "XLConnect" packages, but the dates are one day earlier than it is supposed to be. I moved from California to Taiwan (Eastern Asia), and it worked well in California, but not in Taiwan. Even if I adjust my Mac time to California time zone, it gives the wrong

Re: [R] [FORGED] can't print ggplot with Chinese characters to pdf files

2017-10-15 Thread John
a/bin/port" How should I do it? Thanks, John *** Last login: Sun Oct 15 02:52:49 on console Johns-MacBook-Pro:~ john$ /opt/local/bin/port ; exit; MacPorts 2.4.2 Entering shell mode... ("help" for help, "quit" to quit) [Users/john] > sudo port inst

[R] Time series: xts/zoo object at annual (yearly) frequency

2017-10-06 Thread John
sed object > a<-xts(x=c(2,4,5), order.by=1991:1993) Error in xts(x = c(2, 4, 5), order.by = 1991:1993) : order.by requires an appropriate time-based object How should I do it? I know that to do for quarterly or monthly time series, we use as.yearqtr or as.yearmon. What abo

[R] ggplot / second axis / just a notation problem

2017-10-17 Thread John
- p + scale_y_continuous(sec.axis = sec_axis(~.*5, name = "Relative humidity [%]")) # Note "~.*5" What can I do if the transformation is given by y1=y2-3 or y1=y2/5? Should I write "~.-3" or "~./5"? Thanks, John

Re: [R] dual y-axis for ggplot

2017-10-12 Thread John
Thanks, Eric! It works well. 2017-10-12 9:13 GMT-07:00 Eric Berger <ericjber...@gmail.com>: > Hi John, > You can try the following: > > override.linetype=c("twodash","solid") > p <- ggplot(obs, aes(x = Timestamp)) > p <- p + geom_line(

[R] can't print ggplot with Chinese characters to pdf files

2017-10-12 Thread John
I install the Chinese font "Kaiti TC" on my mac, but I can't print the figures to pdf file by "marrangeGrob" command, which is in the package "gridExtra". Error message after I type "ggsave(..)" (last line of the program): "Saving 7.47 x 5.15 in image Error in grid.Call.graphics(L_text,

Re: [R] "XLConnect" packages; Excel dates read incorrectly

2017-09-23 Thread John
Hi, Thank you for all your responses. For Eric, The files are attached. (I believe it was also attached in my first message) For David, Could you send me the link regarding possible solutions or a more comprehensive description of the problem? Thanks, John 2017-09-23 22:29 GMT-07

[R] rename multiple files by file.rename or other functions

2017-09-28 Thread John
in one folder and write an R code in that folder, how can it be done? Thanks, John [[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

Re: [R] "XLConnect" packages; Excel dates read incorrectly

2017-09-24 Thread John
[1] "2017-09-24 00:41:32 PDT" If it worked as it did yesterday, then system time should return "2017-09-24 15:41:32 CST". 15:41:32 is my local time (In Taiwan, same time zone as Singapore, China, and Malaysia), but CST is a time zone int the US. John 2017-09-24 0:19 GMT-07:00 Eri

Re: [R] about multi-optimal points

2017-08-26 Thread John
On Sat, 26 Aug 2017 12:38:35 -0600 lily li wrote: > Hi Ulrik, > > Thanks for your suggestion, but it was not what I meant. I tried to > use the rPref package but just got a very small sample and felt > clueless. > Lily, It would help if you could provide some additional

Re: [R] Connect to postgreSQL

2017-08-26 Thread John
On Sat, 26 Aug 2017 18:35:31 -0700 Ira Sharenow via R-help wrote: Can you access the postgres database through psql or some other route? Also, do you require a password to access the database from these alternatives? JWDougherty

[R] dual y-axis for ggplot

2017-10-12 Thread John
re [°C]", x = "Date and time", colour = "Parameter") p <- p + theme(legend.position = c(0.8, 0.9)) p Thanks, John [[alternative HTML version deleted]] __ R-help@r-project

Re: [R] dual y-axis for ggplot

2017-10-12 Thread John
legends (one with blue/red,solid, the other with two dash/solid, black ). How can I have only one legend with blue/two dash and red/solid? 2017-10-12 0:06 GMT-07:00 John <miao...@gmail.com>: > Hi, > >To my knowledge, an excellent of ggplot with a second y-axis i

Re: [R] ggplot / second axis / just a notation problem

2017-10-17 Thread John
Yes, I did. I should have posted the results here. "~./5" works, but "~.-3" does not. Multiplication and division should work; I am wondering how I should present the plus and the minus in this context. Thanks, John 2017-10-17 2:47 GMT-07:00 Eric Berger <ericjber...

Re: [R] Problem Subsetting Rows that Have NA's

2017-10-25 Thread John
On Tue, 24 Oct 2017 15:05:01 -0400 BooBoo wrote: > This has every appearance of being a bug. If it is not a bug, can > someone tell me what I am asking for when I ask for "x[x[,2]==0,]". > Thanks. > As others have pointed out not a bug, but very "unintuitively"

Re: [R] Exporting to text files

2018-05-19 Thread John
On Fri, 18 May 2018 11:47:25 -0500 Ed Siefker wrote: > I have dose response data analyzed with the package 'drc'. > 'summary(mymodel)' prints my kinetic parameters. I want > that text in an ASCII text file. I want to get exactly what I > would get if I copied and pasted

[R] legend order in ggplot2

2018-05-21 Thread John
Hi, I'd like to graph three lines on ggplot2 and I intend the lines to be "solid", "dashed", and "dotted". The legend names are "name_b", "name_a", "name_c". I'd like to legend to present in the order: the "name_b" at the top, and "name_c" at the bottom. As a consequence, the legend is indeed

Re: [R] find the permutation function of a sorting

2018-05-23 Thread John
> > y <- c("D","E", "F")[i] > y > #[1] "E" "D" "F" > > # This will give you the inverse, > # just apply order() to the output of order(), > # function order() is its own inverse > > y[ order(i) ] > #[1] "D&

[R] Change the legend order by order function

2018-05-23 Thread John
Hi, I'd like to graph three lines on ggplot2 and I intend the lines to be "solid", "dashed", and "dotted". The legend names are "name_b", "name_c", "name_a". I'd like to legend to present in the order: the "name_b" at the top, and "name_a" at the bottom. Could it be done by order function

[R] find the permutation function of a sorting

2018-05-22 Thread John
t;)) [1] "ac" "bc" "dd" I try to find it in the permutations/permute package, but I can't find it John [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://

Re: [R] find the permutation function of a sorting

2018-05-22 Thread John
"F")? so that the result is c("E","D", "F"). 2018-05-23 11:06 GMT+08:00 David Winsemius <dwinsem...@comcast.net>: > > > > On May 22, 2018, at 10:57 PM, John <miao...@gmail.com> wrote: > > > > Thanks, David. > > I

Re: [R] legend order in ggplot2

2018-05-22 Thread John
Hi, I ran your code, but the results were not as expected. After I ran the code by "source", it return No id variables; using all as measure variables > p2 and no line or legend is on the graph (as attached) Am I doing anything wrong? John library(ggplot2) library(

Re: [R] find the permutation function of a sorting

2018-05-22 Thread John
Winsemius <dwinsem...@comcast.net>: > > > > On May 22, 2018, at 10:06 PM, John <miao...@gmail.com> wrote: > > > > Hi, > > > > Is there any way to find the permutation function of the sorting and to > > apply the function (or its inverse) elsew

Re: [R] OT --- grammar.

2018-06-25 Thread John
On Mon, 25 Jun 2018 09:46:07 +1200 Rolf Turner wrote: > Does/should one say "the degrees of freedom is defined to be" or "the > degrees of freedom are defined to be"? > I've leaned to differentiating between one degree of freedom and multiple degrees of freedom and, when needed, phrase what I

Re: [R] OT --- grammar.

2018-06-25 Thread John
On Sun, 24 Jun 2018 20:16:24 -0400 JRG wrote: > On 06/24/2018 08:03 PM, Bert Gunter wrote: > > Ted, et. al.: > > > > Re: "Data is" vs "data are" ... Heh heh! > > > > "This is the kind of arrant pedantry up with which I will not put." > > (Attributed to Churchill in one form or another, likely

Re: [R] [FORGED] can't print ggplot with Chinese characters to pdf files

2017-10-19 Thread John
nction(.x) p[.x][[1]]) m2 <- marrangeGrob(p_series, nrow=2, ncol=1) #ggsave("test_plot_chinese.pdf", m2) cairo_pdf("test_plot_chinese.pdf") print(m2) dev.off() 2017-10-12 19:55 GMT-07:00 Paul Murrell <p...@stat.auckland.ac.nz>: > Hi > > By the looks of i

Re: [R] how to search r-help?

2018-01-19 Thread John
On Fri, 19 Jan 2018 10:47:56 -0800 Mark Dwyer via R-help wrote: > I am new to this listand am unable to get the search tools listed on > https://stat.ethz.ch/mailman/listinfo/r-help towork. What do people > use to search the help archives? > > 1. The google search box on

Re: [R] Portable R in zip file for Windows

2018-01-26 Thread John
On Thu, 25 Jan 2018 20:04:33 + Juan Manuel Truppia wrote: > What is wrong with you guys? I asked for a zip, like R Studio has for > example. Totally clear. > I cant execute exes. But I can unzip files. > Thanks Gabor, I had that in mind, but can't execute the exe due to

Re: [R] New post for Rhelp

2018-08-01 Thread John
On Wed, 1 Aug 2018 17:40:54 +0200 Edoardo Silvestri wrote: > I have a database based on hourly data and I need to forecast next > 24h of a single variable. I was thinking about applying an ARIMA > model with some exogenous variables but I don't succeed to configure > the hourly frequency,

[R] F-test where the coefficients in the H_0 is nonzero

2018-08-02 Thread John
. Is there any function in R that deal with the case where the coefficients are nonzero? John [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] F-test where the coefficients in the H_0 is nonzero

2018-08-09 Thread John
Linear hypothesis test > > Hypothesis: > (Intercept) = 0 > x = 1 > > Model 1: restricted model > Model 2: y ~ x > > Res.Df RSS Df Sum of Sq F Pr(>F) > 1 10 10.6218 > 2 8 9.0001 21.6217 0.7207 0.5155 > > > Jan > > From: R

Re: [R] Ordering of facet_wrap() panels

2018-08-15 Thread John
On Wed, 15 Aug 2018 07:21:55 -0700 Stats Student wrote: > Hi, I am generating multiple charts with facet_wrap() and what what I > see, R/ggplot sorts the panels by the facet variable. So adding an > index to the facet variable (1 - bucket, 2 - bucket, etc) does solve > the sorting issue but it's

Re: [R] linear regression

2018-08-07 Thread John
On Mon, 6 Aug 2018 20:18:38 +0200 kenneth Barnhoorn wrote: Your examples did not appear. Remember to use plain text rather than html. JWDougherty > I have a problem with a linear regression output. > > In January I made an analysis of some data and received an certain > output, if I run the

[R] The auto.arima function in forecast package

2018-08-10 Thread John
Hi, I am wondering if I am doing correctly, but my auto.arima usually (if not always) give me (0,1,0), whatever portion of the series I take. In the following instances, only the last one yields ARIMA(0,1,1), and all the other cases yield ARIMA(0,1,0). I would like to do forecast based on

[R] Time series analysis: Granger causality with error-correction term

2018-08-21 Thread John
the error correction term (x_{t-1}-y_{t-1}) and exogenous variable. Thank you very much!! John [[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] [FORGED] Main label on Cullen and Frey

2018-08-31 Thread John
On Sat, 1 Sep 2018 11:04:28 +1200 Rolf Turner wrote: > On 08/31/2018 11:42 PM, Nick Wray via R-help wrote: > > > ... Does anyone know how to modify the main label when you plot a > > Cullen & Frey (sounds like an Oxford gentleman's outfitters - > > statistically significant waistcoats a

Re: [R] R and Java 10 ➜ rJava not able to build

2018-03-31 Thread John
On Tue, 27 Mar 2018 22:25:33 +0300 Luis Puerto wrote: I don't run a Mac so this may not help. Did you install java 10 as user or as root? Using linux, applications installed as user will be inserted into your user space under /home/. As root the application will

[R] SVAR: error message

2018-10-22 Thread John
Hi, I have a bi-variate VAR model and would like to convert it to SVAR but get an error message. Could someone pinpoint anything wrong and correct my code? Thanks, John amat <- matrix(c(NA, 0, NA, NA), nrow = 2, ncol = 2, byrow = TRUE) df1<-data.frame(x=c(1,4,5,6,7,8,9,3,5,3

[R] Granger causality: lag selection

2018-11-02 Thread John
Hi, I see an R user chooses the lag of Granger causality by finding out the lag for the most significant result https://www.r-bloggers.com/granger-causality-test/ Is it generally legitimate to do so, without determining the lag first by AIC or BIC? Thanks, John

Re: [R] SVAR: error message

2018-10-23 Thread John
ot; > > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Mon, Oct 22, 2018 at 8:15 PM, John wrote: > >> Hi, >> >> I have a bi-variate VAR model and would like to convert it to SVAR but >> get an error message. Could someone pinpoint anythin

Re: [R] Use ggplot to create a state map with counties and county names as labels

2018-09-21 Thread John
On Fri, 21 Sep 2018 18:17:10 + Thomas MacFarland wrote: > Everyone: > > Using multiple resources I've been able to create a state (Kentucky) > map that shows all 120 counties, with two selected counties > highlighted in red. > > Fine, except - I also want to show the names of the two

Re: [R] Problem with Kruskal–Wallis test

2018-12-26 Thread John
On Fri, 21 Dec 2018 16:37:54 +0100 Giuseppe Cillis wrote: > Dear all, > I am a beginner with R (and also with the statistics) for which I > hope to be clear. > I should do this non-parametric test on data I extracted from maps. > In practice I have a column that represents the landscape Dynamics

[R] geom_ribbon function in ggplot2 package

2018-12-18 Thread John
Hi, When using the geom_ribbon function in gglot2 package, I got the text "fill" above the legend "A" and "B". How can I get rid of the text "fill" above the legend? Thanks! The code is as follows: df<-data.frame(x=c(1,2), y=c(1,2), z=c(3,5)) > ggplot(df,

Re: [R] geom_ribbon function in ggplot2 package

2018-12-19 Thread John
Thanks, Eik! Eik Vettorazzi 於 2018年12月19日 週三 下午5:12寫道: > Hi, > just add +scale_fill_discrete(name=NULL) > > Cheers > > Am 19.12.2018 um 07:05 schrieb John: > > Hi, > > > > When using the geom_ribbon function in gglot2 package, I got the text > > &q

[R] lag function row name with

2019-03-25 Thread John
Hi, I have a dataset whose row names corresponds to months. When I apply lag function (dplyr package) on this dataset, I get NAs with warning messages. Is there any lag function that carries out the lag but keep the row names? I will have two datasets. The dates of the datasets are not

Re: [R] Replacing each NA with the most recent non-NA prior to it

2019-02-26 Thread John
Thanks! That works!! Duncan Murdoch 於 2019年2月27日 週三 下午12:06寫道: > On 26/02/2019 10:34 p.m., John wrote: > > If I use the na.locf function to replace each NA with the most recent > > non-NA prior to it, then > > > >> na.locf(c(NA,NA,1,4,NA,2)) > > [1] 1 1 1

[R] Replacing each NA with the most recent non-NA prior to it

2019-02-26 Thread John
=FALSE) Error in na.locf(c(NA, NA, 1, 4, NA, 2), na.rm = FALSE) : unused argument (na.rm = FALSE) > na.locf(c(NA,NA,1,4,NA,2), na.rm=TRUE) Error in na.locf(c(NA, NA, 1, 4, NA, 2), na.rm = TRUE) : unused argument (na.rm = TRUE) Thank you very much! John [[alternative HTML versio

[R] The function sink() --delete everything before printing by "sink()"

2019-05-05 Thread John
I use the functions "sink" and "print" to print the results to a txt file. May I delete everything in the txt files before it start to print to the txt file? Thanks! ### sink(file_output.txt")) for(i in c("a", "b")) { for(j in c("c", "d")) { { print(c(i,j))

  1   2   3   4   5   6   7   8   9   10   >