[R] file.show() may have some bug?

2014-08-20 Thread PO SU
Dear Rusers, when i try file.show(" xxx.h") in Rstudio which using R3.0.2, it doesn't show anything. But when i use file.edit("xxx.h"),it shows the right file, It is the same thing happen to xxx.c file. May you explain it to me? -- PO SU mail: desolato...@163.com Majored in Statistics f

Re: [R] ggplot2: how to jitter spaghetti plot so slopes are preserved

2014-08-20 Thread Jeff Newmiller
Do the jittering yourself before you give the data to ggplot. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] ggplot2: how to jitter spaghetti plot so slopes are preserved

2014-08-20 Thread David Romano
Hi, Suppose I have a the data frame given by: > dput(toy.df) structure(list(id = c(1, 2, 1, 2), time = c(1L, 1L, 2L, 2L), value = c(1, 2, 2, 3)), .Names = c("id", "time", "value"), row.names = c(NA, 4L), class = "data.frame") that is: > toy.df id time value 1 11 1 2 21 2 3

Re: [R] Line Graph greater than 2 variables on plot

2014-08-20 Thread Duncan Mackay
Hi Try something like (as you have not given a reproducible example) library(lattice) xyplot(y1 + y2+ y3 ... ~ x, data = your data.frame, type = "b", allow.multiple = TRUE) Read ?xyplot CAREFULLY as there are many possibilities you may want to have a look at library(lattice) ?useOuterStrips

Re: [R] Installing RODBC

2014-08-20 Thread Jeff Newmiller
My guess is that you do not have the appropriate ODBC development library for your operating system installed. It is not unusual that R packages that provide interfaces to outside APIs require that those resources be installed and configured in the operating system before the relevant R library

[R] Line Graph greater than 2 variables on plot

2014-08-20 Thread Waseq Ziaie
Hi all, I was wondering if anyone knew how to construct a multiple line graph on R, where there are 2 (or more) sets of data points plotted against some x axis of data, and you can draw a line on the graph connecting each set of data points. for example: time..years. incidence

Re: [R] Installing RODBC

2014-08-20 Thread Marc Schwartz
On Aug 20, 2014, at 5:43 PM, William Deese wrote: > I tried installing RODBC but got the following message: > > Checks were yes until the following > > checking sql.h usability... no > checking sql.h presence... no > checking for sql.h... no > checking sqlext.h usability... no > checking sqlext

[R] Installing RODBC

2014-08-20 Thread William Deese
I tried installing RODBC but got the following message: Checks were yes until the following checking sql.h usability... no checking sql.h presence... no checking for sql.h... no checking sqlext.h usability... no checking sqlext.h presence... no checking for sqlext.h... no configure: error: "ODBC

Re: [R] DateTime wrong when exporting to csv in R

2014-08-20 Thread David Winsemius
On Aug 20, 2014, at 1:48 PM, David Winsemius wrote: > > On Aug 20, 2014, at 4:53 AM, Sneha Bishnoi wrote: > >> Hi All! >> >> This seems to be trival but I am not able to find a solution for it. >> I have a dataframe with datetime columns in form of ("%d/%m/%y %H:%M:%OS"). >> >> I write it to

[R] Fwd: DateTime wrong when exporting to csv in R

2014-08-20 Thread David Winsemius
The image file I prepared and attached did not make it through. Trying again. -- David Begin forwarded message: > From: David Winsemius > Subject: Re: [R] DateTime wrong when exporting to csv in R > Date: August 20, 2014 1:48:14 PM PDT > To: Sneha Bishnoi > Cc: r-help > > > On Aug 20, 2014

[R] ordinary kriging: the edges of the polygons are ignored

2014-08-20 Thread Federico Calboli
Hi All, I am trying to do some kriging of a floor, based on a number of heat sensors. My data looks like this: sensortempxy 1 1 1.25437406 390 2960 2 2 0.64384594 830 2960 3 3 1.52067733 1420 2960 4 4 1.21441928 3127 2920 5 5 1.04227694 400

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-20 Thread Don McKenzie
?dist from the help dist {stats}R Documentation Distance Matrix Computation Description This function computes and returns the distance matrix computed by using the specified distance measure to compute the distances between the rows of a data matrix. Is this what you want? Computing on

[R] Euclidean Distance in 3 Dimensions

2014-08-20 Thread Patzelt, Edward
R Community - I am attempting to write a function that will calculate the distance between points in 3 dimensional space for unique regions (e.g. localized brain regions such as the frontal lobe). For example I'm looking to compare each point in region 45 to every other region in 45 to establish

Re: [R] DateTime wrong when exporting to csv in R

2014-08-20 Thread David Winsemius
On Aug 20, 2014, at 4:53 AM, Sneha Bishnoi wrote: > Hi All! > > This seems to be trival but I am not able to find a solution for it. > I have a dataframe with datetime columns in form of ("%d/%m/%y %H:%M:%OS"). > > I write it to csv file. Whne i open the csv file the date time format are > in

Re: [R] DateTime wrong when exporting to csv in R

2014-08-20 Thread Saurabh Agrawal
Could you please post your code and some sample data? http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example On 20 August 2014 17:43, Sneha Bishnoi wrote: > Tried that..does not help :( > > > > On Wed, Aug 20, 2014 at 8:03 AM, Saurabh Agrawal > wrote: > >> Mayb

Re: [R] DateTime wrong when exporting to csv in R

2014-08-20 Thread Saurabh Agrawal
Maybe converting POSIXct to character string using "format" before writing to csv will help. On 20 August 2014 17:23, Sneha Bishnoi wrote: > Hi All! > > This seems to be trival but I am not able to find a solution for it. > I have a dataframe with datetime columns in form of ("%d/%m/%y > %H:%

Re: [R] as.Date woes

2014-08-20 Thread Peter Langfelder
Never mind... the solution was to read the source code of as.Date.character. It turns out the default format="" is meaningless. If 'format' is not given in the call to as.Date, it is NOT assumed to be "", and the function gives very different results from a call where the argument format="" is give

[R] as.Date woes

2014-08-20 Thread Peter Langfelder
Hi all, I have recently started working with Date objects and find the experience unsettling, to put it mildly. The help for as.Date says, in part: ## S3 method for class 'character' as.Date(x, format = "", ...) x: An object to be converted. format: A character string. If n

Re: [R] Negative values on output

2014-08-20 Thread John Kane
It appears you posted in HTML and what we get is an almost useles set of data. It is much better to supply it using dput() (and always post to the list in plain text not HTML. See https://github.com/hadley/devtools/wiki/Reproducibility of http://stackoverflow.com/questions/5963269/how-to-make-

Re: [R] DateTime wrong when exporting to csv in R

2014-08-20 Thread Duncan Mackay
Hi If you really need to have minutes and seconds etc in excel then use a package that can write datetime columns that excel can read eg. access rather that csv. Microsoft is well known for changing dates and date formats - remember excel is a worksheet application not a database - caveat emptor.

Re: [R] loading saved files with objects in same names

2014-08-20 Thread Duncan Murdoch
On 20/08/2014, 8:58 AM, Barry Rowlingson wrote: > On Tue, Aug 19, 2014 at 1:30 AM, Jinsong Zhao wrote: >> Hi there, >> >> I have several saved data files (e.g., A.RData, B.RData and C.RData). In >> each file, there are some objects with same names but different >> contents. Now, I need to compare

Re: [R] loading saved files with objects in same names

2014-08-20 Thread Barry Rowlingson
On Tue, Aug 19, 2014 at 1:30 AM, Jinsong Zhao wrote: > Hi there, > > I have several saved data files (e.g., A.RData, B.RData and C.RData). In > each file, there are some objects with same names but different > contents. Now, I need to compare those objects through plotting. > However, I can't find

Re: [R] DateTime wrong when exporting to csv in R

2014-08-20 Thread Jeff Newmiller
This problem is in Excel or your use thereof, not in R, and is therefore not technically "on topic" here. FWIW I am aware that localization of Excel can change the default date formats for input. I suspect that your installation of Excel has a different default date format than you are using in

Re: [R] DateTime wrong when exporting to csv in R

2014-08-20 Thread Sneha Bishnoi
Tried that..does not help :( On Wed, Aug 20, 2014 at 8:03 AM, Saurabh Agrawal wrote: > Maybe converting POSIXct to character string using "format" before writing > to csv will help. > > > > On 20 August 2014 17:23, Sneha Bishnoi wrote: > >> Hi All! >> >> This seems to be trival but I am not a

[R] DateTime wrong when exporting to csv in R

2014-08-20 Thread Sneha Bishnoi
Hi All! This seems to be trival but I am not able to find a solution for it. I have a dataframe with datetime columns in form of ("%d/%m/%y %H:%M:%OS"). I write it to csv file. Whne i open the csv file the date time format are in some number form . So even if I use custome settings from excel to