Re: [R] Hadamard transformation

2023-09-18 Thread mohan radhakrishnan
Hello, It really helped. Thanks. On Mon, Sep 18, 2023 at 11:46 PM Rui Barradas wrote: > Às 18:45 de 18/09/2023, mohan radhakrishnan escreveu: > > Hello, > > > > I am attempting to port the R code which is an answer to > > > https://codegolf.stac

[R] Hadamard transformation

2023-09-18 Thread mohan radhakrishnan
Hello, I am attempting to port the R code which is an answer to https://codegolf.stackexchange.com/questions/194229/implement-the-2d-hadamard-transform function(M){for(i in 1:log2(nrow(M)))T=T%x%matrix(1-2*!3:0,2)/2; print(T); T%*%M%*%T} The code, 3 inputs and the corresponding outputs are

Re: [R] Median of streaming data

2014-09-30 Thread Mohan Radhakrishnan
Hi, I came across this project(http://jwijffels.github.io/RMOA/) which seems to be directly addressing streaming prediction. From the manual : A data stream environment has different requirements from the traditional setting. The most significant are the following: Requirement 1 Process

Re: [R] [rJava] RJavaClassLoader and system classloader

2014-09-30 Thread Mohan Radhakrishnan
Hi, You could ask the author or post an issue here .( https://github.com/s-u/rJava) I had faced a problem and I got a response from him. In my case I am streaming JVM data and this( http://www.openanalytics.eu/r-service-bus) may be a better idea. I haven't still tried this. Thanks,

Re: [R] hadley's book

2014-09-29 Thread Mohan Radhakrishnan
Does this shed some light on advanced R that ML tools h2o use ? MapR could also be using distributed R. Thanks, Mohan On Mon, Sep 29, 2014 at 9:43 PM, John McKown john.archie.mck...@gmail.com wrote: Thanks for the heads up. I just ordered it. Curiously, I can't read it using the Cloud Reader

[R] Agreement accuracy

2014-09-25 Thread Mohan Radhakrishnan
Hi, I have trained my data using two models(gbm and rf). I get the accuracies shown below. How does one get the aggreement accuracy% ? Is that the comparison of the two confusion matrices ? Confusion Matrix and Statistics Reference Prediction 1 2 3 4 5 6 7 8 9 10 11

Re: [R] Agreement accuracy

2014-09-25 Thread Mohan Radhakrishnan
I am also wondering how the Accuracy reported by the confusion matrix for gbm and rf could vary with the type of machines. The seed is the same. What other factors could affect the accuracy ? library is caret. Thanks, Mohan On Thu, Sep 25, 2014 at 2:30 PM, Mohan Radhakrishnan radhakrishnan.mo

Re: [R] Median of streaming data

2014-09-24 Thread Mohan Radhakrishnan
Hi, Are these free ? :-) Thanks, Mohan On Wed, Sep 24, 2014 at 1:46 PM, Martin Maechler maech...@stat.math.ethz.ch wrote: Rolf Turner r.tur...@auckland.ac.nz on Wed, 24 Sep 2014 18:43:34 +1200 writes: On 24/09/14 17:31, Mohan Radhakrishnan wrote: Hi, I

Re: [R] Median of streaming data

2014-09-24 Thread Mohan Radhakrishnan
2014 09:17 To: Rolf Turner Cc: R-help@r-project.org; r-sig-rob...@r-project.org Subject: Re: [R] Median of streaming data Rolf Turner r.tur...@auckland.ac.nz on Wed, 24 Sep 2014 18:43:34 +1200 writes: On 24/09/14 17:31, Mohan Radhakrishnan wrote: Hi, I have

[R] Median of streaming data

2014-09-23 Thread Mohan Radhakrishnan
Hi, I have streaming data(1 TB) that can't fit in memory. Is there a way for me to find the median of these streaming integers assuming I can fit only a small part in memory ? This is about the statistical approach to find the median of a large number of values when I can inspect only a

Re: [R] Training a model using glm

2014-09-18 Thread Mohan Radhakrishnan
be nice too). I suspect that Dennis is correct. Try using more normal syntax without the $ indexing in the formula. I wouldn't say it is (absolutely) wrong but it doesn't look right either. Max On Wed, Sep 17, 2014 at 2:04 PM, Mohan Radhakrishnan radhakrishnan.mo...@gmail.com wrote: Hi

Re: [R] Training a model using glm

2014-09-18 Thread Mohan Radhakrishnan
- predict(preProc, test2) modelFitpca - train(training1$diagnosis ~ .,method=glm,data=trainpca) confusionMatrix(test1$diagnosis,predict(modelFitpca, testpca)) Mohan On Thu, Sep 18, 2014 at 12:43 PM, Mohan Radhakrishnan radhakrishnan.mo...@gmail.com wrote: Oh. I understand now. There is nothing

[R] Training a model using glm

2014-09-17 Thread Mohan Radhakrishnan
I answered this question which was part of the online course correctly by executing some commands and guessing. But I didn't get the gist of this approach though my R code works. I have a training and test dataset. nrow(training) [1] 251 nrow(testing) [1] 82 head(training1) diagnosis

Re: [R] Training a model using glm

2014-09-17 Thread Mohan Radhakrishnan
as covariates. Dennis On Tue, Sep 16, 2014 at 11:15 PM, Mohan Radhakrishnan radhakrishnan.mo...@gmail.com wrote: I answered this question which was part of the online course correctly by executing some commands and guessing. But I didn't get the gist of this approach though my R code works

Re: [R] ggplot y-axis labels are not continuous

2014-09-14 Thread Mohan Radhakrishnan
or integer. Dennis On Sat, Sep 13, 2014 at 12:53 PM, Mohan Radhakrishnan radhakrishnan.mo...@gmail.com wrote: Hi, This is the code to create a ggplot. The plot is rendered but the y-axis labels are not continuous. So the lines are split. Moreover multiple y-axis labels overwrite each other

Re: [R] ggplot y-axis labels are not continuous

2014-09-14 Thread Mohan Radhakrishnan
guessing value is a factor. It needs to be numeric or integer. Dennis On Sat, Sep 13, 2014 at 12:53 PM, Mohan Radhakrishnan radhakrishnan.mo...@gmail.com wrote: Hi, This is the code to create a ggplot. The plot is rendered but the y-axis labels are not continuous. So the lines are split

Re: [R] ggplot y-axis labels are not continuous

2014-09-14 Thread Mohan Radhakrishnan
I have more control over labels using David's suggestion. scale_y_continuous(breaks=seq(min(df.melted$value)-2,max(df.melted$value),by=170) Thanks, Mohan On Mon, Sep 15, 2014 at 10:14 AM, Mohan Radhakrishnan radhakrishnan.mo...@gmail.com wrote: options(scipen=100, digits=4

[R] ggplot y-axis labels are not continuous

2014-09-13 Thread Mohan Radhakrishnan
Hi, This is the code to create a ggplot. The plot is rendered but the y-axis labels are not continuous. So the lines are split. Moreover multiple y-axis labels overwrite each other due to this. How can I fix this? If I try to set ylim I get *Discrete value supplied to continuous scale*

Re: [R] R, Big Data and books

2014-09-11 Thread Mohan Radhakrishnan
This too. Applied Predictive Modeling Max Kuhn • Kjell Johnson Thanks, Mohan On Tue, Sep 9, 2014 at 10:03 PM, Subba Rao raspb...@tanucoo.com wrote: Hi, I am interested in R programming in the Big Data space. Are there any books that would be a good starting point for this career path?

[R] Solving equations

2014-09-07 Thread Mohan Radhakrishnan
Hi, I code R to parse data but not for solving equations. So this is my first such problem. It is a programming puzzle. I have these two equations. 1)4x - 3w = 0 2)8x - 7w =0 I know the value of x and w for equation 1). x = 3 and w = 4 equation 2). x = 7 and w = 8 I also

Re: [R] Solving equations

2014-09-07 Thread Mohan Radhakrishnan
. Mohan On Mon, Sep 8, 2014 at 12:31 AM, Rui Barradas ruipbarra...@sapo.pt wrote: Hello, Inline. Em 07-09-2014 09:54, Mohan Radhakrishnan escreveu: Hi, I code R to parse data but not for solving equations. So this is my first such problem. It is a programming puzzle. I have

[R] Error: C stack usage

2014-06-16 Thread Mohan Radhakrishnan
Hi, I am not relating this to shiny but this error was thrown by my shiny server code. Does it have anything to do with low memory settings ? I am spawning a JVM using rJava. That JVM is using the attach API to connect to another JVM Thanks, Mohan Error: C stack usage 140730070087404 is

Re: [R] Simple Error Bar

2013-12-06 Thread mohan . radhakrishnan
The latest code I have put together is this. Could you point out what is missing here ? #Reference values plotted on x-axis. These are constant. #These values could be time of day. So every day at the same #time we could collect other measurements referenceset -

[R] Simple Error Bar

2013-12-05 Thread mohan . radhakrishnan
Hi, Basic question with basic code. I am simulating a set of 'y' values for a standard 'x' value measurement. So here the error bars are very long because the number of samples are very small. Is that correct ? I am plotting the mean of 'y' on the 'y' axis. Thanks, Mohan x

Re: [R] Functional Programming patterns

2013-11-25 Thread mohan . radhakrishnan
Thanks. It is very useful. Mohan From: Hadley Wickham h.wick...@gmail.com To: mohan.radhakrish...@polarisft.com Cc: R-help r-help@r-project.org Date: 11/20/2013 06:46 PM Subject:Re: [R] Functional Programming patterns I have some notes on functional programming in R at

[R] Functional Programming patterns

2013-11-20 Thread mohan . radhakrishnan
Hi, ' Not specific to 'R'. I search for patterns and found http://patternsinfp.wordpress.com/ which is too heavy for me. There is a 'Pragmatic Programmer' book on such patterns for Scala and Clojure. Is there anything for R ? I wanted to code this. Is there a functional pattern in R for

[R] Show time in x-axis

2013-11-11 Thread mohan . radhakrishnan
Hi, I am trying to show time( HH:MM:SS) in my x-axis. I have these two questions. 1. The error in the code is Error in axis(1, at = data$Time, labels = data$Time, las = 2, cex.axis = 1.2) : (list) object cannot be coerced to type 'double' Should I use 'POSIXCt' or 'strptime' ?

[R] Graph dashboard

2013-11-08 Thread mohan . radhakrishnan
Hi, I have been exploring graph dashboards like http://sematext.com/img/products/spm/spm-solr-overview.png. I use R but haven't attempted to create a dashboard like this. I am thinking of parsing logs and showing dynamic logs - logs that fit into a small window but move left or right

Re: [R] All curves with same y-axis scale

2013-11-05 Thread mohan . radhakrishnan
=Time(Every 200 Seconds)) points(data$Time,as.numeric(data$Committed), col=orangered,pch=16,lwd=2, cex.lab=1.2,cex.axis=1,type=b) points(data$Time,as.numeric(data$Max), col=palevioletred3,pch=16,lwd=2, cex.lab=1.2,cex.axis=1,type=b) dev.off() Jim [attachment mk.png deleted by Mohan

[R] All curves with same y-axis scale

2013-11-04 Thread mohan . radhakrishnan
Hi, When I plot 3 curves with the same x-axis and same y-axis, the first two curves honor the y-axis but the last one doesn't. When I remove yaxt=n for the last curve a new scale appears on the y-axis along with the scales that the first two curves use. I want all curves to use the same y-axis

Re: [R] All curves with same y-axis scale

2013-11-04 Thread mohan . radhakrishnan
Hi, I changed the code. The first two curves seem to plot properly without the 'ylim'. 'ylim' doesn't allow the first two curves to plot properly. It doesn't have any effect on the 3rd curve.

Re: [R] Replace element with pattern

2013-11-03 Thread mohan . radhakrishnan
Hi, How do we extract the numbers into an array or data frame assuming the rows of text is in a data frame ? head(a) Col1 1 Current Usage : init:2359296 used:15857920,committed:15892480,max:50331648| 2 Current Usage : init:2359296 used:15857920,committed:15892480,max:50331648| The

Re: [R] Replace element with pattern

2013-11-03 Thread mohan . radhakrishnan
Please ignore. This works. str_extract_all(a$Col1,[0-9]+(,|/|)) Mohan From: mohan.radhakrish...@polarisft.com To: arun smartpink...@yahoo.com Cc: R help r-help@r-project.org Date: 11/04/2013 12:22 PM Subject:Re: [R] Replace element with pattern Sent by:

[R] Replace element with pattern

2013-11-01 Thread mohan . radhakrishnan
Hi, I have a data frame with one column and several rows of the form. Peak Usage: init:2359296, used:15859328, committed:15892480, max:50331648Current Usage : init:2359296, used:15857920, committed:15892480, max:50331648|---| I tested the regex Current.*?[\|]

Re: [R] Replace element with pattern

2013-11-01 Thread mohan . radhakrishnan
Thanks. I converted my data structure( that is most of the confusion in my case ) into a data frame and then applied this function y - apply( y, 1, function(z) str_extract(z,Current.*?[/|])) to get Current Usage : init:2359296, used:15857920, committed:15892480, max:50331648| Mohan From:

Re: [R] Growth calculation

2013-10-08 Thread mohan . radhakrishnan
Hi, I came across this type of growth rate( http://data.princeton.edu/eco572/grdt.html ) analysis. But I have the number of user sessions as a plot of numbers varying over time. There are two curves. and the second curve has more sessions but they vary over time. Users login and

[R] Growth calculation

2013-10-07 Thread mohan . radhakrishnan
Hi, This is not a sophisticated statistics question as the subject suggests. But I am logging data - number of user sessions in a web application - before and after new users are migrated. I use R to graph but I am looking for a way to quantify the growth in the number of user sessions.

[R] Locating inefficient code

2013-09-27 Thread mohan . radhakrishnan
Hi, I have been using R for a few months and I have this working code. Don't seen any problem but this takes a long time. So if I have about 3 rows it takes a few minutes. If I have 10 it does not seem to complete. Original Data: Proto Recv-Q Send-Q Local-Address

Re: [R] Space between x-axis ticks

2013-09-27 Thread mohan . radhakrishnan
I attached a graph and it is not allowed. So the data is here. Var1 Freq 1 10.1.17.10 205 2 10.1.17.15 216 3 10.1.17.17 79 4 10.1.17.23 76 5 10.1.17.24 209 6 10.1.17.5 244 7 10.1.17.6 178 8 10.1.17.7 165 9 10.1.17.8 146 10

Re: [R] Space between x-axis ticks

2013-09-27 Thread mohan . radhakrishnan
Hi Jim 1. I use a bigger font using 'cex' but that worsens because tick marks are close 2. A wider png is also insufficient. The first tick is slightly away from the origin. I should be able to move it closer and then stagger the ticks. What is the 'staxlab'

Re: [R] Space between x-axis ticks

2013-09-27 Thread mohan . radhakrishnan
' but there are less examples. Are there better references ? Odd. If you do what I told you, you get the attached plot. It works the same for a PNG image. Jim [attachment mk.pdf deleted by Mohan Radhakrishnan/BSC31/polarisFT] This e-Mail may contain proprietary and confidential information

[R] Space between x-axis ticks

2013-09-25 Thread mohan . radhakrishnan
Hi, I am trying to clearly show the values in the x-axis in the attached graph. The tick marks are too close and the labels are blurred. plot(as.numeric(data$Var1),data$Freq,ylim=c(0,700),col=green,type=o,ylab=Number of connections,las=2,lwd=2.5,xaxt=n,xlab=IP)

Re: [R] Space between x-axis ticks

2013-09-25 Thread mohan . radhakrishnan
Looks like graph cannot be attached. Mohan From: mohan.radhakrish...@polarisft.com To: r-help@r-project.org Date: 09/25/2013 12:41 PM Subject:[R] Space between x-axis ticks Sent by:r-help-boun...@r-project.org Hi, I am trying to clearly show the values in

[R] Graph is without line

2013-09-24 Thread mohan . radhakrishnan
Hi, Sometimes I get a graph like the attached one. The data type could have something to do with it. This graph does not use the color and does not draw a line. Earlier I used to convert the factors in the data frame to another data type and drew the correct graphs. Any idea why this

Re: [R] Graph is without line

2013-09-24 Thread mohan . radhakrishnan
Hi, Yes. It worked. Is 'stringAsFactors=FALSE' the switch to use when reading data into a frame ? All the values I use are either numbers or dates or strings. Sometimes while I manipulate the data by filtering, the values seem to become factors ? Thanks, Mohan From: Jim Lemon

Re: [R] Averate memory usage trend

2013-09-20 Thread mohan . radhakrishnan
Replying with some code. input- readLines(textConnection( 6.2 httpd (18) 4.0 httpd (11) 4.0 httpd (11) 3.3 httpd (9) 4.2 httpd (12) 4.2httpd (12) 4.2 httpd (12) 4.2 httpd (12) 4.2 httpd (12) )) data-input[input!=] data [1] 6.2 httpd (18) 4.0

[R] Averate memory usage trend

2013-09-19 Thread mohan . radhakrishnan
Hi, I would like to understand how to draw a graph to find out the average memory used by a single httpd process given these details collected over a period of several days. I code R but this is about a method to find an average memory utilization. I believe I have enough data. How

[R] Y-axis labels as decimal numbers

2013-09-05 Thread mohan . radhakrishnan
Hi, I am able to create a graph with this code but the decimal numbers are not plotted accurately because the ylim values are not set properly. x-axis is proper. How do I accurately set the ylim for duration.1 column ? Thanks, Mohan set1$duration- as.POSIXct(paste('2013-08-24',

Re: [R] Y-axis labels as decimal numbers

2013-09-05 Thread mohan . radhakrishnan
Hi, set1$duration.2- as.POSIXct(paste('2013-08-24', set1$duration)) plot(set1$duration.2,set1$duration.1,type=b,col = blue, ylab=, xaxt = 'n', xlab=,las=2,lwd=2.5, lty=1,cex.axis=2.5) # now plot you times axis(1, at = set1$duration.2, labels = set1$duration, las = 2,cex.axis=2.5)

Re: [R] Memory usage bar plot

2013-09-04 Thread mohan . radhakrishnan
Hi, I have tried the ideas with an actual data set but couldn't pass the parsing phase. The name of the 'Program' varies. MiB and KiB are both included. I should have shown the real-time data set. Private + Shared = RAM used Program 84.0 KiB + 14.5 KiB = 98.5

[R] Memory usage bar plot

2013-08-30 Thread mohan . radhakrishnan
Hi, I haven't tried the code yet. Is there a way to parse this data using R and create bar plots so that each program's 'RAM used' figures are grouped together. So 'uuidd' bars will be together. The data will have about 50 sets. So if there are 100 processes each will have about 50

Re: [R] Memory usage bar plot

2013-08-30 Thread mohan . radhakrishnan
Hello, This memory usage should be graphed with time. Are there examples of scatterplots that can clearly show usage vs time ? This is for memory leak detection. Thanks, Mohan From: PIKAL Petr petr.pi...@precheza.cz To: mohan.radhakrish...@polarisft.com

[R] Plotting time vs number

2013-08-28 Thread mohan . radhakrishnan
Hi, The plot function draws a broken line. The graph breaks when it jumps from a lower value to a higher value with a big break in between. Why does this type of data not use 'pch' or 'type'. When I plot I don't indicate anywhere it is time. head(data) Time Kbytes RSS Dirty

Re: [R] Plotting time vs number

2013-08-28 Thread mohan . radhakrishnan
Hi Jannis, I have tried that. It doesn't work. Jumps are not there in my other graphs using numbers. Does this anything to do with time series ? Can I just convert this time representation into milliseconds and plot the graph ? The x-axis should still show this time format though(names.arg ?

Re: [R] Plotting time vs number

2013-08-28 Thread mohan . radhakrishnan
Hi, plot(strptime(data$Time,%H:%M:%S),data$Kbytes,type=l,col = blue, ylab=, xlab=,las=2,lwd=2.5, lty=1,cex.axis=1.5) strptime functions draws a proper graph but now all the time values are not in the x-axis. 1 11:42:02 2691296 2 11:43:42 2691396 3 11:45:22 2691496 4 11:47:02 2691596 5

Re: [R] Plotting time vs number

2013-08-28 Thread mohan . radhakrishnan
Hi, plot(strptime(data$Time,%H:%M:%S),data$Kbytes,pch=0,type=b,col = red, col.axis=red, ylab=, xlab=,las=2,lwd=2.5,cex.axis=1.5) title(,cex.main=3,xlab=Seconds, line=5.2,ylab=Kbytes, cex.lab=2,1) Hope I am not simplifying this in a bad way. These lines plot everything properly except the

[R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
Hi, Kbytes RSS rNo 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1460168 1443084

Re: [R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
It is not a constant but changes very slowly. Actually it should be like this. KbytesRSS rNo 2687188 1287532 1 2687188 1287532 2 2687188 1287536 3 2687188 1287540 4 2687188 1287640 5 2687188 1287640 6 Thanks, Mohan From: John Kane jrkrid...@inbox.com

Re: [R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
Hi, Can't one y-axis be used ? Both 'Kbytes' and 'RSS' use the same unit. Thanks, Mohan From: John Kane jrkrid...@inbox.com To: mohan.radhakrish...@polarisft.com Cc: r-help@r-project.org Date: 08/27/2013 05:13 PM Subject:RE: [R] Scale of axis for two data

Re: [R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
prohibited. Visit us at http://www.polarisFT.com FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more! [attachment mohan.pdf deleted by Mohan Radhakrishnan

Re: [R] Output from unix PS

2013-08-19 Thread mohan . radhakrishnan
Hi, I am able to proceed like this. Input : 4000 36 36 0 r-x-- java 40108000 8 8 8 rwx-- java 4010a000 12 0 0 -[ anon ] 4010d0001016 44 44 rwx--[ anon ] 4020b000 12

[R] Output from unix PS

2013-08-16 Thread mohan . radhakrishnan
Hi, When I view this output from the unix command ''ps'' the columns seem to properly aligned but it is not read properly into the data frame. The aggregate function throws Error in aggregate.data.frame(data, by = list(COMMAND), FUN = sum) : object 'COMMAND' not found Is there a recomendation

Re: [R] GUI tools for R

2013-08-16 Thread mohan . radhakrishnan
Hi, I am not the expert but I came across shiny.rstudio.org. It has Twitter bootstrap as its foundation. Others will know if there is a proper web framework that R can integrate with. Thanks.

Re: [R] Output from unix PS

2013-08-16 Thread mohan . radhakrishnan
My code is not complete. But the headers I see are USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND 684517 0.0 0.0 12348 864 ?SAug08 0:00 hald-addon-keyboard: listening on /dev/input/event1 684521 0.0 0.0 12348 860 ?S

Re: [R] Output from unix PS

2013-08-16 Thread mohan . radhakrishnan
This is the output. str(data) 'data.frame': 78 obs. of 1 variable: $ USER...PID..CPU..MEMVSZ...RSS.TTY..STAT.START...TIME.COMMAND: Factor w/ 78 levels 684504 0.0 0.0 31680 4596 ?Ss Aug08 0:01 hald,..: 17 18 19 20 21 22 23 24 25 26 ...

Re: [R] How is a file descriptor stored ?

2013-08-08 Thread mohan . radhakrishnan
Hi, The file handling code sometimes throws this exception. Error in UseMethod(close) : no applicable method for 'close' applied to an object of class c ('integer', 'numeric') Is there a sample based on my code that I can test ? I want to extract the file descriptors from the hashmap and

[R] How is a file descriptor stored ?

2013-08-07 Thread mohan . radhakrishnan
Hi, I thought that 'R' like java will allow me to store file names (keys) and file descriptors(values) in a hashmap. filelist.array - function(n){ sink(nmon.log) cpufile - new.env(hash=T, parent=emptyenv()) for (i in 1:n) { key - paste(output, i, .txt, sep = ) assign(key,

Re: [R] List of lists

2013-08-01 Thread mohan . radhakrishnan
Hi, The solution that works now is closeAllConnections() But even if I replace the 'list' with the 'array' I get a similar error. Exception is Error in UseMethod(\close\): no applicable method for 'close' applied to an object of class \c('double', 'numeric')\\n #Write each

Re: [R] List of lists

2013-07-31 Thread mohan . radhakrishnan
Hi Jim, close(filedescriptors$cpufiledescriptors[[1]]) close(filedescriptors$cpufiledescriptors[[2]]) close(filedescriptors$cpufiledescriptors[[3]]) I might be doing something wrong. Error is Error in UseMethod(close) : no applicable method for 'close' applied to an object of

[R] List of lists

2013-07-30 Thread mohan . radhakrishnan
Hi, I am creating a list of 2 lists, one containing filenames and the other file descriptors. When I retrieve them I am unable to close the file descriptor. I am getting this error when I try to call close(filedescriptors [[2]][[1]]). Error in UseMethod(close) : no applicable

[R] Graphing question(basic)

2012-08-14 Thread Mohan Radhakrishnan
Hi, plot(xc, yc, type=l, ylim=c(0,50), xlim=c(0,50), lwd=2, xlab=M, ylab=seconds) abline(a=-think, b=cpustime, lty=dashed, col=red) abline( 2.2, 0, lty=dashed, col = red) This draws a response time curve an asymptote and a horizontal line. How do I draw a line from the intersection of

Re: [R] Graphing question(basic)

2012-08-14 Thread Mohan Radhakrishnan
[mailto:michael.weyla...@gmail.com] Sent: Tuesday, August 14, 2012 11:49 AM To: Mohan Radhakrishnan Cc: r-help@r-project.org Subject: Re: [R] Graphing question(basic) Hi Mohan, Your code isn't reproducible as is: see http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reprodu cible-example for more

[R] Simulating web requests

2012-06-27 Thread Mohan Radhakrishnan
Hi, I am looking for some assistance with these requirements. We are trying to simulate web requests to hit a web applications. Let's assume I have a url to hit that requires a username and password. 1. These web requests should have exponential inter arrival times. 2.

Re: [R] Simulating web requests

2012-06-27 Thread Mohan Radhakrishnan
...@sapo.pt] Sent: Wednesday, June 27, 2012 4:11 PM To: Mohan Radhakrishnan Cc: r-help@r-project.org Subject: Re: [R] Simulating web requests Hello, Homework? There's a no homework rule but see inline. Em 27-06-2012 10:20, Mohan Radhakrishnan escreveu: Hi, I am looking for some

Re: [R] Simulating web requests

2012-06-27 Thread Mohan Radhakrishnan
: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Wednesday, June 27, 2012 8:13 PM To: Mohan Radhakrishnan Cc: r-help@r-project.org Subject: Re: [R] Simulating web requests On Jun 27, 2012, at 6:58 AM, Mohan Radhakrishnan wrote: Homework ? You mean the question is at a high level. I use R

Re: [R] how to make a histogram with percentage on top of each bar?

2012-06-22 Thread Mohan Radhakrishnan
Hi, Stackoverflow had an example. Forgot the contributor's name but it shows percentages at the top. I use it as it is as I am not the expert. png(Histogram.png) pdata-read.csv(histogram.csv,header=T) histPercent - function(x, ...) { H - hist(pdata$y, plot = FALSE) H$density -

[R] Variance with confidence interval

2012-06-22 Thread Mohan Radhakrishnan
Hi, Is there a way to calculate variance directly by specifying confidence interval using R ? I am specifically asking because I wanted to investigate how this could be useful for project schedule variance calculation. Moreover I am interested in using R for monte carlo simulation as

[R] r-java for simulation

2012-06-13 Thread Mohan Radhakrishnan
Hi, I came across the integration package that lets a Java program interact with R. Does any one use this model for simulation ? I am plannning to get random variates generated by R which could be the number of bytes according to various distributions. My client load generator can

[R] Multi-parameter histogram

2012-06-12 Thread Mohan Radhakrishnan
Hi, I understand that R can be used to plot correlated values using a Multi-parameter histogram. We have authorization requests and response and they are correlated because a response is governed by a SLA. Is it a good use case for using R to correlate these requests and responses ?

[R] Basic question about confidence intervals

2012-06-07 Thread Mohan Radhakrishnan
Hi, I am again asking a generic question and the general response for such questions is cold. I am a beginner but use and write simple R scripts. I am looking for some ideas to calculate the confidence intervals based on this excerpt from the paper. Moreover it would help

Re: [R] Basic question about confidence intervals

2012-06-07 Thread Mohan Radhakrishnan
] On Behalf Of Mohan Radhakrishnan Sent: Thursday, June 07, 2012 5:00 PM To: r-help@r-project.org Subject: [R] Basic question about confidence intervals Hi, I am again asking a generic question and the general response for such questions is cold. I am a beginner but use and write simple R

Re: [R] variate generation

2012-05-22 Thread Mohan Radhakrishnan
I think part of my question about using R facilities from a program is answered by http://binfalse.de/2011/02/talking-r-through-java/ Thanks. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Mohan Radhakrishnan Sent: Tuesday, May

[R] variate generation

2012-05-21 Thread Mohan Radhakrishnan
Hi, I plot no: of bytes against time and find the distribution curve using R. These bytes are sent from the client to the server. Is there a way to generate bytes randomly using R according to a distribution ? I would like to send these bytes to the server. Hope I am not misguided

Re: [R] variate generation

2012-05-21 Thread Mohan Radhakrishnan
PM To: Mohan Radhakrishnan Cc: r-help@r-project.org Subject: Re: [R] variate generation And what distribution would that be R provides many built in distributions, but if those aren't enough for you, you can check: http://cran.r-project.org/web/views/Distributions.html Best, Michael On Mon

[R] Extrapolation for capacity planning

2012-05-10 Thread Mohan Radhakrishnan
Hi, I have been asking only general questions even though I am using basic R functionality. Hope there will be some ideas from the forum. I am looking for a way to project workloads and capacity for software servers. One book I have come across is 'Applied Linear Regression Models'. I

[R] Using R to generate specific distributions of data

2012-05-04 Thread Mohan Radhakrishnan
Hi, I am working on a capacity planning task for a socket server. As part of the research I read Quickly Generating Billion-Record Synthetic Databases which is about benchmarking databases. I understand from that paper that there are specific datasets with statistics properties that can

[R] Data generation for a distribution

2012-04-24 Thread Mohan Radhakrishnan
Hi, I am a new user and this is a basic question. I have read the posting guidelines too. So if this more appropriate for a statistics forum I will ask them. I have a socket server and client and the bytes are piped to graphite which is a graphing library. The intention is to