[R] unable to run JGR in windows 7

2009-12-17 Thread Krishna
e attention and support for installin and using JGR thanks and regards, krishna [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://ww

[R] How does ARules in R decide on LHS and RHS??

2015-05-07 Thread Krishna Kanth
I was trying to study arules in R and got stuck on this doubt: How does arules code decide which column to be in LHS and which in RHS?? [[alternative HTML version deleted]] __ R-help@r-project.org mai

[R] CRDW test

2009-08-12 Thread Radha Krishna
Hello All, Could any one of you kindly let me know , if there is an R package which has Cointegrated Regression Durbin Watson test ? lmtest package has a function dwtest but this is not for cointegrated systems, which uses different critical values Regards Radha [[alternative HTML versi

[R] Numbering sequences of non-NAs in a vector

2009-07-07 Thread Krishna Tateneni
Greetings, I have a vector of the form: [10,8,1,3,0,8,NA,NA,NA,NA,2,1,6,NA,NA,NA,0,5,1,9...] That is, a combination of sequences of non-missing values and missing values, with each sequence possibly of a different length. I'd like to create another vector which will help me pick out the sequences

Re: [R] Numbering sequences of non-NAs in a vector

2009-07-07 Thread Krishna Tateneni
Many thanks to all who responded, and especially for the promptness of your answers. The common thread in your solutions is the use of rle, a very useful function of which I was ignorant. --Krishna [[alternative HTML version deleted]] __ R

[R] 2 x 2 x 10 x 2 binomial setup

2009-07-14 Thread Suresh Krishna
Hello, I have a hierarchical dataset of this form and am trying to analyze it in R. 1 subject Tested under 2 conditions: A and B 10 sesssions in each condition In each session, 2 kinds of tests: Test 1 and Test 2 200 independent repetitions of each test-type, with 200 Yes/No answers So I th

Re: [R] graphs

2009-07-25 Thread Radha Krishna
Hi Mary, One can use arrows too... Here is the code : x<-seq(75,225,0.1) plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy') *arrows(149,0,149,dnorm(149,140,15),length=0) *par(new=T) plot(x,dnorm(x,mean=150, sd=15), type='l', col='orange',axes=F) Regards Radha On Sun, Jul 26, 2009 at 5:09

[R] data download from metastock into r-software

2009-12-17 Thread SNV Krishna
Hi All, is there a way to download data from metastock to R-software. most of my data is in date,OHLC format downloaded from reuters to metastock software in my local pc. many thanks for the help., krishna [[alternative HTML version deleted

[R] Write a blank line to CSV

2010-01-06 Thread Krishna Tateneni
age: > In write.table(NULL, "tables.csv", append = T, col.names = NA, : > appending column names to file I tried col.names=F in the write.csv call, but the argument is ignored, presumably because NULL does not have col.names. Is there a better way to insert the blank lines? Many t

Re: [R] Write a blank line to CSV

2010-01-06 Thread Krishna Tateneni
Perfect, thanks very much! On Wed, Jan 6, 2010 at 10:44 AM, Gabor Grothendieck wrote: > Try this: > > cat("\n", file = "tables.csv", append = TRUE) > > > On Wed, Jan 6, 2010 at 11:36 AM, Krishna Tateneni > wrote: > > Greetings and happy new ye

[R] nls + quasi-poisson distribution

2010-07-05 Thread Suresh Krishna
Hello R-helpers, I would like to fit a non-linear function to data (Discrete X axis, over-dispersed Poisson values on the Y axis). I found the functions gnlr in the gnlm package from Jim Lindsey: this can handle nonlinear regression equations for the parameters of Poisson and negative bi

[R] glm: formula vs character

2010-09-16 Thread Krishna Tateneni
following message: "Error in eval(predvars, data, env) : invalid 'envir' argument." Any insight into what is going on "under the hood"? Many thanks, --Krishna x1 = rnorm(100) x2 = rnorm(100) x3 = rnorm(100) y = x1 + 2*x2 + 3*x3 + 0.05*rnorm(100) d = data.frame(y,x1,x

[R] Hmisc label function applied to data frame

2010-12-02 Thread Krishna Tateneni
he data frame? Also, if there is a better way to achieve my goal of getting the correlations between all variable pairs, I'd love to know. Thanks in advance for any responses! --Krishna [[alternative HTML version deleted]] __ R-help@r-proje

Re: [R] Hmisc label function applied to data frame

2010-12-05 Thread Krishna Tateneni
Hello again, I have found that if I use sapply, I do not get a warning, i.e., lbl1 = sapply(d[,var1],label) works correctly and gives no warning. I'm sorry this did not occur to me earlier, my apologies! --Krishna On Thu, Dec 2, 2010 at 11:36 AM, Krishna Tateneni wrote: > Hello,

Re: [R] monthly median in a daily dataset

2010-12-21 Thread SNV Krishna
stion is clear. Any assistance will be greatly appreciated and many thanks for the same. Regards, Krishna Date: Sun, 19 Dec 2010 15:42:15 -0800 From: Dennis Murphy To: HUXTERE Cc: r-help@r-project.org Subject: Re: [R] monthly median in a daily dataset Message-ID: Content-Type: text/plai

[R] JGR installation problem

2010-12-29 Thread SNV Krishna
Hi All, I am trying to install JGR GUI for R (windows xp) but facing the problem. The following error message is displayed when I click on JGR.exe "Cannot find Java/R Interface (JRI) library (jri.dll) Please make sure you start JGR by double clicking the JGR.exe program" I know this is R help

[R] how to subset unique factor combinations from a data frame.

2011-01-03 Thread SNV Krishna
Hi All I have these questions and request members expert view on this. a) I have a dataframe (df) with five factors (identity variables) and value (measured value). The id variables are Year, Country, Commodity, Attribute, Unit. Value is a value for each combination of this. I would like to

Re: [R] how to subset unique factor combinations from a data frame.

2011-01-04 Thread SNV Krishna
ion Regards, SNVK -Original Message- From: Petr PIKAL [mailto:petr.pi...@precheza.cz] Sent: Tuesday, January 04, 2011 4:06 PM To: SNV Krishna Cc: r-help@r-project.org Subject: Odp: [R] how to subset unique factor combinations from a data frame. Hi r-help-boun...@r-project.org napsal

Re: [R] how to subset unique factor combinations from a data frame.

2011-01-04 Thread SNV Krishna
Hi Dennis, It worked! this is what I am looking for. Many thanks. Rgds, SNVK _ From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Tuesday, January 04, 2011 9:07 PM To: SNV Krishna Cc: r-help@r-project.org Subject: Re: [R] how to subset unique factor combinations from a data

[R] stats::reshape question

2010-08-06 Thread Krishna Tateneni
uot;long") I found myself surprised by the results--the column labeled "y" is actually the data from "x1" and "x2", and the column labeled "x" is actually the data from "y1" and "y2". Is this behaviour of reshape as intended? That

Re: [R] stats::reshape question

2010-08-06 Thread Krishna Tateneni
1.11 1 5 1 > 2.11 2 6 2 > 1.22 3 7 1 > 2.22 4 8 2 > > HTH, > Dennis > > On Fri, Aug 6, 2010 at 10:28 AM, Krishna Tateneni wrote: > >> Hello, >> >> A quick question for my edification. When I run the following (R 2.8.1 on >> Micros

[R] strength of seasonal component

2011-05-12 Thread SNV Krishna
seasonality? b) which gives a better estimate on seasonality stl() or a robust linear model like MASS::rlm(mean price ~ month), considering the fact that the variable analysed is price series. Many thanks for the insight and help Regards, Krishna [[alternative HTML version deleted

[R] error with geomap in googleVis

2011-06-06 Thread SNV Krishna
at/where could be the problem? Many thanks for the idea and support. Regards, SNV Krishna [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting g

[R] regex help: splitting strings with no separator

2010-05-19 Thread Krishna Tateneni
e with Google, but not turned up anything so far. Many thanks, --Krishna [[alternative HTML version deleted]] __ 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/

[R] syntax to subset for multiple values from a single variable

2011-04-06 Thread SNV Krishna
or b x y 1 a 1 2 b 2 9 a 9 12 b 12 > df[df$x %in% c('a','b'),] # subsetting using subscripts returned all rows x y 1 a 1 2 b 2 9 a 9 10 a 10 11 b 11 12 b 12 I know there might be a problem with subset syntax that I have used, but could&#

[R] how to start R script editor by default

2011-08-29 Thread SNV Krishna
Hi All, 1) Is it possible to set the options such that R opens a new script editor every time I start the R and 2) specify the size of windows. Thanks for the suggestion and Best regards, Krishna [[alternative HTML version deleted

[R] text matching

2011-09-19 Thread SNV Krishna
O" in it. I tried > grep("\.BO",tickers) Error: '\.' is an unrecognized escape in character string starting "\." > grep(".BO",tickers) [1] 1 Could any one please guide me on this. Many thanks for the help Best Reg

Re: [R] text matching

2011-09-19 Thread SNV Krishna
Hi, I noticed the mistake, first thing is double escape, so it should be "\\.BO" instead of "\.BO" . Second and more important observation is tickers$V1. Thanks for pointing out David and thank you all for the help. Best regards, Krishna -Original Message- F

[R] Grouped regression

2012-07-08 Thread Suresh Krishna
Hi, I am a very occasional user of R, and will be grateful for some help in constructing a regression across groups. Here is an example: library(MASS) attach(cats) Sex[120:144]<-factor(TG) #Renaming some males to transgender, to create 3 groups, male, female and transgender out<-lm(Bwt

[R] anova.lm and F-test

2012-07-09 Thread Suresh Krishna
Hello, Why does anova.lm sometimes return a p-value and at other times not ? Is it because it recognizes nested models from non-nested ones ? x<-seq(1,100,1) y<-3*x+rnorm(100) anova(lm(y~x),lm(y~x+I(x^2)),test="F") Analysis of Variance Table Model 1: y ~ x Model 2: y ~ x + I(x^2) Res.D

[R] customizing help, how to replace r.css of all packages

2012-03-13 Thread SNV Krishna
plorer can aggregate the files into a single window based on search criteria, but couldn't replace them. Is it possible to do this through R-software? Thanks in advance for the input and help. Regards, S.N.V. Krishna [[alterna

Re: [R] stats::reshape question

2012-02-16 Thread Krishna Tateneni
nction transposes the data for the "y" and "x" variables in the long form of the data without any warning. So to avoid the error I was running into, it is necessary to either make sure the arguments to varying and v.names are sorted correctly, or to use a list argument as Dennis h

[R] How to adaptively sample a simulated population of individuals

2008-05-31 Thread Krishna Pacifici
be greatly appreciated. Thank you very much, Krishna Krishna Pacifici Ph.D. Student Georgia Cooperative Fish and Wildlife Unit Warnell School of Forestry and Natural Resources University of Georgia Athens, GA 30602 (706) 248-9968 __ R-help@r-project.

Re: [R] R and reading matlab compressed files

2007-11-21 Thread Suresh Krishna
One possibility is to save in ASCII format from Matlab (save -ascii) Suresh > On 17/11/2007, Prof Leslie Smith <[EMAIL PROTECTED]> wrote: >> Is there any way to read these files (standard .mat files, created by >> matlab version 7 onwards are compressed)? I know that R.matlab doesn't >> read the

[R] locfit smoothing question (package maintainer not reachable)

2009-03-03 Thread Suresh Krishna
Dear list members, I am trying to understand this output from the smoothing package locfit (1.5-4, running on R 2.8.1 on Windows Vista 64 bit). # sample code x<-1:100 y<-rnorm(100) fit<-locfit(y~x,family="gaussian") #default parameters are fine plot(fit,band="global") #plot seems "reasona

Re: [R] locfit smoothing question (package maintainer not reachable)

2009-03-03 Thread Suresh Krishna
understand why there is such a difference between the two. If there is a simple explanation or recommendation, I am eager to hear it. Thanks, Suresh On Tue, 03 Mar 2009 16:56:43 +0100, Suresh Krishna wrote: Dear list members, I am trying to understand this output from the smoothing package

Re: [R] locfit smoothing question (package maintainer not reachable)

2009-03-03 Thread Suresh Krishna
David Winsemis wrote: I think you should read (or re-read) the locfit help page and *also* the links from that page to the help pages for locfit.raw and rv. I would have thought that since family= is not an argument to locfit per se, but rather is documented in locfit.raw that you have ye

Re: [R] locfit smoothing question (package maintainer not reachable)

2009-03-04 Thread Suresh Krishna
On Tue, 03 Mar 2009 22:10:42 +0100, David Winsemius wrote: That is what I thought to be the critical paragraph. The variance is assumed to be = 1 when you use family="gaussian" rather than the default of family="qgauss". You give it a vector, 1000*rnorm(100), that ranges widely and a sma

Re: [R] R newbie: how to replace string/regular expression

2008-11-03 Thread Krishna Dagli
earch("string")" and also looked at help.start() but I think it just displays whats available on my machine. Regards and Thanks Krishna __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

[R] socket server, textConnection and readLines

2008-12-16 Thread Krishna Dagli
select() call but how do I do the same in R. Thanks again for reading such a long email and thanks in advance for your pointers. Thanks and Regards Krishna __ 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.

[R] help with SSOAP (can't find working examples)

2009-11-02 Thread Hari Krishna Dara
First of all, let me confess that I am a newbie to R and don't know much about the language or the environment. We have a need for plugging in R in our production runtime and need the ability to pull data out of our existing services. I am trying to see if I can take advantage of SSOAP such that we

[R] issues with SSOAP when wsdl has ComplexTypes

2009-11-05 Thread Hari Krishna Dara
I recently started trying R and SSOAP and was able to successfully try a "hello world" service. I am now trying to get a more complicated interface to work with SSOAP and so far failed miserably at that and so need any help I can get from here. The service I am attaching is a prototype for a full

[R] summary(list) is awesome, but I want more than summary

2011-01-08 Thread Krishna Kirti Das
When I load a table from a data source and run summary() on it, the summary gives me basic summary statistics I'm looking for, and it also discriminates between quantitative and qualitative data and summarizes them accordingly. For example, if I do this: mydata <- read.table("data.txt")

[R] Unbalanced Anova: What is the best approach?

2011-04-03 Thread Krishna Kirti Das
I have a three-way unbalanced ANOVA that I need to calculate (fixed effects plus interactions, no random effects). But word has it that aov() is good only for balanced designs. I have seen a number of different recommendations for working with unbalanced designs, but they seem to differ widely (car

Re: [R] Unbalanced Anova: What is the best approach?

2011-04-03 Thread Krishna Kirti Das
in some of the discussions that using those were recommended for working with unbalanced designs. And specifying random effects with zero variance, for example, would probably serve my purposes. Thank you for your help. Sincerely, Krishna On Sun, Apr 3, 2011 at 7:28 AM, John Fox wrote:

Re: [R] Unbalanced Anova: What is the best approach?

2011-04-03 Thread Krishna Kirti Das
On Sun, Apr 3, 2011 at 3:10 AM, peter dalgaard wrote: > > On Apr 3, 2011, at 09:24 , Krishna Kirti Das wrote: > > > I have a three-way unbalanced ANOVA that I need to calculate (fixed > effects > > plus interactions, no random effects). But word has it that aov() is go

[R] rJava Package

2014-11-26 Thread Krishna Bhargava S K
Hi All, I am a beginner to R. I have installed tried a sample of JRI using Rengine and Rserve. I found normalization and sqrt function in some sample code. Is there any link where there is a list of functions that is provided in R which I can use t

[R] problem loading large xlsx file into r

2013-07-21 Thread S N V Krishna
required package: rJava > cftc = read.xlsx("d:\\Krishna\\Research\\CFTC_COT\\cftcdata.xlsx", 1) Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.OutOfMemoryError: Java heap space > sessionInfo() R version 3.0.1 (201

Re: [R] problem loading large xlsx file into r

2013-07-22 Thread S N V Krishna
adWorksheetFromFile("d:\\Krishna\\Research\\CFTC_COT\\cftcdata.xlsx", sheet > = 'Sheet1') Error: OutOfMemoryError (Java): Java heap space What is the maximum file size to load into R? is there a better way to load large excel files to R? Many thanks for the help. Regard

[R] Can anyone help why the errors are coming and rectify it?

2012-09-17 Thread Sri krishna Devarayalu Balanagu
Hi Everyone, Can anyone help why the errors are coming and rectify it? invalid.ids <- c(1,3,5) if (length(invalid.ids)==0) { cat("No Errors found") } else

[R] I want to send the vector a into the Object A.......

2012-09-17 Thread Sri krishna Devarayalu Balanagu
a=c(1,2,3) b=c(23, 24, 25) x=c("a", "b") #if (length(x[1]) == 0) {cat("x[1] is having 3 elements")} Suppose I want to send the vector a into the Object A, um getting only "a" as the ouput for Object A but not getting required output as the vector with the elements 1, 2, 3 with the following code

Re: [R] I want to send the vector a into the Object A.......

2012-09-18 Thread Sri krishna Devarayalu Balanagu
r paste(x[1], ".Arms", sep="") <- c(1,2,3) Error: could not find function "paste<-" Can you pls help From: Jean V Adams [mailto:jvad...@usgs.gov] Sent: Monday, September 17, 2012 10:24 PM To: Sri krishna Devarayalu Balanagu Cc: r-help@r-project.org Subject: Re:

[R] Why x[1] is not getting substituted?

2012-09-18 Thread Sri krishna Devarayalu Balanagu
Suppose I want the output as "Trial and a sheet" without quotes x=c("a", "b", "c") print("Trial and x[1] sheet") Getting "Trial and x[1] sheet" Can anyone help? Notice: The information contained in this electronic mail message is intended only for the use of the designated recipient. This messa

[R] How to get rid of page 1 and 4 i.e Only dots pages while generating the graphs?

2012-10-12 Thread Sri krishna Devarayalu Balanagu
Suppose I have "Orange1" data like this. TIME1 RESPONSE RESPSTAT RESPUT REFID ARM SUBARM 0 299.5 Mean 8-item scale 68 0 0 0 287 Median 8-item scale 68 0 0 0 303.9 Mean 8-item scale 68 1 0 0 286 Median 8-item scale 68 1 0 0 295 Mean 8-item scale 85 0 0 12

[R] EOF error reading csv file

2014-06-20 Thread S N V Krishna
TARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base > Many thanks for the help. Best regards, Krishna [[alternative HTML version deleted]] ___

Re: [R] EOF error reading csv file

2014-06-22 Thread S N V Krishna
Hi All, Thanks for the suggestions. It is the problem with that particular name which has single ' in it. I renamed and able to load the file. Best regards, S.N.V. Krishna -Original Message- From: David L Carlson [mailto:dcarl...@tamu.edu] Sent: Monday, June 23, 2014 12:29

[R] Why the result is coming as NULL?

2012-08-01 Thread Sri krishna Devarayalu Balanagu
Why the result is coming as NULL. Can anyone help. I want to find the outliers for a reference setwd("D:/AZ") library("RODBC") cdb_cnct <- odbcConnectExcel("Book1.xls") cdb_frame <- sqlFetch(cdb_cnct, "Sheet1") odbcClose(cdb_cnct) rm(cdb_cnct) x<- cdb_frame$Publication >=1990 & cdb_frame$Publi

[R] Why the error is coming while extracting the data from sheet?

2012-08-01 Thread Sri krishna Devarayalu Balanagu
Even though the sheet name Publication exists. The error is coming. Can anyone help? library("RODBC") cdb_cnct <- odbcConnectExcel("Copy of AZIF_DC_GVK_NSCLC_MSALL_287papers_02072012_141450_v1_4.xls") cdb_frame <- sqlFetch(cdb_cnct, "Publication") odbcClose(cdb_cnct) Error in odbcTableExists(ch

[R] How can we compare two vectors?

2012-08-08 Thread Sri krishna Devarayalu Balanagu
x=c(5, 8, 28, 29, 30) y=c(5, 8, 28, 29, 31) How can we compare these two vectors, whether each element is exactly matched with the elements in the other vector ? How can we get the non matched elements from both the vectors? Can anyone help? Notice: The information

[R] How can I get the Ids with Duplicated key and corresponding Ids with original key?

2012-08-13 Thread Sri krishna Devarayalu Balanagu
In this following example Id 4 is duplicated with Id 1. Like this I want both Ids (Duplicated and Duplicated with). Can anyone help? df <- data.frame( "Publication" = c(1, 2, 3, 1, 4, 5, 2, 3), "Reference" = c("a", "b", "c", "a", "d", "e", "b", "c"), "Id"= c(1, 2, 3, 4, 5, 6, 7, 8)

Re: [R] How can I get the Ids with Duplicated key and corresponding Ids with original key?

2012-08-13 Thread Sri krishna Devarayalu Balanagu
[mailto:j...@bitwrit.com.au] Sent: Monday, August 13, 2012 3:37 PM To: Sri krishna Devarayalu Balanagu Cc: r-help@r-project.org Subject: Re: [R] How can I get the Ids with Duplicated key and corresponding Ids with original key? On 08/13/2012 07:17 PM, Sri krishna Devarayalu Balanagu wrote: > &

[R] Can we interlink these three if conditions?

2012-08-13 Thread Sri krishna Devarayalu Balanagu
key1.=c(1, 2, 3) key2.=c(2) if (identical(key1.,key2.) == "TRUE") { cat("No Errors found") } if (length(setdiff(key1., key2.)) !=0){

[R] Not able to filter factor, class

2012-08-14 Thread Sri krishna Devarayalu Balanagu
After importing data from Excel through ODBC. In the inclusion dataset, class(inclusion$Value) is coming as factor. After filtering the data, length(inclusion$Value == 0),the answer is coming as 4879, but actually Value contains only 225 rows. So how can I get the length as 225. Can anyone help?

[R] How can we compare corresponding values of x and y (first value of x exacly matches with the first value of y)?

2012-08-17 Thread Sri krishna Devarayalu Balanagu
df <- data.frame ( "RowId" = 4:7, "x"=c("1_1", "2_2", "3_3", "3_3"), "y"=c("1_1", "3_3", "2_2", "3_3") ) How can we compare corresponding values of x and y (first value of x exacly matches with the first value of y)? If they were not matced exactly how can w

[R] Error: level sets of factors are different?

2012-08-17 Thread Sri krishna Devarayalu Balanagu
Why the error is coming? even though the length of outcome.new$compkey and outcome.new$armkey were exactly same. Can anyone help? setwd("D:/AZ") library("RODBC") cdb_cnct <- odbcConnectExcel("AZIF_DC_GVK_NSCLC_MSALL_287papers_02072012_141450_v1_4.xls") outcomes <- sqlFetch(cdb_cnct, "Outcomes_in

[R] Why the error is coming, can anyone help?

2012-09-06 Thread Sri krishna Devarayalu Balanagu
Hi everyone Can anyone help? x = c("Treatment", "Planned", "Actual", "Demographics", "Outcomes") for (i in x) { df <- paste(i)[, c("Reference_ID", "Arm_ID")] unique(df) -> uniq as.data.frame(table(uniq$Reference_ID)) -> y i.Arms<- paste(y$Var1, y$Freq, sep="_") Print_Message("Check for the Total N

[R] How to find the non matching vectors among these five, if so how we can find the non matching element of that vectors?

2012-09-06 Thread Sri krishna Devarayalu Balanagu
Hello, Say all the below five vectors should have same elements in any situation. How to find the non matching vectors among these five, if so how we can find the non matching elements of those vectors? Can anyone help? a=c(1,2,3) b=c(1,2,3,4) c=c(1,2,3) d=c(1,2,3) e=c(1,4,5) identical(a,b,c,d,e

Re: [R] Why the error is coming, can anyone help?

2012-09-07 Thread Sri krishna Devarayalu Balanagu
Thank you for the answer. It's working. But the error occurring here also df <- paste(i)[, c("Reference_ID", "Arm_ID")] How to get rid of that. -Original Message- From: William Dunlap [mailto:wdun...@tibco.com] Sent: Thursday, September 06, 2012 10:15 P

[R] Not getting correct graphs

2012-03-31 Thread Sri krishna Devarayalu Balanagu
Hi all, Can anybody debug the following programme, as I am getting some Junk graphs in the pdf. Please find the attached raw data file. Thank you Regards Rayalu library(ggplot2) setwd("D:\\General Check list") library(RODBC) conn <- odbcConnectExcel ("Book1.xls") Orange1 <- sqlFetch (conn, "Shee

[R] Not generating line chart

2012-01-18 Thread Sri krishna Devarayalu Balanagu
Hi All, Can you please help me, why this code in not generating line chart? library(ggplot2) par(mfrow=c(1,3)) #qplot(TIME1, BASCHGA, data=Orange1, geom= c("point", "line"), colour= ACTTRT) unique(Orange1$REFID) -> refid for (i in refid) { Orange2 <- Orange1[i == Orange1$REFID, ] pdf('PGA.pdf

[R] Legend problem in line charts

2012-01-19 Thread Sri krishna Devarayalu Balanagu
Hi all, Small problem in generating the line charts. Question: Legend for the first graph is coming wrong., for second graph correctly. Please fix the legend postion at the down of graph. Plesae give me the solution. Thank you Devarayalu Orange1 <- structure(list(REFID = c(7, 7, 7, 7, 7,

[R] Legend appearance

2012-01-20 Thread Sri krishna Devarayalu Balanagu
Hi All, I want small modification in apperance of legend. I want seperate legend for each graph representing the lines present in that graph only (not all the lines in all graphs) . Can you please help? Thank you Regards Devarayalu Orange1 <- structure(list(REFID = c(7, 7, 7, 7, 7, 7, 7, 7, 8,

[R] error in data.frame(...., check.names = FALSE)

2012-01-21 Thread Sri krishna Devarayalu Balanagu
Hi all, Error is coming as "error in data.frame(, check.names = FALSE): arguments has differents counts of rows: 0, 18" for the following code. Can you please help? Thank you Devarayalu library(ggplot2) setwd("D:\\General Check list") library(RODBC) conn <- odbcConnectExcel ("Book1.xls")

[R] Error is coming as NULL

2012-01-23 Thread Sri krishna Devarayalu Balanagu
Hi all, A small problem raising. Suppose the follow raw data is stored in a csv file. And the error is coming as NULL with the following code. Can you please help? Thank you in advance. SUBJCET 1Ito 1Ito 1Ito 1Ito 1Ito 1Ito read.csv(

[R] Error is coming as NULL

2012-01-24 Thread Sri krishna Devarayalu Balanagu
Hi All, This is the file which I want to import into R After importing and querying the data, error is coming as null. read.csv("Noname3.csv", header=T) -> FD FD$SUBJECT NULL Can please help? Regards Devarayalu __ R-help@r-project.org mailing list

[R] R newbie: how to replace string/regular expression

2008-11-02 Thread Krishna Dagli/Krushna Dagli
;M", "", d, ignore.case=T) y[location]<-y[location] * 10e6 Is the second solution faster or (if) combination of grep along with multiply (if it works) is faster? Or what is the most efficient method to do something like this in R? Thanks and Regards Krishna ___