Re: [R] test if a url exists

2014-06-29 Thread Duncan Murdoch
On 29/06/2014, 7:12 AM, Hui Du wrote: Hi all, I need to test if a url exists. I used url.exists() in RCurl package library(RCurl) however the test result is kind of weird. For example, url.exists(http://www.amazon.com;) [1] FALSE although www.amazon.comhttp://www.amazon.com is a

[R] Réponse automatique

2014-06-29 Thread j . boutet
Bonjour, Je suis absent jusqu'au 4 août prochain. En cas d'urgence, merci de contacter Francis Meunier, directeur-adjoint : f.meunier - at - conservatoirepicardie.org J. Boutet From: r-help-requ...@r-project.org Subject: R-help Digest, Vol 136, Issue 29 Date: Sun, 29 Jun 2014

[R] Monotonic Increasing

2014-06-29 Thread Nadav Steindler
Hi, I'm trying to run a GAM regression in mgcv with: 1. My own knots(which I learned to do here https://stat.ethz.ch/pipermail/r-help/2012-December/342723.html) 2. One of the cubic splines is defined as monotonic increasing This post(r.789695.n4.nabble.com/Monotone-splines-td833854.html) suggests

[R] Linear Regression Warning after plot: NaNs produced in

2014-06-29 Thread wat tele
Hello, I'm a R beginner and I want to make a Multiple Regression about birds. My data is stord in a .csv file. I tried to do this with the following code: reg.data - read.table(file.choose(),header=T, sep=;,dec=,) attach(reg.data) names(reg.data) model - lm(Flights ~ Age + Gender + weight +

[R] Dataframes and text identifier columns

2014-06-29 Thread Brian Willis
I am trying to incrementally add rows to an empty data frame. The data has 7 columns, the last 6 are numeric. For the first columns I would like to include a text identifier, called ‘Case’ like Andrew, Burt, Charlie etc. that is also output to a data frame – this is where I am having the problem

Re: [R] Dataframes and text identifier columns

2014-06-29 Thread David Winsemius
On Jun 29, 2014, at 5:46 AM, Brian Willis wrote: I am trying to incrementally add rows to an empty data frame. The data has 7 columns, the last 6 are numeric. For the first columns I would like to include a text identifier, called ‘Case’ like Andrew, Burt, Charlie etc. that is also output

Re: [R] Linear Regression Warning after plot: NaNs produced in

2014-06-29 Thread William Dunlap
One way to see where the first warning comes from is to turn warnings into errors with options(warn=2) and when the error happens call traceback(). Bill Dunlap TIBCO Software wdunlap tibco.com On Sun, Jun 29, 2014 at 4:12 AM, wat tele watt...@hotmail.de wrote: Hello, I'm a R beginner and I

Re: [R] Dataframes and text identifier columns

2014-06-29 Thread Richard M. Heiberger
Inp_dat- read.csv(/File/Input data.csv) out_put[i,]-data.frame(Case, stdL, stdPP, stdSE, L, PP, PP_SE) These two statements look like the source of the problem. Add the optional argument stringsAsFactors=FALSE to both. Rich On Sun, Jun 29, 2014 at 8:46 AM, Brian Willis b.h.wil...@bham.ac.uk

Re: [R] Dataframes and text identifier columns

2014-06-29 Thread Richard M. Heiberger
please stay on list. I am returning this to the list. David's comment that b is never used might be relevant. I think the next step is for you to post a small dataset that causes the problem dput(head(Inp_dat)) might be enough. Rich On Sun, Jun 29, 2014 at 3:11 PM, Brian Willis

[R] merge question

2014-06-29 Thread Dr Eberhard Lisse
I have two data frames like so qpiso iso requests 1A1 20 2A2 199 3AD5 4AE 176 ... 189 ZW 82 qplegit iso requests 1A2 36 2AE4 3AM2 4AO1 ... 100 ZW3 I want to create another dataframe

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

2014-06-29 Thread Nick Eubank
Hello R-Help! I'm just getting into working with SQLite databases using the RSQLite library in R, and Im wondering if there's a good way to abort a query? I'm very new to SQLite, so I am occasionally starting queries that take way to long due to poor optimization, and want to make sure when I

[R] Analysis using repeated measure mixed effect anova

2014-06-29 Thread dhs
Trying to understand how to analyze my data, sample data follows. I want to know if the student scores increased from sem1 to sem2 (semesters), and whether the inGroup scores increase more. Here’s what I did with sample data: students - c(s1”, “s2”, s3) inGroup- c(T, F, T) score -

[R] R Studio Not Working Windows 8.1

2014-06-29 Thread Ana Gomes
Dear all, I am a user of R Studio, which I appreciate very much. Recently I have changed my pc and I am having some problems to use R Studio. I have finally manage to make RStudio work today. However, to do that I am opening it with R x32 as a default. This is a bit strange for me because I have

Re: [R] merge question

2014-06-29 Thread Jeff Newmiller
If you really prefer solution code, then provide reproducible example code as the footer requests. Use ?merge with the all.x=TRUE parameter, and then perform your calculations on the resulting combined data frame, using ?ifelse and ?is.na as needed.

Re: [R] R Studio Not Working Windows 8.1

2014-06-29 Thread Jeff Newmiller
Wrong forum. RStudio has its own community support forum at their website. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live

Re: [R] regular expression help

2014-06-29 Thread William Dunlap
what's the difference between [:space:]+ and[[:space:]]+ ? The pattern '[:space:]' matches any of ':', 's', 'p', 'a', 'c', and 'e' (the second colon is superfluous). I.e., it has no magic meaning. Inside of [] it does have a special meaning. The pattern '[[:space:]]' matches a space, a

Re: [R] merge question

2014-06-29 Thread Michael Peng
you can get a new data frame by merge(qpiso, qplegit, all.x = TRUE, all.y = TRUE, by = iso ) Take the subtraction on the new data frame. 2014-06-29 11:24 GMT-05:00 Dr Eberhard Lisse nos...@lisse.na: I have two data frames like so qpiso iso requests 1A1 20 2A2 199

Re: [R] Analysis using repeated measure mixed effect anova

2014-06-29 Thread Michael Peng
For the t-test, you used the two-tailed t-test. It is the default. Here I think you should set alternative=less in the t.test function. 2014-06-29 8:41 GMT-05:00 dhs bravo0...@me.com: Trying to understand how to analyze my data, sample data follows. I want to know if the student scores

[R] Fwd: R Studio Not Working Windows 8.1

2014-06-29 Thread John C Frain
John C Frain 3 Aranleigh Park Rathfarnham Dublin 14 Ireland www.tcd.ie/Economics/staff/frainj/home.html mailto:fra...@tcd.ie mailto:fra...@gmail.com -- Forwarded message -- From: John C Frain fra...@gmail.com Date: 29 June 2014 22:26 Subject: Re: [R] R Studio Not Working Windows

[R] A Question about read.table and Data Frames in R

2014-06-29 Thread Robert Sherry
I created the following file: symbol,shares XOM,1000 APA,400 CVX,200 I then read the file in R using the command: stockList=read.table(/NotesOnR/stockList, header = T, sep=,) I would then expect the following expression to evaluate to the simple string APA: stockList$symbol[2]

Re: [R] merge question

2014-06-29 Thread Dr Eberhard W Lisse
Thanks, I then set NA to 0, and can do the sutraction, great. el On 2014-06-29, 22:32 , Michael Peng wrote: you can get a new data frame by merge(qpiso, qplegit, all.x = TRUE, all.y = TRUE, by = iso ) Take the subtraction on the new data frame. 2014-06-29 11:24 GMT-05:00 Dr

Re: [R] A Question about read.table and Data Frames in R

2014-06-29 Thread David Winsemius
On Jun 29, 2014, at 3:22 PM, Robert Sherry wrote: I created the following file: symbol,shares XOM,1000 APA,400 CVX,200 I then read the file in R using the command: stockList=read.table(/NotesOnR/stockList, header = T, sep=,) I would then expect the following expression to evaluate

Re: [R] merge question

2014-06-29 Thread Rolf Turner
On 30/06/14 10:32, Dr Eberhard W Lisse wrote: Thanks, I then set NA to 0, and can do the sutraction, great. Not so great. I haven't gone through the issues underlying this post, but replacing NA by 0 will almost surely yield nonsense. Missing is ***not*** the same thing as zero.

Re: [R] merge question

2014-06-29 Thread Dr Eberhard W Lisse
Thank you very much. el On 2014-06-30, 00:48 , Rolf Turner wrote: On 30/06/14 10:32, Dr Eberhard W Lisse wrote: Thanks, I then set NA to 0, and can do the sutraction, great. Not so great. I haven't gone through the issues underlying this post, but replacing NA by 0 will almost

[R] mixing grid and traditional graphics

2014-06-29 Thread Spencer Graves
I'm confused with the results I'm getting from mixing grid and traditional graphics. A toy example appears below: The png file created by gridFn() shows a label over Africa, as expected. However, when run interactively, a label appears for roughly half a second, then disappears.

[R] Change database in SQL Server using RODBC

2014-06-29 Thread Ira Sharenow
I wish to query tables that are NOT in the default SQL Server 2012 database. At work I am using SQL Server 2012 and Windows 7. I tested the following on my home set up of Server 2012 and Windows 7. I am using RStudio. I wish to connect to several SQL Server 2012 databases from R. This page

[R] R Functional/Failure Errors Questions

2014-06-29 Thread Peter Muenzfeld
Good Evening, I'm a graduate student working on a project looking at issues with R package submission and maintenance; specifically looking at the discovery and elimination of functional/failure package errors (i.e. does the package do what its supposed to do? is the underlying math correct?).

[R] From long to wide format

2014-06-29 Thread Jorge I Velez
Dear R-help, I am working with some data stored as filename.txt.gz in my working directory. After reading the data in using read.table(), I can see that each of them has four columns (variable, id, outcome, and rate) and the following structure: # sample data x2 - data.frame(variable =

Re: [R] Change database in SQL Server using RODBC

2014-06-29 Thread Frede Aakmann Tøgersen
Hi See inline below for my comments. Yours sincerely / Med venlig hilsen Frede Aakmann Tøgersen Specialist, M.Sc., Ph.D. Plant Performance Modeling Technology Service Solutions T +45 9730 5135 M +45 2547 6050 fr...@vestas.com http://www.vestas.com Company reg. name: Vestas Wind Systems A/S

[R-es] problema gráfica regresión

2014-06-29 Thread Juan Camilo Lara
Hola Estuve realizando un análisis de regresión y la primera vez que apliqué el siguiente código m-lm(reg$rendimiento~reg$densidades) plot(m) para obrener una serie de gráficos de los datos y los residuales, todo salió bien, sin embargo, cuando intenté obtener nuevamente los gráficos