[R] R Installation Options

2014-01-23 Thread Mark Lyman
Can I build a version of R for Windows without some functionality like ftp and sockets? And without some of the recommended packages? It doesn't look like this can be done from the Windows install file, but if it can that would nice to know too. Thanks, Mark [[alternative HTML version

Re: [R] R Installation Options

2014-01-23 Thread Mark Lyman
Thank you. I ask because our IT people have security concerns with that functionality On Thu, Jan 23, 2014 at 10:25 AM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: On 23/01/2014 16:15, Mark Lyman wrote: Can I build a version of R for Windows without some functionality like ftp and sockets

[R] odbcConnectExcel2007 creates corrupted files

2011-03-01 Thread Mark Lyman
I tried creating a .xlsx file using odbcConnectExcel2007 and adding a worksheet with sqlSave. This seems to work, I am even able to query the worksheet, but when I try opening the file in Excel I get the following message: Excel cannot open the file 'test.xlx' because the file format or file

Re: [R] Weighting data with normal distribution

2009-03-27 Thread Mark Lyman
function in the signal package masks the filter function from the stats package stats::filter(x, gausswin(5, 2.68)) Mark Lyman Statistician, ATK Launch Systems __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] scatter plot question

2009-03-03 Thread Mark Lyman
- data.frame(id=c(A, B, C), x=c(1, 20, 2), rho=c(0.1, 0.5, 0.9)) plot(rho~x, test, pch=as.character(id)) Mark Lyman __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] How to convert S4 class slots into data.frame or how to assign variables of type 'Date'

2008-11-21 Thread Mark Lyman
section of ?[.data.frame. I belive your Date is being converted to numeric to match the class of what it is replacing. Mark Lyman Statistician, ATK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] apply() just loops ?

2008-11-12 Thread Mark Lyman
your question. http://finzi.psych.upenn.edu/R/Rhelp02a/archive/76330.html Mark Lyman __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] Remove warnings.

2008-10-14 Thread Mark Lyman
rkevinburton at charter.net writes: The problem is that I am interested in all the warnings but after they have been reported using the 'warnings()' command I am no longer interested in those warnings but similar warnings (of the same type) may occur with subsequent invocations and I am

Re: [R] Two math expressions in plot

2008-10-09 Thread Mark Lyman
Giovanni Petris GPetris at uark.edu writes: Hello! I am trying to put two math expressions in the title of a plot. As you can see below, I can place correctly one expression at a time, but not both. Ideally I would like to have them separated by a comma. Any suggestions? k - 1

Re: [R] merging a list and data frame

2008-10-01 Thread Mark Lyman
eric lee ericlee100 at gmail.com writes: Hi, I'd like to merge the following list and data frame by matching the first column in the data frame to the first number in each object of the list. I'd also like the merged object to be a list. Any suggestions? Thanks. eric a -

Re: [R] question about working with workspaces

2008-10-01 Thread Mark Lyman
are working in windows you can add this to the target field of the the shortcut that you use to start R. When I load workspace2 working in workspace1 everything from 1 is written into 2 is there a way to avoid it? Take a look at ?save. Mark Lyman Best regards, Daniel Rabczenko

Re: [R] plot order in multi-panel figure

2008-09-19 Thread Mark Lyman
) rect(0.2,0.2,0.5,0.5,col=8) screen(3) plot.new() plot.window(c(0,1),c(0,1)) for( i in 1:2) axis(i) box(bty=L) close.screen() [1] 1 2 3 Mark Lyman __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] extract variance components

2008-08-29 Thread Mark Lyman
huang min minhuangr at gmail.com writes: HI, I would like to extract the variance components estimation in lme function like a.fit-lme(distance~age, data=aaa, random=~day/subject) There should be three variances \sigma_day, \sigma_{day %in% subject } and \sigma_e. I can extract

Re: [R] Function not returning a vector?

2008-08-28 Thread Mark Lyman
rkevinburton at charter.net writes: Why does: (shape/scale) * (1:365/scale)^(shape - 1) return a vector of numbers but calling a function hasard(1:365,shape,scale) defined like: hazard - function(x,shape,scale) { return (shape/scale) * (x/scale)^(shape - 1) } Only

Re: [R] Very confused with class

2008-08-21 Thread Mark Lyman
Williams, Robin robin.williams at metoffice.gov.uk writes: Hi all, I am very confused with class. I am looking at some weather data which I want to use as explanatory variables in an lm. R has treated these variables as factors (i.e. with different levels), whereas I want them treated

Re: [R] New to R. Question about very large files

2008-08-14 Thread Mark Lyman
Richard Palmer rhpalmer at gmail.com writes: .. I am new to R but experienced in SAS. SAS has the capability to let me develop a model from a sample and use the results to score the records of another file which won't fit in memory. Is this straightforward in R or does it require coding

Re: [R] The standard deviation of measurement 1 with respec t to measurement 2

2008-08-13 Thread Mark Lyman
Firas Swidan frsswdn at gmail.com writes: Hi, I have two (different types of) measurements, say X and Y, resulting from the same set of experiments. So X and Y are paired: (x_1, y_1), (x_2, y_2), ... I am trying to calculate the standard deviation of Y with respect to X. In other

[R] Simulate from a GAM model

2008-07-01 Thread Mark Lyman
package does for lm models. library(mgcv) set.seed(10) ## simulate date from y = f(x2)*x1 + error dat - gamSim(3,n=400) b-gam(y ~ s(x2,by=x1),data=dat) Thanks for any help you can give, Mark Lyman __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] WIERD: Basic computing in R

2008-07-01 Thread Mark Lyman
poolloopus at yahoo.com poolloopus at yahoo.com writes: Can someone please enlighten me as to why the following happens? -2.7^8.6 [1] -5125.407 p- -2.7 q- 8.6 p^q [1] NaN R seems perfectly able to calculate -2.7^8.6, but fails when the exact same values are assigned to variables

[R] R-ex folder in user-created package

2008-04-02 Thread Mark Lyman
When I run R CMD check pkg the R-ex folder containing examples is created in pkg.Rcheck/pkg, however, when I run R CMD build pkg or R CMD INSTALL --build pkg, it is not created. Should the folder and its examples be created manually? I am running R 2.6.2 on Windows XP.

Re: [R] R-ex folder in user-created package

2008-04-02 Thread Mark Lyman
Mark Lyman mark.lyman at gmail.com writes: When I run R CMD check pkg the R-ex folder containing examples is created in pkg.Rcheck/pkg, however, when I run R CMD build pkg or R CMD INSTALL --build pkg, it is not created. Should the folder and its examples be created manually? I am

Re: [R] Using subset in correlation analysis

2008-03-19 Thread Mark Lyman
James J. Roper jjroper at gmail.com writes: The correlation test function says that it can do a subset where one specifies the subsete vector. I cannot seem to get it to work. For example, the command line is: cor.test(adults$Alt, adults$Cab, alternative=greater, method=pearson)

Re: [R] Dealing with schema in RODBC

2007-11-09 Thread Mark Lyman
) : 'EIDS.TEST_ARTCL_INST': table not found on channel On 11/7/07, Marc Schwartz [EMAIL PROTECTED] wrote: On Wed, 2007-11-07 at 22:15 +, Mark Lyman wrote: Is there a way to get a table in a certain schema? The Oracle database I am using has a table by the same name in two different

[R] Dealing with schema in RODBC

2007-11-07 Thread Mark Lyman
UNIT_MSR_ID Mark Lyman __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.