Re: [R] Help with R script

2017-07-14 Thread Vijayan Padmanabhan
these solutions.. Thanks & Regards VP From: Ulrik Stervbo To: "MacQueen, Don" , Vijayan Padmanabhan , "r-help@r-project.org" Date: 14-07-2017 10:39 Subject:Re: [R] Help with R script @Don your

[R] Help with R script

2017-07-13 Thread Vijayan Padmanabhan
Dear R-help Group Scenario 1: I have a text file running to 1000 of lines...that is like as follows: [922] "FieldName: Wk3PackSubMonth" [923] "FieldValue: Apr" [924] "FieldName: Wk3PackSubYear" [925] "FieldValue: 2017" [926] "FieldName: Wk3Code1" [927] "FieldValue: " [928] "FieldVal

[R] field values from text file to dataframe

2017-03-11 Thread Vijayan Padmanabhan
Dear r-help group I have a text file which is a data dump of a pdf form as given below.. I want it to be converted into a data frame with field name as column names and the field value as the row value for each field. I might have different pdf forms with different field name value pairs to process

[R] reading form data from pdf forms

2017-03-10 Thread Vijayan Padmanabhan
Dear R-Help group Is there any way that I can programmatically extract form field values from a pdf form (either saved as pdf or fdf) in R? I would wish to not be dependent on any Paid tool for this purpose. Any guidance would be much appreciated. Regards VP [[alternative HTML version del

[R] Plot of Word Frequency between two groups..

2014-02-16 Thread Vijayan Padmanabhan
Dear R Group Does anyone know of a R plotting script that can plot wordfrequency comparison between two groups in a manner similar to this plot as shown in the following link? http://www.nytimes.com/interactive/2012/09/06/us/politics/convention-word-counts.html?_r=0 Regards Vijayan Padmanabhan

[R] GUI Development reg

2012-11-14 Thread Vijayan Padmanabhan
display elements in "object a" as a drop down list.. from there I want to be able to select a few elements say my requirement is to select "A", "D" and "E" from the list and want to pass the selection into a new vector b, such that b<-c("A",

Re: [R] win zip archive of library(HH) for R2.12.0

2012-02-26 Thread Vijayan Padmanabhan
Thank you.. I cant imagine that I missed the most obvious route from my attempt! Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide. Uwe Ligges 02/27/2012 12:57 PM To Vijayan Padmanabhan cc "R. Michael Weylandt" ,

Re: [R] win zip archive of library(HH) for R2.12.0

2012-02-26 Thread Vijayan Padmanabhan
a local drive path and ran the following command at R Prompt.. It works! install.packages("H:/RPackages/HH_2.1-32.tar.gz", repos = NULL, type="source") Thanks Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide.

Re: [R] win zip archive of library(HH) for R2.12.0

2012-02-26 Thread Vijayan Padmanabhan
Dear Michael I checked this link.. the archives shown here are all tar.gz versions. I am looking for a zip archive, to install on my windows XP installation of R 2.12.0. pl help if you have the link to windows archives. Thanks Regards Vijayan Padmanabhan "What is expressed without proof c

[R] win zip archive of library(HH) for R2.12.0

2012-02-26 Thread Vijayan Padmanabhan
Dear R Group Can any body point me to a link from where I can get zip archive of the package HH for R 2.12.0? Thanks & Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide. Please visit us at www

[R] Suggestion on Model Def - reg in nlme

2012-02-26 Thread Vijayan Padmanabhan
| Subject)") summary(model) x<-anova(model) print(x) summary(glht(model,linfct=mcp(Time="Tukey"))) plot(summary(glht(model,linfct=mcp(Time="Tukey"))),cex.axis=0.6) summary(glht(model,linfct=mcp(Treatment="Tukey"))) plot(summary(glht(model,linfct

[R] add.cross.strata.test function query

2012-02-21 Thread Vijayan Padmanabhan
how can i modify the htest argument in the above function to permit running chi-square on each strata? I know add.chi.squared() will help, but if i want to use the add.cross.strata.test, then what change in chi-squared function should i carry out to overcome this error? Regards Vijayan Padma

[R] help with matrix column cleaning

2012-02-13 Thread Vijayan Padmanabhan
referrably that i can apply to the matrix object to check for the beginning letter of each cell from each row and delete columns that have more than one row having the same start letter. Thanks for your help. Regards Vijayan Padmanabhan "What is expressed without pro

[R] random value generation with added constraint.

2011-08-04 Thread Vijayan Padmanabhan
only take values between say X to X+25 How do i do this in R? Any help would be highly appreciated,. Thanks Vijayan Padmanabhan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] how to subtract one string from another in R

2011-06-18 Thread Vijayan Padmanabhan
roup too.. sometime. Regards Vijayan Padmanabhan On Sat, Jun 18, 2011 at 4:12 PM, Dennis Murphy wrote: > Hi: > > I think I misread your intentions the first time. Is this more in line > with what you want? > > f <- function(s) { > ssp <- unlist(strsplit(string, &q

[R] how to subtract one string from another in R

2011-06-18 Thread Vijayan Padmanabhan
to achieve this? string2<-string-string1 (it should now hold "DEFG HIJKLM NOPQ RSTUV WXY" I want to loop this till i reach the end of the original string.. stringn<-"WXY" Any help would be appreciated. Regards Vijayan Padmanabhan

Re: [R] lattice plot query

2011-06-10 Thread Vijayan Padmanabhan
, "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234

[R] lattice plot query

2011-06-09 Thread Vijayan Padmanabhan
;,)) } } ##On examining the pdf file, you wil find that the order of subjects as appearing in each page of plot is different. ## I would want the order of subjects to appear in the same order as ##follows: "S1","S3","S4","S5","S6","

[R] library(SenoMineR)- Triangle Test Query

2011-06-04 Thread Vijayan Padmanabhan
utput which shows that product 2 is preferred over 3 all the time. Can somebody explain what is wrong in my script? answer<-as.vector(design$Response) preference<-as.vector(design$Preference) triangle.test (design[,1:3], answer,preference) ##$pref output from the triangle.test function

[R] dataframe - column value calculation in R

2011-05-26 Thread Vijayan Padmanabhan
9.110433579 Treatment2 1 2 35 1 3 10.24695077 Treatment2 2 1 34 2 3 7.071067812 Treatment2 2 2 28 2 1 1.414213562 Can someone help me figure out a way of acheiving this in R using a function call for the last column? Hope this example helps. Regards Vijayan Padmanabhan Please visit us at

[R] Password-protect R script files

2011-04-10 Thread Vijayan Padmanabhan
route, however making available such a method in the open forum would only kill the very spirit of R. But if someone is able to convince me the genuineness of his reasons to achieve such a purpose, I might decide to provide selective service to achieve the same. Regards Vijayan Padmanabhan

[R] Hypercluster Finder Function in R

2011-04-07 Thread Vijayan Padmanabhan
in R already Does someone know if there is any package that exists for running this algorithm? or does anybody have a function developed on this basis? Thanks Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide. Please visit us at www

Re: [R] help

2011-04-04 Thread Vijayan Padmanabhan
) options(useFancyQuotes=FALSE) system(noquote(paste("pdftools -S",dQuote(paste("attachfiles=C:\\test1.pdf|C:\\Document-1.pdf")), paste("-i C:\\test2.pdf -o C:\\test3.pdf")))) Regards Vijayan Padmanabhan On Sun, Apr 3, 2011 at 5:21 PM, Mike Marchywka wrote: > > > &

[R] help

2011-04-02 Thread Vijayan Padmanabhan
from my system as attachment into the newly created pdf file. Any help would be greatly appreciated.. Here is the command line script i want to execute from within R. pdftools -S "attachfiles=C:\test1.pdf" -i C:\test2.pdf -o C:\test4.pdf Regards Vijayan Padmanabhan [[altern

[R] transform a df with a condition

2011-01-17 Thread Vijayan Padmanabhan
tion<-function(z) { tmp <- lapply(split(z, z[,4]), function(x) within(x, if(A==3)B <- 5 )) dat2<-tmp df<-unsplit(dat2,df$ID) tmp <- lapply(split(df, df[,4]), function(x) within(x, if(A==3)K <- chartr("f","m",K))) dat2<-tmp df<-unsplit(dat2,df$I

Re: [R] randomForest - PartialPlot - reg

2010-09-24 Thread Vijayan Padmanabhan
Thanks for the elaborate detailing. I see sense now. Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide. "Liaw, Andy" 09/24/2010 04:31 PM To "Vijayan Padmanabhan" , "r-help" cc Subject RE: [R] r

[R] randomForest - PartialPlot - reg

2010-09-22 Thread Vijayan Padmanabhan
? A straight forward Textual interpretation of the output from the experts in this area, would help me understand this concept of marginal effect being plotted for the variable "Sepal.Length" on the which.class=setosa. Thanks for your help. Regards Vijayan Padmanabhan "What is ex

[R] randomForest - partialPlot - Reg

2010-09-21 Thread Vijayan Padmanabhan
y axis can display value more than -1 for some variables? Am i missing something! Thanks Regards Vijayan Padmanabhan Can you avoid printing this? Think of the environment before printing the email. --- Please v

[R] Help with HB analysis in R for a conjoint study Data

2010-09-09 Thread Vijayan Padmanabhan
ly how to model this example data and interpret it). Thanks in Advance. Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide. Can you avoid printing this? Think of the environment befor

[R] Maxdiff Analysis in R

2010-09-09 Thread Vijayan Padmanabhan
Dear Group Does anybody have an example data and R Script for analysis of Maxdiff study in R. Thanks & Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide. Can you avoid printing this? Think of the environment before prin

[R] Help with repeating values in a column of dataframe in R on a random pattern- reg

2010-09-07 Thread Vijayan Padmanabhan
s 0 again, for the next 3 rows of that column i would want this order differently say 1,0,0 and so on.. Can anybody help how i can acheive this. Thanks. Regards Vijayan Padmanabhan Can you avoid printing this? Think of the environment before printing the em

Re: [R] Query on linear mixed model

2010-05-18 Thread Vijayan Padmanabhan
Thanks Ista.. I will take your suggestion. Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide. Ista

Re: [R] Query on linear mixed model

2010-05-18 Thread Vijayan Padmanabhan
Thanks Joshua.. It really helped in polishing my coding essentials in R. Thanks & Regards Vijayan Padmanabhan "What is expressed without proof can be denied without proof" - Euclide.

[R] Query on linear mixed model

2010-05-18 Thread Vijayan Padmanabhan
erent products for the measured response? Regards Vijayan Padmanabhan Research Scientist, ITC R&D, Phase I, Peenya, Bangalore - 58 The Full R script is given below: MyData <- data.frame(Subj = factor(rep(c("S1", "S2", "S3"), 18)), Product = factor(rep(letters[1:3],eac

[R] Query on linear mixed model

2010-05-17 Thread Vijayan Padmanabhan
erent products for the measured response? Regards Vijayan Padmanabhan Research Scientist, ITC R&D, Phase I, Peenya, Bangalore - 58 The Full R script is given below: MyData <- data.frame(Subj = factor(rep(c("S1", "S2", "S3"), 18)), Product = factor(rep(letters[1:3],eac