[R] pie chart

2011-09-08 Thread Mohan L
. How to split rawdata into : con - c(US,UK,Ind,Germany,France); total - (10,12,4,14,8) Any help will be appreciate. Thanks Rg Mohan L __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] help to add a new column filled with value 1

2010-11-09 Thread Mohan L
Dear All, I have a data frame with 5 column and 201 row data. I want to add one more column between column 1 and 2 with value of 1. So the new column has to be the second column filled with 1. Any help will be appreciated. Thanks for your time. Thanks Rg Mohan L

[R] help to merge two data frame if name matches

2010-11-09 Thread Mohan L
frame does not there in the other data frame, simple I want to add zero to ip,bsent,breceived value. I hope this can be done with R. Any help will appricated. Thanks for you time. Thanks Rg Mohan L __ R-help@r-project.org mailing list https

[R] using variable in rmysql query

2010-11-07 Thread Mohan L
, but it not working: id - dbGetQuery(con1,SELECT id FROM tenants WHERE name LIKE '%str%') I need help to replace the value of str . Any help will really appreciated . Thanks for your time. Mohan L __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] help to sum up data frame

2010-11-07 Thread Mohan L
want to sum up the similar name into one row, like : name ip Bsent Breceived a62.43 20.83 b9 28.40 26.72 c d I need help to sum up. Thanks for your time. Thanks Rg Mohan L __ R-help@r

[R] Help required to remove \\N

2010-11-06 Thread Mohan L
Stopped The first column contain the \\n up to 19 row. I need to replace the \\N value to Blankspace . Any help will really appreciated. Thanks for your time. Thanks Rg Mohan L __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] setting the current working directory to the location of the source file

2010-06-10 Thread Mohan L
this to setup working directory: ##set working directory pwd - getwd() if (!is.null(pwd)) { setwd(pwd) } else { print(Directory not found) } Thanks Rg Mohan L [[alternative HTML version deleted

[R] Re :help to aggregate data

2010-06-09 Thread Mohan L
05/01/10 05/02/10 05/03/10 xxx 5793 29 yyy 8746 122 zzz Any help will be greatly appreciated. Thanks for your time. Mohan L [[alternative HTML version deleted

[R] Re : help to replace variable value

2010-05-28 Thread Mohan L
Dear All, I have a data frame data with Jan , Feb as column. I using like this data$Jan to take Jan column. I have the Jan in another variable var1 - Jan data$var1 I need to replace the variable value there . Any help will be greatly appreciated. Thanks Rg Mohan L [[alternative

[R] Factor to Numeric

2010-05-26 Thread Mohan L
2 1 2 9 ... Thanks Rg Mohan L [[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/posting-guide.html and provide

Re: [R] Factor to Numeric

2010-05-26 Thread Mohan L
to another function to total . Any help. Thanks Rg Mohan L [[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/posting

[R] help required to melt a data frame

2010-05-25 Thread Mohan L
using cost. State Jan Feb xxx 20 yyy 22 zzz 10 I not able to understand how to cost it. any help will be greatly appreciated. Thanks Rg Mohan L [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] help required to melt a data frame

2010-05-25 Thread Mohan L
represent? Hadley The raw data is real estate property portal data. the numbers represent how many 1 Bedroom house has registered in xxx state on particular months. Then we will normalize the data and plot the graph for trend analysis. Thanks Rg Mohan L [[alternative HTML version deleted

Re: [R] help required to melt a data frame

2010-05-25 Thread Mohan L
this choice Error in `[.data.frame`(data, , variables, drop = FALSE) : undefined columns selected Thanks Mohan L [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] help required to melt a data frame

2010-05-25 Thread Mohan L
help. Thanks Rg Mohan L [[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/posting-guide.html and provide commented

[R] help required state wise count

2010-05-24 Thread Mohan L
Rg Mohan L [[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/posting-guide.html and provide commented, minimal, self

Re: [R] help required state wise count

2010-05-24 Thread Mohan L
Hi Mohan, Try this: table(dummy$State,dummy$Months) Jim Thanks for your time. table(dummy$State,dummy$Months) in this case the state column becomes the row index. I want the state name as the first column. There may be a way to do it. Thanks Rg Mohan L [[alternative HTML

[R] rounding up to nearest integer

2010-05-24 Thread Mohan L
appropriated. Thanks Rg Mohan L [[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/posting-guide.html and provide

[R] Re : Indexing array to 1000

2010-05-22 Thread Mohan L
appreciated. Thanks Rg Mohan L [[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/posting-guide.html and provide commented

Re: [R] help to indexing data frame

2010-05-21 Thread Mohan L
On Fri, May 21, 2010 at 11:27 AM, Mohan L l.mohan...@gmail.com wrote: Dear All, I have data some thing like this: sample StateJan Feb Mar A 1 1 1 B1298 12931294 C00 0 D55 5 E 18

[R] Re : Manipulating Data Frames

2010-05-20 Thread Mohan L
])*weightage[2])+Ja[1]) 3 CCC 0 4 DDD5 5 EEE 18 6 FFF 68 I am struggling with this . I have framed a logic using for loop. But it seems me very bad logic. Any help will be greatly appreciated. Thanks Rg Mohan L [[alternative HTML version deleted

[R] help to indexing data frame

2010-05-20 Thread Mohan L
will be greatly appreciated. Thanks Rg Mohan L [[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/posting-guide.html and provide

[R] Re : Adding column sum to new row in data frame

2010-05-19 Thread Mohan L
2 1 45 11 17 15 10 9 5 18 28 27 23 23 16 6 68 152 184 135 111 86 Total - sapply(x,sum,na.rm=T) Total Jan Feb Mar Apr May Jun 1390 1387 1440 1420 1306 957 I hope there may be alternative way. Any help will be appreciated. Thanks Rg Mohan L

Re: [R] Re : Adding column sum to new row in data frame

2010-05-19 Thread Mohan L
State column. How to I replace it as Total? Thanks Rg Mohan L [[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/posting

Re: [R] Re : Adding column sum to new row in data frame

2010-05-19 Thread Mohan L
11 17 15 10 9 5 EEE 18 28 27 23 23 16 6 FFF 68 152 184 135 111 86 7 Total 1390 1387 1440 1420 1306 957 I think I am doing right. If I miss understood anything. Please guide me I am beginer to R. Thanks Rg Mohan L [[alternative HTML version deleted

Re: [R] Re : Adding column sum to new row in data frame

2010-05-19 Thread Mohan L
behavior will be if it is using the default method). This may not be an issue, but it would hamper any subsequent calculations you may wish to perform on your data. Thanks for your great help. Mohan L [[alternative HTML version deleted]] __ R

[R] Re : append new line in existing graph

2010-05-17 Thread Mohan L
new line in existing file. any help would be greatly appreciated. Thanks for you time. Mohan L [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] extract required data from already read data

2010-05-06 Thread Mohan L
are true if(Domain == xxx sex==FeMale) I need the data in another variable, like this 1 01/11/09xxx FeMale 25 2 2 01/11/09xxx FeMale 35 4 3 02/11/09xxx FeMale 29 1 I have failed to achieve it . any help would greatly appreciated. Thanks Rg Mohan L

Re: [R] extract required data from already read data

2010-05-06 Thread Mohan L
how to pass the argument to my sample.R, some this like source(sample.R, xxx,FeMale) Is it possible? any link will greatly appreciated. Thanks Rg Mohan L [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] make a column from the row names

2010-05-04 Thread Mohan L
*100 224.504.50*100 334.504.50*100 448.678.67*100 How to achieve it? Any help will be appreciated. Thanks Rg Mohan L [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Re :argument is not numeric or logical

2010-05-02 Thread Mohan L
Mohan L [[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/posting-guide.html and provide commented, minimal, self

Re: [R] Re :argument is not numeric or logical

2010-05-02 Thread Mohan L
Rg Mohan L [[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/posting-guide.html and provide commented, minimal, self

Re: [R] Re :argument is not numeric or logical

2010-05-02 Thread Mohan L
16.20743 18.52379 Thanks Rg Mohan L [[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/posting-guide.html

Re: [R] Re :argument is not numeric or logical

2010-05-02 Thread Mohan L
132.3732 06/11/09 00:00 07/11/09 00:00 129.6357 133.4521 Am I right ? Thanks Rg Mohan L [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Re :argument is not numeric or logical

2010-05-02 Thread Mohan L
18.52379 But still it will not work : avglog - with(assame,tapply(as.numeric(levels(Login)[as.integer(Login)]),stdate,mean)) Error in tapply(as.numeric(levels(Login)[as.integer(Login)]), stdate, : arguments must have same length Thanks Rg Mohan L [[alternative HTML version

Re: [R] Re :reading large file

2010-05-01 Thread Mohan L
On Sat, May 1, 2010 at 11:55 AM, Tal Galili tal.gal...@gmail.com wrote: Hi Mohan, Check: dim(bmtrend) If the output is like the dimension of your data, then it would appear you succeeded in reading in the data :) Yes . You are right. It reads all the data. Thanks you. Mohan L

[R] Average Login based on date

2010-05-01 Thread Mohan L
FeMale 29 0 I need to fine the average login on 01/11/09 and 02/11/09 etc... like below stdate AverageLogin 01/11/09 9.75 02/11/09 . 03/11/09 ... How do I find the average Login based on date? Thanks for your time. Mohan L [[alternative

[R] Re :reading large file

2010-04-30 Thread Mohan L
On Sat, May 1, 2010 at 11:02 AM, Mohan L l.mohan...@gmail.com wrote: Hi All, I am new to R and the mailing list. I have a data file (.xls) format with little bit large (16 column,35000 rows ) data file. I am trying to read this file for calculation. I have converted the file into .csv

[R] Re :

2010-04-30 Thread Mohan L
=,) bmtrend will display something in the middle of display [ reached get Option(max.print) -- omitted 30061 rows ]] It will not show the full list of data. please suggest me best way to read large file? Thanks Rg Mohan L [[alternative HTML version deleted