search for: mtroyal

Displaying 20 results from an estimated 24 matches for "mtroyal".

2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
...ihui@gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China On Wed, Oct 22, 2008 at 11:15 PM, Natalie O'Toole <notoole@mtroyal.ca> wrote: > > Hi Yihui, > > Thank-you for this information. This is the code I am entering into RWeb > after loading my data file: > > #subset the file to only include certain values: > > test<-subset(X, GRADE == 7 & Y_Q10A < 9) > > #sort the data by...
2017 May 23
2
Inconsistency in handling of numeric input with %d by sprintf
...[1] "1" "NA" So the safest thing is indeed passing the right type, but the behaviour is indeed confusing. I checked this on both Windows and Debian, and on both systems I get the exact same response. Cheers Joris On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca> wrote: > Hi Michael, > > I posted something on this topic to R-devel several weeks ago, but never > got a response. My ultimate conclusion is that sprintf() isn't super > consistent in how it handles coercion: sometimes it'll coerce real to > integer without compla...
2007 Apr 26
4
select if + other questions
Hi, i am trying to read a .txt file, do a couple of select if statements on my data, and then finally use the ?table function to get frequency counts on the data. Specifically, i am looking at answering the following question: What is the frequency of Grade 7 students in the province of Alberta who are smokers? I am having some problems: 1)i cannot get the column names to show up when print
2016 Nov 30
1
problem with normalizePath()
...> From: Martin Maechler [mailto:maechler at stat.math.ethz.ch] > Sent: Friday, November 18, 2016 3:37 PM > To: Evan Cortens > Cc: Laviolette, Michael; r-devel at r-project.org > Subject: Re: [Rd] problem with normalizePath() > > >>>>> Evan Cortens <ecortens at mtroyal.ca> > >>>>> on Thu, 17 Nov 2016 15:51:03 -0700 writes: > > > I wonder if this could be related to the issue that I > > submitted to bugzilla about two months ago? ( > > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159) > >...
2017 May 23
2
Inconsistency in handling of numeric input with %d by sprintf
...deed passing the right type, but the behaviour >> is indeed confusing. I checked this on both Windows and Debian, and on both >> systems I get the exact same response. >> >> Cheers >> Joris >> >> On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca> >> wrote: >> >>> Hi Michael, >>> >>> I posted something on this topic to R-devel several weeks ago, but never >>> got a response. My ultimate conclusion is that sprintf() isn't super >>> consistent in how it handles coercion: somet...
2016 Nov 18
2
problem with normalizePath()
>>>>> Evan Cortens <ecortens at mtroyal.ca> >>>>> on Thu, 17 Nov 2016 15:51:03 -0700 writes: > I wonder if this could be related to the issue that I > submitted to bugzilla about two months ago? ( > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159) > That is to say, could it b...
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi, How are you? I have a quick question.... I have code that works perfectly with R desktop, but does not work with RWeb. Could you please tell me how to modify the code below so it will work with RWeb? #Read in txt file happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1) #Subset the txt file to only include certain values test<-subset(happyguys, GRADE == 7
2017 May 23
0
Inconsistency in handling of numeric input with %d by sprintf
...t; So the safest thing is indeed passing the right type, but the behaviour is > indeed confusing. I checked this on both Windows and Debian, and on both > systems I get the exact same response. > > Cheers > Joris > > On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca> wrote: > >> Hi Michael, >> >> I posted something on this topic to R-devel several weeks ago, but never >> got a response. My ultimate conclusion is that sprintf() isn't super >> consistent in how it handles coercion: sometimes it'll coerce real to &gt...
2016 Nov 30
0
problem with normalizePath()
...orks -----Original Message----- From: Martin Maechler [mailto:maechler at stat.math.ethz.ch] Sent: Friday, November 18, 2016 3:37 PM To: Evan Cortens Cc: Laviolette, Michael; r-devel at r-project.org Subject: Re: [Rd] problem with normalizePath() >>>>> Evan Cortens <ecortens at mtroyal.ca> >>>>> on Thu, 17 Nov 2016 15:51:03 -0700 writes: > I wonder if this could be related to the issue that I > submitted to bugzilla about two months ago? ( > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159) > That is to say, could it b...
2017 May 23
0
Inconsistency in handling of numeric input with %d by sprintf
...but the behaviour >>> is indeed confusing. I checked this on both Windows and Debian, and on both >>> systems I get the exact same response. >>> >>> Cheers >>> Joris >>> >>> On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca> >>> wrote: >>> >>>> Hi Michael, >>>> >>>> I posted something on this topic to R-devel several weeks ago, but never >>>> got a response. My ultimate conclusion is that sprintf() isn't super >>>> consistent in ho...
2017 May 19
2
Inconsistency in handling of numeric input with %d by sprintf
Consider #as.numeric for emphasis sprintf('%d', as.numeric(1)) # [1] "1" vs. sprintf('%d', NA_real_) > Error in sprintf("%d", NA_real_) : invalid format '%d'; use format %f, %e, %g or %a for numeric object > I understand the error is correct, but if it works for other numeric input, why doesn't R just coerce NA_real_ to NA_integer_?
2007 Apr 30
0
thousand separator (was RE: weight)
...nimum of space. > > Yes but I'm an relative newbie at R and didn't realise > that str() would do that. I always thought it was > some kind of string function. > > Thanks, it makes life much easier. > > > > > > > --- Natalie O'Toole <notoole@mtroyal.ca> wrote: > > > > > > > Hi, > > > > > > > > I'm getting an error message: > > > > > > > > Error in df[, 1:4] * df[, 5] : non-numeric > > argument > > > > to binary operator > > > > In addition...
2001 Jan 18
1
Announcement: PRNGD 0.9.0 available
...olaris 2.6: Louis LeBlanc <leblanc at mirror-image.com> Solaris 7: Phil Howard <phil-openssh-unix-dev at ipal.net> NeXTstep 3: Michael Weiser <michael at weiser.saale-net.de> IRIX 6.5: Michael Weiser <michael at weiser.saale-net.de> Tru64: James Bourne <jbourne at MtRoyal.AB.CA> Unixware 7: George Walsh <gjmwalsh at netscape.net> (not finished, yet, fails with "bind(): invalid argument"...) - To port PRNGD to a new platform: * Check out the compiler and flags in Makefile * IMPORTANT: Adjust the path names in config.h, as these files are us...
2007 Apr 27
5
weight
Hi, I have the file below called happyguys. It is a subset of data. How do I apply the weight variable (WTPP) to this file? Can i just multiply each column (except the first column because it is a record id) by WTPP? If the answer is yes, how do I multiply one variable name by another? Thanks, Nat PROV REGION GRADE Y_Q10A WTPP 83 48 4 7 2 342233324020 115
2016 Nov 17
2
problem with normalizePath()
The packages "readxl" and "haven" (and possibly others) no longer access files on shared network drives. The problem appears to be in the normalizePath() function. The file can be read from a local drive or by functions that don't call normalizePath(). The error thrown is Error: path[1]="\\Hzndhhsvf2/data/OCPH/EPI/BHSDM/Group/17.xls": The system cannot find the
2016 Nov 17
0
problem with normalizePath()
I wonder if this could be related to the issue that I submitted to bugzilla about two months ago? ( https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159) That is to say, could it be that it's treating the first path after the single backslash as an actual directory, rather than as the name of the share? -- Evan Cortens, PhD Institutional Analyst - Office of Institutional Analysis
2017 Mar 09
0
Possible issue with coercion in sprintf()?
Dear R-Devel folks, I've just run into what initially struck me as a rather strange result, as follows: > sprintf('%d', c(1.0, NA)) [1] "1" "NA" > sprintf('%d', c(NA, 1.0)) Error in sprintf("%d", c(NA, 1)) : invalid format '%d'; use format %f, %e, %g or %a for numeric objects So if I pass sprintf() a vector of reals and attempt
2017 May 23
0
Inconsistency in handling of numeric input with %d by sprintf
Hi Michael, I posted something on this topic to R-devel several weeks ago, but never got a response. My ultimate conclusion is that sprintf() isn't super consistent in how it handles coercion: sometimes it'll coerce real to integer without complaint, other times it won't. (My particular email had to do with the vectors longer than 1 and their positioning vis-a-vis the format string.)
2007 Aug 15
0
Mann-Whitney U test discrepancies
Hi, I do want to use the Mann-Whitney test which ranks my data and then uses those ranks rather than the actual data. Here is the R code i am using: group1<- c(1.34,1.47,1.48,1.49,1.62,1.67,1.7,1.7,1.7,1.73,1.81,1.84,1.9,1.96,2, 2,2.19,2.29,2.29,2.41,2.41,2.46,2.5,2.6,2.8,2.8,3.07,3.3) > group2<-
2007 Apr 27
0
like SPSS
Hi, I've written code to extact a pumf file in R, subset it, and weight it like you would do in SPSS. My code is below & it works great. My question is: how do i then calculate the frequencies of smokers (1) versus non-smokers (2) after having weighted my file? or even the process that SPSS is going through to aggregate the data? Thanks, Nat Here is my code: