similar to: Keep only those values in a row in a data frame which occur only once.

Displaying 20 results from an estimated 1000 matches similar to: "Keep only those values in a row in a data frame which occur only once."

2009 Sep 22
3
how to force R to evaluate variable?
Hi, I want to construct a list as Lst <- list(name_1=object_1, ..., name_m=object_m) If name_1 is a variable with value "NAME1", how can I ask R to use "NAME1" instead of 'name_1' as the name of the list element? Thanks! Yupu [[alternative HTML version deleted]]
2015 Apr 02
2
Mapas con spplot
Hola He hecho el típico mapa con gadm y spplot: library(sp) ES <- local(get(load(url("http://biogeo.ucdavis.edu/data/gadm2/R/ESP_adm2.RData ")))) acerco las canarias: A <- which(ES en data$NAME_1 == "Islas Canarias") L <- length(ES en polygons[[A]]@Polygons) L <- length(ES en polygons[[A]]@Polygons) for (i in 1:L){ ES en polygons[[A]]@Polygons[[i]]@coords
2015 Apr 03
0
Mapas con spplot
Hola, Yo lo resuelvo usando grid.rect. Tienes una posible solución aquí: https://github.com/oscarperpinan/spacetime-vis/blob/master/choropleth.R#L216 (que es una versión actualizada de este artículo https://procomun.wordpress.com/2012/02/18/maps_with_r_1/) Saludos. Oscar. ----------------------------------------------------------------- Oscar Perpiñán Lamigueiro Dpto. Ing. Eléctrica,
2011 Nov 16
1
HELP DATA CLIPPING AND DATA OVERLAY ON A MAP
I have csv data that extend beyond the area I want for an existing map. I want using the boundaries of the polygon shape file as a cookie cutter so that I can overlay the csv data on map without including anything outside the map boundaries and create a dbf file or shapefile of the clipped data .  The reproducible example: ############################################### library(RColorBrewer)
2012 Jan 27
1
Overimposing one map in ssplot onto another
Hello! I have 2 maps - both created in ssplot and both identical in terms of outline. Is there any way to superimpose Map1 (which has black borders between Canadian provinces) onto Map2 (which is also a map of Canada)? Thanks a lot for your hints! Dimitri ### A. Reading in Canada data at the province and then at the county level: library(raster) getData('ISO3') # Canada's code is
2007 Aug 09
1
usage of each field
Hi all, From the web, I can find a table scheme of sipusers for ARA using. However, I can't find any meaning of each field, especially for the field regserver which is new in the table. Can any tell me more detail about the usage of each field? CREATE TABLE `sip_buddies` ( `id` int(11) NOT NULL auto_increment, `name` varchar(80) NOT NULL default '', `host` varchar(31) NOT NULL
2018 Feb 23
0
Mapedit::selectMap in shiny map.
I would like to select polygons from an existing spatial polygon data set interactively in a shiny leaflet map. The process is straightforward in leaflet/ mapedit, however I need to include the procedure in a shiny app map interface. I cannot work out how to incorporate the selectMap() in the shiny app. An error is returned: Here is some toy code showing the code in using leaflet locally:
2005 Mar 24
1
realtime - unable to find key
ok so my table looks like this... REATE TABLE `sip` ( `id` int(11) NOT NULL auto_increment, `name` varchar(80) NOT NULL default '', `accountcode` varchar(20) default NULL, `amaflags` varchar(7) default NULL, `callgroup` varchar(10) default NULL, `callerid` varchar(80) default NULL, `canreinvite` char(3) default 'yes', `context` varchar(80) default NULL, `defaultip`
2010 Jan 21
0
sp package - How to join two or more polygons from a SpatialPolygonsDataFrames
I have a SpatialPolygonsDataFrame object (sp package). It contains 40 polygons. Now I want to join some of the polygones. I cannot figure out how to do that? Any ideas? The code below produces a map of Germany and I need to join some counties. library(sp) library(RColorBrewer) # get spatial data for Germany on county level con <- url("http://gadm.org/data/rda/DEU_adm3.RData")
2018 Jan 07
2
SpreadLevelPlot for more than one factor
Dear All, I want a transformation which will make the spread of the response at all combinations of 2 factors the same. See for example : boxplot(breaks ~ tension * wool, warpbreaks) The closest I can do is : spreadLevelPlot(breaks ~tension , warpbreaks) spreadLevelPlot(breaks ~ wool , warpbreaks) I want to do : spreadLevelPlot(breaks ~tension * wool, warpbreaks) But I get : >
2023 Nov 18
2
Can someone please have a look at this query on stackoverflow?
Dear Olivier, Many thanks for your reply. Very cool. You know what I thought ? I thought you had modified the A4 sheet size to compute the paperheight and paperwidth ? I wonder if that's another way of proceeding. Best, Ashim On Sat, Nov 18, 2023 at 12:51?PM Olivier Crouzet <olivier.crouzet at univ-nantes.fr> wrote: > > Dear Ashim, > > these are documented in the LaTeX
2018 Jan 07
2
SpreadLevelPlot for more than one factor
Dear Ashim, Try spreadLevelPlot(breaks ~ interaction(tension, wool), data=warpbreaks) . I hope this helps, John ----------------------------- John Fox, Professor Emeritus McMaster University Hamilton, Ontario, Canada Web: socialsciences.mcmaster.ca/jfox/ > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Ashim > Kapoor > Sent:
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
I am having trouble getting data labels to display over the provinces in a GADM map of Canada. Specifically, I need the variable "Number" from the data set "by_province", grouped by "region", to appear on the corresponding regions of the map. The data set "by_province" looks like this: long lat order hole piece region
2018 Apr 18
3
Understanding which
Dear All, Here is a reprex: > x<- 1:100 > x[-which(x>100)] integer(0) In words, I am finding out which indices correspond to values in x which are greater than 100 ( there are no such items ) . Then I remove those indices. I should get back the x that I started with since there are no items in x which are bigger than 100 . Instead, it is returning an empty vector. Why is this ?
2018 Jan 07
0
SpreadLevelPlot for more than one factor
Dear All, we need to do : library(car) for the spreadLevelPlot function I forgot to say that. Apologies, Ashim On Sun, Jan 7, 2018 at 10:37 AM, Ashim Kapoor <ashimkapoor at gmail.com> wrote: > Dear All, > > I want a transformation which will make the spread of the response at all > combinations > of 2 factors the same. > > See for example : > >
2023 Nov 18
1
Can someone please have a look at this query on stackoverflow?
And indeed again (I did not understand your previous question exactly at first), the 'hard-coded' definition of a landscape a4 sheet would therefore be: paperwidth=29.7cm, paperheight=21cm Olivier. On Sat, 18 Nov 2023 13:20:49 +0530 Ashim Kapoor <ashimkapoor at gmail.com> wrote: > Dear Olivier, > > Many thanks for your reply. > > Very cool. > > You know
2018 Jan 14
1
SpreadLevelPlot for more than one factor
Dear Ashim, I?ll address your questions briefly but they?re really not appropriate for this list, which is for questions about using R, not general statistical questions. (1) The relevant distribution is within cells of the wool x tension cross-classification because it?s the deviations from the cell means that are supposed to be normally distributed with equal variance. In the warpbreaks data
2018 Jan 09
0
SpreadLevelPlot for more than one factor
Dear Sir, Many thanks for your reply. I have a query. I have a whole set of distributions which should be made normal / homoscedastic. Take for instance the warpbreaks data set. We have the following boxplots for the warpbreaks dataset: a. boxplot(breaks ~ wool) b. boxplot(breaks ~ tension) c. boxplot(breaks ~ interaction(wool,tension)) d. boxplot(breaks ~ wool @ each level of tension) e.
2023 Nov 18
1
Can someone please have a look at this query on stackoverflow?
Dear Ashim, these are documented in the LaTeX 'geometry' package (see for example on CTAN: https://ctan.org/pkg/geometry). As I added in my response on Stackoverflow, several parts in the RMarkdown header actually concern information that are processed by LaTeX to actually generate the PDF, among which the 'geometry' line. For someone who is used to working with LaTeX, it is
2023 Nov 18
1
Can someone please have a look at this query on stackoverflow?
Dear Olivier, Many thanks for your reply. This works well for me. How did you come up with the pagewidth / pageheight numbers? I do understand that their ratio = 16:9, but how did you choose these numbers? Best Regards, Ashim On Fri, Nov 17, 2023 at 9:25?PM Olivier Crouzet <olivier.crouzet at univ-nantes.fr> wrote: > > Dear Ashim, > > I don't think the aspectratio is