similar to: dotFirst option

Displaying 20 results from an estimated 20000 matches similar to: "dotFirst option"

2009 Mar 20
4
how to make aggregation in R ?
Hi, I am trying to aggregate the sum of my test data.frame as follow: testDF <- data.frame(v1 = c("a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "c", "c", "c", "c", "c", "d", "d", "d", "d",
2008 Dec 05
2
adding rows as arithmatic calculation on original rows
Dear R users, Suppose I have the following data.frame: myID myType myNum1 myNum2 myNum3 a Single 10 11 12 b Single 15 25 35 c Double 22 33 44 d Double 4 6 8 and I want to have new records: myID myType myNum1 myNum2 myNum3 e Single 12.5 18
2008 Nov 04
3
regex question
hello, i am trying to extract text using regex as follows: "* < <* this is my text > > " into: "this is my text" below what I did: varReg <- "* < <* this is my text > > " ## either this pattern patReg <- "(^[ <*]+)" ## or below patten patReg <- "([ > ]+$)" sub(patReg, '', varReg) depending
2009 Mar 17
2
converting null to some values
Hi, I have newbie question. Suppose I have the following data: temp <- data.frame(type1 = c("male", "female", "male", "female", "female"), type2 = c("low", "med", "high", "low", "med"), a = c(1,2,4, NA, 3), b = .... [TRUNCATED] temp type1 type2 a b c 1 male low 1 5 0 2 female
2008 Dec 23
1
aggregate / tranpose data
Dear R-Users, Suppose I have data in the following format: CODE_NAME ZIP_CODE John 12345 John 23456 John 34567 Jane 13242 Jane 22123 I want to transpose / convert it into: CODE_NAME ZIP_CODE John 12345,23456,34567 Jane 13242,22123 Any idea/pointer is appreciated.
2009 Feb 19
1
Getting the difference between two data frames
Dear R users, I have the following data: x <- data.frame( myX = c(1,2,3,4,5,6,7,8,9) ) y <- data.frame( myX = c(1,2,3,4,5,6,7) ) How can I get the difference between data frame x and y? In this case, I want to get values 8 and 9 I know in SQL we can use minus operator, but I have no idea how to do so in R. I tried all.equal, diff, and identical, but they don't give me the actual data
2008 Oct 13
3
lattice panel question
Dear R users, How to change lattice panel label/text from the automatically generated label (based on the conditioning) to our own set of label? for example: someStuff <- data.frame(area = rep(c("SOUTH", "NORTH", "EAST", "WEST"), each = 25), group = rep(c("A","B","C","D"), each = 5),
2009 Apr 09
2
how to automatically select certain columns using for loop in dataframe
Hi, I am trying to display / print certain columns in my data frame that share certain condition (for example, part of the column name). I am using for loop, as follow: # below is the sample data structure all.data <- data.frame( NUM_A = 1:5, NAME_A = c("Andy", "Andrew", "Angus", "Alex", "Argo"), NUM_B = 1:5, NAME_B =
2009 Mar 25
1
Creating date seq in data frame
Hi, I have the following type of data: myData <- data.frame(x = 1:5, y = letters[1:5], xDate = seq(as.Date("2001/2/1"), as.Date("2005/2/1"), by="year") ) > myData x y xDate 1 a 2001-02-01 2 b 2002-02-01 3 c 2003-02-01 4 d 2004-02-01 5 e 2005-02-01 What I need is a new column, say xDate2, that for each xDate (or for each unique combination of
2008 Oct 28
1
lattice: overlap histogram
Dear R users, Is it possible to have an overlap histogram plot? For example: stuff <- data.frame(Mode = c("Land", "Air"), AgeGroup = c("Young", "Adult", "Old"), Value = sample(1:300)) histogram( ~Value | AgeGroup * Mode, data = stuff, auto.key = TRUE) Instead of having 2 * 3 panel, I want to have just 3 panel, overlapping the "Mode"
2004 Aug 11
2
Xemacs do not want to execute help.start() with R1.9.1
Hi all, I 've just reinstalled from the scratch my Windows 2000 (Italian version) on a formatted HD, because I like to clean the environment from time to time (say once a year). I'm currently using XEmacs-21.4.13 and R (rw1091) and Xemacs is configured as described in http://socserv.socsci.mcmaster.ca/jfox/Books/Companion/ESS/ess-xemacs.pdf The problem is that the command help.start()
2008 Feb 29
1
setHook and lattice
Hi, I am trying to find a way to automate production of page numbers in plots produced using the lattice package. To do this, I started playing around with setHook which works fine with vanilla plot, but the hook 'plot.new' doesn't appear to be relevant to the lattice package. I was wondering if there is a alternative someone can suggest for use with the lattice package. Example
2004 Mar 24
7
binding vectors or matrix using their names
Hello list, I have two vectors x and x2: x=runif(10) x2=runif(10) and one vectors with their names : my.names=c("x","x2") I would like to cbind these two vectors using their names contained in the vector my.names. I can create a string with comma ncomma=paste(my.names,collapse=",") and now, I just need a function to transform this string into a adequate
2005 Jun 10
1
Exiting R and package detachment?
Hi, is there away to assure that a package is detached when R quits? I know about .Last(), but that requires the user to setup that function. What I am looking for is a way for the package to do this itself, without asking the user to edit "their" .Last(). From ?setHook I know that: "...when an R is finished, packages are not detached and namespaces are not unloaded, so
2008 Oct 24
4
Mail server problem?
I keep getting repeated copies of ``R-help post acknowledgements'' in respect of a couple of postings that I made to the list this morning (my time). I only posted each posting *once*. I hope that others are not getting repeated copies of my postings .... I mean I *know* my postings are so wonderful they merit re-reading, but one does not need another copy in order to re-read! :-)
2009 Mar 07
10
popular R packages
I would like to get some idea of which R-packages are popular, and what R is used for in general. Are there any statistics available on which R packages are downloaded often, or is there something like a package-survey? Something similar to http://popcon.debian.org/ maybe? Any tips are welcome! ----- Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit
2006 Mar 23
2
[OT] Canada on Rails by ferry?
Hey y''all, Are any folks planning on taking the ferry from Seattle to Vancouver (via Victoria)? I''ve never done it before so I have no idea how much of an adventure it is. Flights are a $100+ less to Seattle than Vancouver so the price works out the same or a bit less. My plan is to fly to Seattle (from Savannah, GA) on Tuesday to catch the early ferry on Wednesday
2013 Jul 15
2
suppress startup messages from default packages
Hi all, several packages print messages during loading. How do I avoid to see them when the packages are in the defaultPackages? Here is an example. With this in ~/.Rprofile ,----[ ~/.Rprofile ] | old <- getOption("defaultPackages") | options(defaultPackages = c(old, "filehash")) | rm(old) `---- I get as last line when starting R: ,---- | filehash: Simple key-value
2009 Mar 06
1
help to use ppp in spatial analysis
Hi, i am using spatstat package for spatial data analysis and now i have a problem to create a point pattern. The points are in file "points.txt" (first column for Latitude and second column for Longitude ) and I imported them and separated each columns in two arrays x and y. If I plots x and y ( e.g plot(x,y) ) the result appears in square area without problems and the scale is
2008 Sep 17
1
Source code of Strauss Process
Dear all, I want to simulate a Strauss Hard Core process in 3D. I have found that someone else tried to do the same and he recived this answer, "If you need this immediately, I suggest you follow Brian Ripley's advice. This probably involves downloading a source tar file of the R package and finding the Fortran code in library/spatial/src/. The Fortran should be edited to generate 3D