search for: rawal

Displaying 19 results from an estimated 19 matches for "rawal".

Did you mean: rafal
2013 Jun 10
4
Combining CSV data
Hello R community, I am trying to combine two CSV files that look like this: File A Row_ID_CR, Data1, Data2, Data3 1, aa, bb, cc 2, dd, ee, ff File B Row_ID_N, Src_Row_ID, DataN1 1a, 1, This is comment 1 2a, 1, This is comment 2 3a,
2005 Jan 28
1
Matrix multiplication in R is inaccurate!!
If you multiply a matrix by its inverse you should get an identity matrix. In R, you get an answer that is accurate up to about 16 decimal points? Why can't one get a perfect answer? See for example: c(5,3)->x1 c(3,2)->x2 cbind(x1,x2)->x solve(x)->y x%*%y Vikas Rawal ============================================== This Mail was Scanned for Virus and found Virus free
2007 Jun 05
1
help with using grid to modify ggplot/lattice plots
...g that explains use of grid to modify lattice graphics may also be useful. I have gone through vignettes in the grid package but am somehow not able to understand the overall approach. It would be useful if there is something more specific that deals with using grid to modify such graphics. Vikas Rawal Associate Professor Centre for Economic Studies and Planning Jawaharlal Nehru University New Delhi
2004 Sep 28
3
add-on packages
I want to add RMySQL and RODBC packages to my R installation on redhat linux box. The command install.packages gives following output. What could be wrong? ******************** install.packages(RMySQL) trying URL `http://cran.r-project.org/src/contrib/PACKAGES' Content type `text/plain; charset=iso-8859-1' length 202145 bytes opened URL .......... .......... .......... ..........
2004 Oct 01
3
Reading multiple files into R
I want to read data from a number of files into R. Reading individual files one by one requires writing enormous amount of code that will look something like the following. **************** maptools:::dbf.read("wb-01vc.dbf")->dist1 maptools:::dbf.read("wb-02vc.dbf")->dist2 maptools:::dbf.read("wb-03vc.dbf")->dist3
2007 Feb 12
6
Boxplot: quartiles/outliers
For boxplot(), is it possible to pass in a parameter to change the default way that the 1st and 3rd quartiles are computed? (specifically, I'd like to use type 6 described in the quantile function). Also, what are the options for how outliers are computed, and how can one change them? Thank you [[alternative HTML version deleted]]
2011 Feb 28
1
plotting, graph, everything
...change1,ricefile$P1)) with(ricefile, text(ricefile$P1,ricefile$areachange1, ricefile$State), pos=4, xpd=NA) ggplot(ricefile, aes(x=P1, y=areachange1)) + geom_point() + geom_text(aes(label= State, size=2, vjust=2)) PLEASE HELP!! The question and the data is given below.. [image: Picture of Vikas Rawal]<http://courseware.macroscan.com/user/view.php?id=2&course=3> another plot Read the data file /Data/ep602/areas.csv, and make a scatter plot that displays area under rice in 1960s on the x axis, and percentage change in area under rice between 1960 and 1990 on the y axis. Let origin of...
2004 Oct 06
4
Problems with merge
This issue has been discussed on this list before but the solutions offerred are not satisfactory. So I thought I shall raise it again. I want to merge two datasets which have three common variables. These variables DO NOT have the same names in both the files. In addition, there are two variables with same name which do not necessarily have exactly same data. That is, there could be some
2009 Feb 08
8
How to upload data using huge .sql file
Hi, I am using Ruby - 1.8.6 and Rails- 1.2.6. When I trying to upload data using the .sql file through my code I got "Mysql::Error: Lost connection to MySQL server during query: rollback;" File size is 6 MB. The code I have used is like: numberOfRecord = ActiveRecord::Base.connection.update(File.open(fileName).read) Please let me know how I upload data using huge .sql file. If
2004 Aug 24
2
Test of significance in estimation of correlation coefficients
I estimated spearman's correlation coefficient using cor(). How do I test for significance? Vikas
2008 Sep 04
1
how to match or merge data.frames in this case...
Hi, I'm trying to match two data frames in order to replace the boundary values in a dataframe.1 with values in dataframe.2 ONLY where the pair id1 id2 matches between the two data frames. Eg. > dataframe.1 ... id1 id2 boundary 3307 1095 1108 438.691 3308 1095 1109 438.691 3309 1095 1121 438.691 3310 1096 1109 438.691 ... 3345 1108 1120 438.691 3346 1108 1121 438.691 3347 1108
2010 Dec 22
1
Devise restrict concurrent login
Hi, I am using devise 1.0.8, and I want to restrict concurrent login of user i.e. same user should not be login from different browser or different location if he already login from some where. and if he really wants to login forcefully then other side sessions for that user should be clear and he should be logout from other sides. Any help would be greatly appreciated. -- Posted via
2007 Feb 07
3
boxplot statistics in ggplot
I need to make weighted boxplots. I found that ggplot makes them. I would however like to label them with the boxplot statistics (the median, q1 and q3). In the boxplot function in r-base, I could output boxplot statistics and then write a text on the plot to place the labels. How would one do it with ggplot? Vikas
2009 Jan 22
1
ggplot2
I have been struggling to get the legends in ggplot2 right or do away with them altogether (on which I have already sent a post). In the following code, the labels argument in the scale_colour_gradient2 does not give me the desired labels in the legend. Could someone explain? qplot(Year,CDR,data=b3,colour=Phase,geom=c("point","line"),legend.position="bottom")->p
2009 May 04
1
Syncronization in rails
Hello, Here is the logic that I am trying to achieve. I have a User Model and the business rule is that user can accept maximum 5 friends requests. for this I have an accept method in User Model which looks similar to below code snippet def accept(friend) raise ArgumentError if self.friends.count >= MAX_FRIENDS_ALLOWED ... ... #code to add friend to friends list end As you
2007 Mar 27
2
problem with installation of packages
I am having a peculiar problem with installation of packages. I am trying to install the package "maptools". This is what I get. install.packages("maptools",depend=T) Warning in install.packages("maptools", depend = T) : argument 'lib' is missing: using /usr/local/lib/R/site-library Warning: unable to access index for repository
2007 Apr 06
5
Labelling boxplot with fivenumber summary
I am very new to R so forgive me if this seems basic but I have done extensive searching and failed to come up with the answer for myself. I am trying to label a boxplot I have created with the values for the median, upper and lower quartiles and max and min values. I have been unable to do this or find anything on the net to say how it might be done. Is this possible and if so how? Regards,
2006 Oct 31
1
Compiling R packages on Ubuntu
I am unable to compile R packages from source on Ubuntu dapper/edgy. Does anybody have an experience? When I do install.packages("nlme",depend=TRUE), I get following error messages. Can someone help? I get similar messages for any package I try to compile. VR ------------- * Installing *source* package 'nlme' ... ** libs gcc -I/usr/share/R/include -I/usr/share/R/include
2007 Mar 27
0
problems with installation of packages
I am having a peculiar problem with installation of packages. I am trying to install the package "maptools". This is what I get. install.packages("maptools",depend=T) Warning in install.packages("maptools", depend = T) : argument 'lib' is missing: using /usr/local/lib/R/site-library Warning: unable to access index for repository