Re: [R] Want help on data resampling!

2009-11-18 Thread Tal Galili
Use ?sample With replace On the number of rows, and then use them as indicators for picking rows from the data set. For example: *sample(10, replace=T)* Read more here: http://www.ats.ucla.edu/stat/R/library/bootstrap.htm -- My contact informatio

[R] Want help on data resampling!

2009-11-18 Thread ke fang
Dear all. I have a data matrix that each row containing a specific individual's information including individual observation and properties. I'm trying to use R to create some bootstrap samples with this data matrix. I have tried the boot() function in boot package, but it seems that this fu

Re: [R] Cochran's Theorem

2009-11-18 Thread Charles C. Berry
On Wed, 18 Nov 2009, Peng Yu wrote: I want to understand ANOVA better. But a few textbook that I have do not describe Cochran's Theorem in details. Could somebody recommend a book for me? The theorem is ever so briefly described in Yates obituary of Cochran: http://www.jstor.org/stab

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread Deepayan Sarkar
On Thu, Nov 19, 2009 at 6:03 AM, ychu066 wrote: > > http://old.nabble.com/file/p26418382/hist1.png hist1.png  i want three plots > along on the side , how to i do that ? > >  and I also want to change the colour of the bars for each plot, how do i do > that ? > > i got the code here to draw that .

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Petr PIKAL
Well, from what you say it seems to me that you could also use Pareto charts together with some aggregation of data. But it depends on what you want to show to your audience. Below is some code which I slightly adapted form original author. Regards Petr #---

Re: [R] Labels in horizontal dendrogram not placed correctly?

2009-11-18 Thread Chris Campbell
On Mon, Nov 16, 2009 at 07:28, joris meys wrote: > Hi all, > > I tried plotting a horizontal dendrogram, but it seems as if the > labels are not taken into account in the function plot.dendrogram(). > > A minimal example : > Test <- data.frame( >    x1x = c(1:10), >    x2x = c(2:11), >    

Re: [R] problem post request with RCurl

2009-11-18 Thread Duncan Temple Lang
Use curlPerform(url = 'http://pubchem.ncbi.nlm.nih.gov/pug/pug.cgi', postfields = q) That gives me: 31406321645402938 Rajarshi Guha wrote: >

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread ychu066
tried reading the help(histogram) but didnt fiind it helpful ychu066 wrote: > > I have solved the first problem by using layout=c(1,3) > > but still cant find the solution for the next problem of getting > differenct colour for the bars in the 3 different histogram plots > > > ychu066

Re: [R] re placing the dates format in R for exporting the data set...

2009-11-18 Thread ychu066
hey Jim , I have solve the column name problems now. But i am still unable to read the date in R ... toms_dat<- replace(toms_dat, toms_dat ==2009-08-24, 6) the toms_dat is a data frame , and I want to replace the date to be a single number eg:1,2,3, regards, Tom. jholtman wrote: >

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread ychu066
I have solved the first problem by using layout=c(1,3) but still cant find the solution for the next problem of getting differenct colour for the bars in the 3 different histogram plots ychu066 wrote: > > http://old.nabble.com/file/p26418382/hist1.png hist1.png i want three > plots alon

Re: [R] HOw to delete a row in the data matrix and change the order of the row ???

2009-11-18 Thread ychu066
done thanks Uwe Ligges-3 wrote: > > Assign new row names? > > Uwe Ligges > > > ychu066 wrote: >> hi, >> >> i delete row 65,70,75 in my data >> data<- data[-c(65,70,75),] >> >> But i also want the order of the row to match up >> eg: >> >> 67 11111111

Re: [R] GLM: Classification problem. Help!

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 5:12 PM, J_Laberga wrote: Hello, I need help with this. Let's say that I have n features that I want to use to predict which class an observation belongs to. Using training data I try to do the following: training$result <- as.factor(training$result) model <- glm(res

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 12:35 PM, Max Kuhn wrote: On Tue, Nov 17, 2009 at 6:01 PM, raluca wrote: Hello, Is the first time I am using SNOW package and I am trying to tune the cost parameter for a linear SVM, where the cost (variable cost1) takes 10 values between 0.5 and 30. I have a large

Re: [R] GLM: Classification problem. Help!

2009-11-18 Thread Max Kuhn
> What am I missing? A trip to the help page. predict.glm has details on the "type" argument specific to this situation: "the type of prediction required. The default is on the scale of the linear predictors; the alternative "response" is on the scale of the response variable. Thus for a default

[R] problem post request with RCurl

2009-11-18 Thread Rajarshi Guha
Hi, I am trying to use a CGI service (Pubchem PUG) via RCurl and am running into a problem where the data must be supplied via POST - but I don't know the keyword for the argument. The data to be sent is an XML fragment. I can do this via the command line using curl: I save the XML string t

Re: [R] Save and load workspace in R: strange error.

2009-11-18 Thread Juancarloshb
Hello, I get the same message when I write the attach function, where is that you change the user quota? I use R with mac OS Thanks. Hongxiao Zhu wrote: > > Hi, > > I finally figured out where the problem is. It was because the > user account has a 10GB quota for the systerm that I used. >

[R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread ychu066
http://old.nabble.com/file/p26418382/hist1.png hist1.png i want three plots along on the side , how to i do that ? and I also want to change the colour of the bars for each plot, how do i do that ? i got the code here to draw that .. columns <- 8:153 plots <- vector("list", length(columns))

Re: [R] re placing the dates format in R for exporting the data set...

2009-11-18 Thread ychu066
Ok thanks jholtman wrote: > > ?write.table > > If you read the help file, and do a little experimenting, you will see > that there is a parameter 'rownames=FALSE' that may answer your > question. > > Also since you did not have column names on your input, you get V1, > V2,... You can put

Re: [R] Confidence intervals - a statistical question, nothing to do with R

2009-11-18 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Moshe Olshansky > Sent: Wednesday, November 18, 2009 3:21 PM > To: R-help@r-project.org > Subject: [R] Confidence intervals - a statistical question, nothing to do > with R > > D

Re: [R] Error using 32-bit R and RODBC package on 64-bit Windows Server OS with R version 2.10

2009-11-18 Thread Marc Schwartz
Just to clarify on your first point, it is not that RODBC cannot work with 64 bit ODBC drivers. Given your particular configuration of 64 bit Windows, 32 bit R and 64 bit ODBC drivers, you are likely running into compatibility issues. From the error message below, it would seem that you are

[R] Confidence intervals - a statistical question, nothing to do with R

2009-11-18 Thread Moshe Olshansky
Dear list, I have r towns, T1,...,Tr where town i has population Ni. For each town I randomly sampled Mi individuals and found that Ki of them have a certain property. So Pi = Ki/Mi is an unbiased estimate of the proportion of people in town i having that property and the weighted average of Pi

Re: [R] Preferred Method for Reading in and Processing Access Database

2009-11-18 Thread Michael Bibo
Jason Rupert yahoo.com> writes: > > By any chance is there a preferred way to allow R to read in data from an Access Database and then also process > that data? > > Thanks for any hints and tips since I have traditionally been working with csv file. > I find using package RODBC quite st

Re: [R] Unnecesary code?

2009-11-18 Thread Duncan Murdoch
hunsynte...@hush.com wrote: Dear R-ers, While browsing the R sources, I found the following piece of code in src\main\memory.c: static void reset_pp_stack(void *data) { R_size_t *poldpps = data; R_PPStackSize = *poldpps; } To me, it looks like the poldpps pointer is a nuissance; can

Re: [R] question about function heatmap

2009-11-18 Thread Chris Campbell
On Tue, Nov 17, 2009 at 17:03, Waverley @ Palo Alto wrote: > Hi, > > I am using the function heatmap(stats) to draw a microarray heatmap, > columns are samples and rows are gene features. > > I did a 2D clustering during the heatmap drawing.  The features and > samples indeed cluster into several

Re: [R] error message; ylim + log="y"

2009-11-18 Thread Ravi Varadhan
It can plot log axis from 1 to 10, but that is not what you are plotting. Your ylim includes 0, and you cannot do log(0). This will draw the plotting frame that you want: plot(c(),c(), xlim=c(1,10), ylim=c(1,10), log="y") Ravi. -

Re: [R] row-wise means

2009-11-18 Thread Peter Alspach
Tena koe Anjan ?rowMeans ?apply You'll need to subset your data matrix to exclude the first column (e.g., yourData[,-1]). HTH Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of ANJAN PURKAYASTHA > Sent: Thu

[R] Linear Discriminant Analysis and Wilks Lambda

2009-11-18 Thread Julius Tesoro
Dear all, I am trying to recreate a discriminant analysis in R based on the article from "Dong,J.-J.,etal.,Discriminant analysis of the geomorphic characteristics and stability of landslide dams, Geomorphology (2009)". I used lda (MASS) to determine the discriminant functions but I noticed that

[R] Preferred Method for Reading in and Processing Access Database

2009-11-18 Thread Jason Rupert
By any chance is there a preferred way to allow R to read in data from an Access Database and then also process that data? Thanks for any hints and tips since I have traditionally been working with csv file. Thanks again. __ R-help@r-project.org

Re: [R] error message; ylim + log="y"

2009-11-18 Thread Peter Alspach
Tena koe Martin This is what I get (it is unclear to me why you don't tell use specifically what you get): plot(1,1, xlim=c(1,10), ylim=c(0,1), log="y", type='n') Warning message: In plot.window(...) : nonfinite axis limits [GScale(-inf,4,2, .); log=1] plot(1,1, xlim=c(1,10), ylim=c(1,1),

Re: [R] Data linkage functions for probabilistic linkage using person identifiers

2009-11-18 Thread Doran, Harold
Interesting enough, I just posted a package to CRAN with a function that might be useful. It is called MiscPsycho and is for psychometric work. The updated version of the package should be available in a day or so. It has a function called stringMatch which just implements the Levenshtein distan

[R] GLM: Classification problem. Help!

2009-11-18 Thread J_Laberga
Hello, I need help with this. Let's say that I have n features that I want to use to predict which class an observation belongs to. Using training data I try to do the following: > training$result <- as.factor(training$result) > model <- glm(result ~., family=binomial("logit"), data = training)

Re: [R] error message; ylim + log="y"

2009-11-18 Thread jim holtman
like this? > plot(c(),c(), xlim=c(1,10), ylim=c(0,1), log="y") Error in axis(side = side, at = at, labels = labels, ...) : CreateAtVector [log-axis()]: axp[0] = 0 < 0! In addition: Warning messages: 1: In is.na(y) : is.na() applied to non-(list or vector) of type 'NULL' 2: In plot.window(...

[R] GLM: Classification problem. Help!

2009-11-18 Thread John
Hello, I need help with this. Let's say that I have n features that I want to use to predict which class an observation belongs to. Using training data I try to do the following: > training$result <- as.factor(training$result) > model <- glm(result ~., family=binomial("logit"), data = training) H

Re: [R] border/box/frame around plot

2009-11-18 Thread Greg Snow
Run the following command after creating your plot (at the point where you would run box()): > par(c('bty','xpd')) Then look at the help for par, or post the results back here for us to look at and have better information on what you problem may be. -- Gregory (Greg) L. Snow Ph.D. Statistical

Re: [R] getting the name of a single object in R for debugging output

2009-11-18 Thread Andrew
Henrique,   It works great.  Perfect!   Thank you.   Warm regards,   Andrew --- On Wed, 11/18/09, Henrique Dallazuanna wrote: Try this: debugPrint <- function(x, ...){     print(sprintf("%s: %d", deparse(substitute(x)), x), ...) } On Wed, Nov 18, 2009 at 8:35 AM, Andrew wrote: > I often use

Re: [R] Writing a data frame in an excel file

2009-11-18 Thread anna_l
Ok I´ve been trying to understand what is happening: the data.frame I am sending on the xls file has been constructed by the following way: I used the RODBC package to read dates and prices columns into a dataframe so the first column in excel is of type "date". In the data.frame it is not numeric

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 4:21 PM, raluca wrote: Hi David, I have no idea what "magic" you did, but running exactly the same code as you, I have the same problem as before, meaning that I get results that are identical from 2 in 2, while I should get diffrent results for each value of cost1

[R] row-wise means

2009-11-18 Thread ANJAN PURKAYASTHA
I have a dataframe with 3 columns. The first column stores an index. I would like to calculate the mean of the numbers stored in each of the rest of the columns. So, here is my data matrix: col1 col2 col3 1 23 34 2 45 56 3 23 56 4 34 68 For each row I would like to calculate the means of the numbe

Re: [R] error message; ylim + log="y"

2009-11-18 Thread Martin Batholdy
> You have no data to plot. What were you expecting it to do? Well, I get the same error messages when I use real data. So it has to do with the ylim-values specified. When I get rid of the ylim argument definition it does work. But why? I don't understand why R can't plot a logarithmic y-axis

Re: [R] Median on Aggregated data

2009-11-18 Thread William Dunlap
You could use S+. Its median function has a weights argument. E.g., > median(c(1,2,3,4e4), weights=c(1e8,1e8,1,2e8)) [1] 3 > median(c(1,2,3,4e4), weights=c(1e8,1e8,1,2e8+10)) [1] 4 > median(c(1,2,3,4e4), weights=c(1e8,1e8,1,2e8+1)) [1] 20001.5 Bill Dunlap Spotfire, TIBCO

Re: [R] Median on Aggregated data

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 4:55 PM, Satsangi, Vivek (GE Capital) wrote: Folks, I have the following code, that works fine on smaller data sets. For larger datasets, it runs out of memory and runs way too slow because we are essentially creating large vectors with rep() and then calling median() on

[R] Median on Aggregated data

2009-11-18 Thread Satsangi, Vivek (GE Capital)
Folks, I have the following code, that works fine on smaller data sets. For larger datasets, it runs out of memory and runs way too slow because we are essentially creating large vectors with rep() and then calling median() on it. (I learned this approach from a post on the web). Below that, I

[R] Cochran's Theorem

2009-11-18 Thread Peng Yu
I want to understand ANOVA better. But a few textbook that I have do not describe Cochran's Theorem in details. Could somebody recommend a book for me? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

[R] error message; ylim + log="y"

2009-11-18 Thread Martin Batholdy
Hi, I get a lot of error messages with this command, but I don't understand why; plot(c(),c(), xlim=c(1,10), ylim=c(0,1), log="y") thanks for any help! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://sta

Re: [R] How to choose appropriate linear model? (ANOVA)

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 4:06 PM, Steve Lianoglou wrote: Hi, On Nov 18, 2009, at 3:33 PM, Rolf Turner wrote: On 19/11/2009, at 9:10 AM, Tal Galili wrote: Hello Peng, What you are talking about is "model selection" process. Although it also sound like you are referring to the more general sub

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread raluca
Hi David, I have no idea what "magic" you did, but running exactly the same code as you, I have the same problem as before, meaning that I get results that are identical from 2 in 2, while I should get diffrent results for each value of cost1 (which is a vector with 10 values running between 0.5

Re: [R] Re ading multiple Excel 2007 files with a loop

2009-11-18 Thread neuro
A small example. regards Christian > library(gdata) > fname <- list.files("C:/dm/test",pattern=".xls", full.names = TRUE, recursive > =TRUE, ignore.case = TRUE) > > for (sp in 1:length(fname)) { + print(fname[sp]) + data <- read.xls(fname[sp], sheet=1, verbose=FALSE,perl="perl") + print(data) +

Re: [R] Data linkage functions for probabilistic linkage using person identifiers

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 1:21 PM, Dagan A WRIGHT wrote: I am somewhat new to R although using and liking already. I am curious if there are any probabilistic packages similar in function to others such and Link King (http://www.the-link-king.com/). I am looking for functions in SSN, First/Las

[R] Unnecesary code?

2009-11-18 Thread hunsyntesat
Dear R-ers, While browsing the R sources, I found the following piece of code in src\main\memory.c: static void reset_pp_stack(void *data) { R_size_t *poldpps = data; R_PPStackSize = *poldpps; } To me, it looks like the poldpps pointer is a nuissance; can't you just cast the data poin

Re: [R] Re ading multiple Excel 2007 files with a loop

2009-11-18 Thread Mark W. Miller
Thank you for all of the responses. They were all very helpful. The best response came from a gentleman at Berkeley who suggested I change the channel statement to that used below: Mark Miller Gainesville, Florida library(RODBC) setwd("U:/test folder") fname <- list.files(pattern=".\\.x

Re: [R] Error using 32-bit R and RODBC package on 64-bit Windows Server OS with R version 2.10

2009-11-18 Thread helpme
Now that I know RODBC only works with 32-bit ODBC drivers this explains the problem I was having. The system has a 64 bit ODBC driver is definitely installed. I can tell because when you go to system32 folder and click on odbcad32.exe it goes to the Microsoft ODBC manager where I can select the dr

Re: [R] SOM library - where do I find it

2009-11-18 Thread Julian Burgos
You have to download it from CRAN and install it. From the GUI, do Packages->Install package(s). Pretty basic stuff...you should check the documentation before posting. Julian > > > R version 2.9.2 (2009-08-24) - for windows > >> library(SOM) > Error in library(SOM) : there is no package calle

Re: [R] How to choose appropriate linear model? (ANOVA)

2009-11-18 Thread Steve Lianoglou
Hi, On Nov 18, 2009, at 3:33 PM, Rolf Turner wrote: On 19/11/2009, at 9:10 AM, Tal Galili wrote: Hello Peng, What you are talking about is "model selection" process. Although it also sound like you are referring to the more general subject of regression model strategies, consider finding

Re: [R] SOM library - where do I find it

2009-11-18 Thread Tobias Verbeke
Hi tdm, tdm wrote: R version 2.9.2 (2009-08-24) - for windows library(SOM) Error in library(SOM) : there is no package called 'SOM' Where can I get the SOM library from? Thanks in advance R is case-sensitive, so install.packages("som") library("som") ?som http://cran.r-project.org/web/

Re: [R] Perform operations on dataframes called with paste in loops

2009-11-18 Thread Greg Snow
There are a few options: You can read the help page for the function that you used to assign names to the data frames when you read them in (the 'see also' section is there for a reason). You can read the FAQ (7.21 to be specific, but the others could save you re-asking FAQs in the future) Yo

Re: [R] SOM library - where do I find it

2009-11-18 Thread Steve Lianoglou
Hi, On Nov 18, 2009, at 3:58 PM, tdm wrote: R version 2.9.2 (2009-08-24) - for windows library(SOM) Error in library(SOM) : there is no package called 'SOM' I think you want "som", right? Where can I get the SOM library from? Where you get just about every R package from, CRAN: http://

[R] SOM library - where do I find it

2009-11-18 Thread tdm
R version 2.9.2 (2009-08-24) - for windows > library(SOM) Error in library(SOM) : there is no package called 'SOM' Where can I get the SOM library from? Thanks in advance -- View this message in context: http://old.nabble.com/SOM-library---where-do-I-find-it-tp26415633p26415633.html Sent fro

Re: [R] Re ading multiple Excel 2007 files with a loop

2009-11-18 Thread Rolf Turner
Have you looked at the read.xls() function from the gdata package? It automates the conversion to *.csv for you. It has worked seamlessly for me on the occasions on which I've needed to use it. cheers, Rolf Turner On 19/11/2009, at 9:09 AM, Mark W. Miller wrote: I

Re: [R] How to choose appropriate linear model? (ANOVA)

2009-11-18 Thread Rolf Turner
On 19/11/2009, at 9:10 AM, Tal Galili wrote: Hello Peng, What you are talking about is "model selection" process. Although it also sound like you are referring to the more general subject of regression model strategies, consider finding this book: http://www.amazon.com/Regression-Modeling-St

[R] Package for Miscellaneous Psychometrics

2009-11-18 Thread Doran, Harold
Version 1.5 of the MiscPsycho package had been uploaded to CRAN (should hit mirrors in a day or so). This package has a set of functions that may be useful for psychometric applications. The package has been updated to include the following: 1) All functions (where appropriate) now use standard

Re: [R] How to install older version of R?

2009-11-18 Thread p_connolly
On Thu, 19-Nov-2009 at 01:12AM +0800, Pan, Jia-chiun wrote: |> Dear list |> |> This is much like a linux problem, but I can't find any |> reference for it. My OS is ubuntu 9.04 and a version of 2.9.2 of R has |> been already installed in. Now, I need to install the version of 2.7.1. |> I g

Re: [R] parsing numeric values

2009-11-18 Thread baptiste auguie
another useful trick that could come in handy, thanks! baptiste 2009/11/18 Gabor Grothendieck : > Here is a slight variation: > >> read.table(textConnection(grep("", input, value = TRUE)), > +    colClasses = c("NULL", "NULL", "numeric")) >          V3         V6 > 1 0.00137700 3.4644e-07 > 2 0.0

Re: [R] How to choose appropriate linear model? (ANOVA)

2009-11-18 Thread Tal Galili
Hello Peng, What you are talking about is "model selection" process. Although it also sound like you are referring to the more general subject of regression model strategies, consider finding this book: http://www.amazon.com/Regression-Modeling-Strategies-Frank-Harrell/dp/0387952322 Frank Harrell

[R] Re ading multiple Excel 2007 files with a loop

2009-11-18 Thread Mark W. Miller
I have several hundred Excel 2007 data files in a folder. I would like to read every file in a single given folder using a loop. I have searched the FAQ, the forum archives here, other or older R boards and the R Import / Export documentation, and have asked some very knowledgeable R users with

[R] standard error for the estimated value (lmer fitted model)

2009-11-18 Thread willow1980
Dear R users, I want to draw standard error lines for the predicted regression line estimated by logistic regression using lmer. I have two predictors: cafr and its quadratic form I(cafr^2), where cafr is a variable centered around the mean of original variable. Now, the estimated value from the f

Re: [R] (no subject)

2009-11-18 Thread Moritz Fromwald
http://www.lmgtfy.com/?q=multicollinearity+test+using+R http://www.lmgtfy.com/?q=selection+stepwise+multiple+regression+analysis+using+R Moritz Karen Federico schrieb: How do you perform a multicollinearity test using R. Also how do you perform a selection stepwise to carry out a multiple regre

[R] How to choose appropriate linear model? (ANOVA)

2009-11-18 Thread Peng Yu
I'm wondering how to choose an appropriate linear model for a given problem. I have been reading Applied Linear Regression Models by John Neter, Michael H Kutner, William Wasserman and Christopher J. Nachtsheim. I'm still not clear how to choose an appropriate linear model. For multi-factor ANOVA,

[R] (no subject)

2009-11-18 Thread Karen Federico
How do you perform a multicollinearity test using R. Also how do you perform a selection stepwise to carry out a multiple regression analysis? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma

Re: [R] parsing numeric values

2009-11-18 Thread Gabor Grothendieck
Here is a slight variation: > read.table(textConnection(grep("", input, value = TRUE)), +colClasses = c("NULL", "NULL", "numeric")) V3 V6 1 0.00137700 3.4644e-07 2 0.00019412 4.8840e-08 3 0.00137700 3.4644e-07 4 0.00019412 4.8840e-08 On Wed, Nov 18, 2009 at 1:54 PM, baptis

Re: [R] parsing numeric values

2009-11-18 Thread Gabor Grothendieck
It only works if "some text" at the beginning has no digits, dots, E characters or sign characters. On Wed, Nov 18, 2009 at 12:44 PM, Bert Gunter wrote: > The previous elegant solutions required the use of the gsubfn package. > Nothing wrong with that, of course, but I'm always curious whether st

Re: [R] Writing a data frame in an excel file

2009-11-18 Thread Orvalho Augusto
Why don't try the fabulous WRITEXLS package? Caveman On Wed, Nov 18, 2009 at 7:45 PM, anna_l wrote: > > Thanks Karl, well I am getting an error now after the following sqlSave > command: > sqlSave( xlsFile, datas, tablename = 'Datas_and_coefficients', rownames = > FALSE ) > > -->  [RODBC] Faile

Re: [R] parsing numeric values

2009-11-18 Thread baptiste auguie
Hi, Thanks for the alternative approach. However, I should have made my example more complete in that other lines may also have numeric values, which I'm not interested in. Below is an updated problem, with my current solution, tc <- textConnection( "some text =1.3770E-03 =3.4644E-

[R] border/box/frame around plot

2009-11-18 Thread brbell01
Hello I need to know how to put a closed frame around my plot. I am plotting using the igraph package, and I have been able to use box() with limited success. Box() puts a border around only the upper and right edges of the plot area, but misses the axes. By default, setting the axes=TRUE in igra

[R] Y axis of 1-D Linear Discriminant Histograms

2009-11-18 Thread Bob Farmer
Hi all. I would like to understand what are the units defined on the y-axis when you plot the one-dimensional predictions (histograms) from lda() (MASS) discriminant function objects? While the helpfile suggests that a histogram is returned by default, the presumably proportion-like values for eac

[R] Data linkage functions for probabilistic linkage using person identifiers

2009-11-18 Thread Dagan A WRIGHT
I am somewhat new to R although using and liking already. I am curious if there are any probabilistic packages similar in function to others such and Link King (http://www.the-link-king.com/). I am looking for functions in SSN, First/Last name, date of birth, and a couple other indicators for

Re: [R] mann-whitney test with more groups

2009-11-18 Thread Peter Dalgaard
Peter Ehlers wrote: Sorry, correction below. Peter Ehlers wrote: Kim Vanselow wrote: Dear r-helpers, I want to test groups of samples for significant differences. Question: Does Group1 differ significantly from group2. This is a question to be answered by mann-whitney-u-test. I know that I c

Re: [R] Writing a data frame in an excel file

2009-11-18 Thread anna_l
Thanks Karl, well I am getting an error now after the following sqlSave command: sqlSave( xlsFile, datas, tablename = 'Datas_and_coefficients', rownames = FALSE ) --> [RODBC] Failed exec in Update 22018 39 [Microsoft][Driver ODBC for Excel]invalid character value for the diffusion specification

Re: [R] parsing numeric values

2009-11-18 Thread Bert Gunter
The previous elegant solutions required the use of the gsubfn package. Nothing wrong with that, of course, but I'm always curious whether still relatively simple base R solutions can be found, as they are often (but not always!) much faster. And anyway, it seems to be in the spirit of your query to

[R] Method dispatch for function

2009-11-18 Thread Stavros Macrakis
How can I determine what S3 method will be called for a particular first-argument class? I was imagining something like functionDispatch('str','numeric') => utils:::str.default , but I can't find anything like this. For that matter, I was wondering if anyone had written a version of `methods` whi

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread Max Kuhn
On Tue, Nov 17, 2009 at 6:01 PM, raluca wrote: > > Hello, > > Is the first time I am using SNOW package and I am trying to tune the cost > parameter for a linear SVM, where the cost (variable cost1) takes 10 values > between 0.5 and 30. > > I have a large dataset and a pc which is not very powerfu

Re: [R] Writing a data frame in an excel file

2009-11-18 Thread Karl Ove Hufthammer
On Wed, 18 Nov 2009 08:02:47 -0800 (PST) anna_l wrote: > Sorry Charlie, I didn?t understand that tablename=R Results was creating a > worksheet. But the thing now is that it works very well when I write for the > first time on the excel file but when I want to rewrite on it it gives the > error i

[R] How to install older version of R?

2009-11-18 Thread Pan,
Dear list This is much like a linux problem, but I can't find any reference for it. My OS is ubuntu 9.04 and a version of 2.9.2 of R has been already installed in. Now, I need to install the version of 2.7.1. I google a lot of websites and it seems like without a painless way provided me t

Re: [R] mann-whitney test with more groups

2009-11-18 Thread Peter Ehlers
Sorry, correction below. Peter Ehlers wrote: Kim Vanselow wrote: Dear r-helpers, I want to test groups of samples for significant differences. Question: Does Group1 differ significantly from group2. This is a question to be answered by mann-whitney-u-test. I know that I can use wilcox.test wi

Re: [R] mann-whitney test with more groups

2009-11-18 Thread Peter Ehlers
Kim Vanselow wrote: Dear r-helpers, I want to test groups of samples for significant differences. Question: Does Group1 differ significantly from group2. This is a question to be answered by mann-whitney-u-test. I know that I can use wilcox.test with 2 samples. My problem: How can r perform th

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
Hello Sir I have got 150 observations, got 10 posts/ 6 departments/ tasks vary from 5 to 10, A few of the variables are crossed specially in case of Office boy, where the tasks are like open the door, put on the lights, Yes time variable I have used Chron package, so that it works well My aim f

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Steve Lianoglou
Hi (again), On Nov 18, 2009, at 10:53 AM, Sunita Patil wrote: Hello Sir I had given a sample of my data, As I cannot disclose whole of my data this is just a sample given 1st column: Posts (GM, Secretary, AM, Office Boy) 2nd Column: Dept (Finance, HR, ...) 3rd column: Tasks (Open the door,

Re: [R] Writing a data frame in an excel file

2009-11-18 Thread anna_l
Sorry Charlie, I didn´t understand that tablename=R Results was creating a worksheet. But the thing now is that it works very well when I write for the first time on the excel file but when I want to rewrite on it it gives the error i wrote before saying that Results already exists, is there a way

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Steve Lianoglou
Hi, (Sorry, I didn't cc the r-help list) On Nov 18, 2009, at 10:22 AM, Sunita Patil wrote: I have been using R just very recently, I have gone through this http://addictedtor.free.fr/graphiques/ a few weeks back but I am not able to understand as to how to choose the graph amongst them? Can

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread hadley wickham
That is not enough information for anyone to suggest a useful plot. For a start: * How many observations do you have? * How many difference posts/departments/tasks? * Are the variables nested or crossed? * Have you successfully parsed the time representation into something R can work with? Is

Re: [R] foor loop - undefined columns selected error

2009-11-18 Thread Peter Ehlers
Michela Leonardi wrote: Dear R-Help Members, I am trying to read and analyse a set of 100 csv files. I need work only on some columns in each of those, so I decided to use a for loop, isolate the column in each file to work on, but then an error mesage appear: "undefined columns selected" Her

Re: [R] Creating an excel file and manipulating it from R

2009-11-18 Thread Henrique Dallazuanna
Try the RDCOMClient [1] package. [1]http://www.omegahat.org/RDCOMClient/ On Wed, Nov 18, 2009 at 1:31 PM, anna_l wrote: > > Hello everybody, I´ve been looking for a function that would create an excel > file in my working directory where I would write my dataframe but I only > found the function

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
Hello Sir I had given a sample of my data, As I cannot disclose whole of my data this is just a sample given 1st column: Posts (GM, Secretary, AM, Office Boy) 2nd Column: Dept (Finance, HR, ...) 3rd column: Tasks (Open the door, Fix an appointment, Fill the register, etc.) depending on the po

Re: [R] parsing numeric values

2009-11-18 Thread Gabor Grothendieck
Thanks. This is now fixed in the development version so that it gives an error rather than crashing: > library(gsubfn) Loading required package: proto Loading required package: tcltk Loading Tcl/Tk interface ... done > source("http://gsubfn.googlecode.com/svn/trunk/R/gsubfn.R";) > strapply("test",

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread hadley wickham
> Yes I tried all the basic ones like box plot, pie chart, etc but the data > representation isnt that clear. Given that you have neither provided your data, nor explained what you are trying to uncover from it, what sort of advice do you expect to get? Hadley -- http://had.co.nz/

[R] mann-whitney test with more groups

2009-11-18 Thread Kim Vanselow
Dear r-helpers, I want to test groups of samples for significant differences. Question: Does Group1 differ significantly from group2. This is a question to be answered by mann-whitney-u-test. I know that I can use wilcox.test with 2 samples. My problem: How can r perform the test automatically if

Re: [R] Writing a data frame in an excel file

2009-11-18 Thread anna_l
Hi Charlie, I´ve been trying to use the sqlSave the way you showed me but it would give me this error message which I couldn´t solve: Erro em sqlSave(xlsFile, strategy, tablename = "Result", rownames = FALSE) : table ‘Result’ already exists I would like to save the data frame in a specified wo

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
yes in my data the 1st column is the main category say suppose "Secretary" the second column is the sub category "HR Dept" the 3rd column is the list of duties performed by the Secretary from HR dept and 4th column is time required to perform the duty so there are many such posts and dept with var

[R] Creating an excel file and manipulating it from R

2009-11-18 Thread anna_l
Hello everybody, I´ve been looking for a function that would create an excel file in my working directory where I would write my dataframe but I only found the functions to write or read in an existing file that you gave me on my former post or on some websites. I can´t find either functions to ma

Re: [R] A combinatorial optimization problem: finding the best permutation of a complex vector

2009-11-18 Thread Erwin Kalvelagen
See also: http://yetanothermathprogrammingconsultant.blogspot.com/2009/11/assignment-problem.html Erwin Kalvelagen Amsterdam Optimization Modeli

Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
I have been using R just very recently, I have gone through this http://addictedtor.free.fr/graphiques/ a few weeks back but I am not able to understand as to how to choose the graph amongst them? Can anyone guide me regarding this? Thanks in advance Regards Our Thoughts have the Power to Change

  1   2   >