similar to: Changing some values within a variable

Displaying 20 results from an estimated 800 matches similar to: "Changing some values within a variable"

2011 Sep 22
2
Numbering entries for each subject
Hi R Users I am hoping someone might be able to give some pointers on alternative code to the for loop described below. I have a dataset which is ordered by subject ID and date, what I would like to do is create a new variable that numbers the entries for each person (e.g. 1,2,3,....) As an example if we have subjects A, B and C all with multiple entries (have excluded date variable for
2009 Jan 25
1
Multiple lattice plots on a page: aligning x-axes vertically
Dear R-help, I am creating a two lattice plots (a densityplot() and xyplot()) that have the same x-axes and then 'printing' them onto the same page, one above the other (see end of email for an example to generate the graph). With different labels on the y-axis for each plot the left spacing is different, and the x-axes don't align vertically. Although I can manually modify the
2017 Aug 10
2
EOF within quoted string
Hi, Reading http://ssc.wisc.edu/~ahanna/20_newsgroups.csv after downloading it using data <- read.csv("20_newsgroups.csv",header=TRUE) throws this. Warning message: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : EOF within quoted string So, for example, the first line in the file is this. This column contains only such text. Is there a way read it ?
2008 Jan 27
4
Rails versions and documentation, confused learning rails
Okay, I am new to rails. I see that the new release of rails does not apply to anything on the site with regards to tutorials including screencasts. What I don''t understand is how I am suppose to learn Rails 2.0 if there is no docmentation for it. I did see that on peepcode there is a pdf for what has changed but how does that help me? How do I get an understanding of the design
2017 Aug 10
0
EOF within quoted string
You might want to try some of the suggestions mentioned in this post: https://stackoverflow.com/q/17414776/2140956 Jean On Thu, Aug 10, 2017 at 7:59 AM, <Mohan.Radhakrishnan at cognizant.com> wrote: > Hi, > > Reading http://ssc.wisc.edu/~ahanna/20_newsgroups.csv after downloading > it using > > data <- read.csv("20_newsgroups.csv",header=TRUE) > >
2017 Aug 11
1
EOF within quoted string
Yes. I tried that already. Not straightforward. data <- read.csv("20_newsgroups.csv",fill=TRUE,as.is=T,header=F, quote="", sep=",", encoding="UTF-8") This line does read it haphazardly. The emails in the column are split into multiple columns and there are several columns with just ?NA?. Totally 202 columns. And then I removed columns with NA?s and
2008 Sep 14
3
Nonlinear regression question&In-Reply-To=6rya22mljx.fsf@franz.stat.wisc.edu
I was unable to open this file Bill Venables' excellent "Exegeses on Linear Models" posted at http://www.stats.ox.ac.uk/pub/MASS3/Exegeses.ps.gz I'd be very interested in reading it? Thanks Esther Meenken Biometrician Crop & Food Research Private Bag 4704 Christchurch TEL: (03) 325 9639 FAX: (03) 325 2074 EMAIL:MeenkenE at crop.cri.nz Visit our website at
2009 Oct 26
2
R CMD check: Error in .C
Function/file names are hypothetical. Say I have written myfunction.R, which calls myfunction.c via .C("myfunction", ...). I've compiled successfully myfunction.c via R CMD SHLIB myfunction.c in the terminal. Then, in the R console: dyn.load("myfunction.so") source("myfunction.R") test <- myfunction() # works fine So everything is in order, myfunction works
2005 Oct 31
3
Still a bug with NA in sd() or var()?
Dear R-users, Running R 2.1.1 in WindowsXP, there seems to be a 'bug' in sd() If >x<-c(1,2,3,NA,5) >mean(x) [1] NA But >sd(x) Or >var(x) give Error in var(x, na.rm = na.rm) : missing observations in cov/cor There are obvious work-rounds, like >sd(x, is.na(x)==F) which gives the result (with error message) [1] 1.707825 Warning message: the condition has length > 1
2005 Feb 24
2
survreg with gamma distribution: re-post
Dear r-help subscribers, A couple of weeks ago I sent the following message to the r-help mail list. It hasn't generated any response, and I could really use some help on this. Anyone able to help? Thanks again, Roger Dungan >> I am working on some survival analysis of some interval censored failure time data in R. I have done similar analysis before using PROC LIFEREG in SAS. In
2008 Aug 26
2
lattice plotting character woes
The following reproducable code shows the setting of my problem: set.seed(260808) n = 50 x = rnorm(n) y = rnorm(n) z = ceiling(runif(n,0,4)) g = runif(n,0,6) G = factor(ceiling(g)) xyplot(y ~ x | G) plsy <- trellis.par.get("plot.symbol") plsy$pch = z trellis.par.set("plot.symbol",plsy) xyplot(y ~ x | G) plsy$pch = as.character(z)
2006 Mar 07
0
Form fields and MySQL column name Association
Im having trouble with a sports site im creating for a client of mine. The part is where the Team Captians for each team in the league go into the admin section to submit a match report for each match. The form looks like this: TEAM 1 BATTING: (these are all drop down menus that pull the player names from the database) There are 10 of these rows that look like this, 1 row for each player.
2009 Feb 25
0
basketball (was: R spam)
Not to draw this off-topic thread out too long, but perhaps there are enough interested to make it worthwhile: > > And, since my son asked me and I am basketball ignorant: Why are > > basketball scores mostly much too close to equality? The arguments > > (loose power when leading) The relevant rule is the one that dictates that after a team scores a basket, the ball goes
2011 Jun 22
1
Time-series analysis with treatment effects - statistical approach
Hello all R listers, I'm struggling to select an appropriate statistical method for my data set. I have collected soil moisture measurements every hour for 2 years. There are 75 sensors taking these automated measurements, spread evenly across 4 treatments and a control. I'm not interested in being able to predict soil future soil moisture trends, but rather in knowing whether the
2001 May 07
1
Users able to connect without password?! (2.0.7)
Hi folks, I'm having a strange problem with a client for whom I've set up Samba (2.0.7 - packages samba-common-2.0.7-18mdk & samba-2.0.7-18mdk) on a server with Linux-Mandrake 7.2. The client uses both Win95 and Win98 workstations. The problem is that there appears to be no password checking at all, i.e a user with a valid login (i.e. a user in /etc/smbuser) can login without
2007 Feb 19
3
Randomly extract rows from a data frame
Hi, I am looking for a way to randomly extract a specified number of rows from a data frame. I was planning on binding a column of random numbers to the data frame and then sorting the data frame using this bound column. But I can't figure out how to use this column to sort the entire data frame so that the content of the rows remains together. Does anyone know how I can do this? Hints
2011 May 14
1
Bit of complex smb networking... is it possible?
Hi Team, I'm looking for a bit of help to push out an idea... don't know if what I'm thinking is even possible so advice and feedback would be great. CONCEPT I want to create a shared folder for all users on a subnet that has a defined amount of space they can use. So, all the users in 192.168.2.0/24 can see /homes/subnet2space/ as \\myserver\whatever\ Users connected to
2004 Dec 15
21
Re: Xen and reiser4
>>> Hi all >>> >>> Thanks to Milan I am able to get further with xen and reiser4 >>> >>> - In swap line 6 and 7 status_flags.c >>> >>> #include <linux/bio.h> >>> #include <linux/page-flags.h> >>> >>> >>> - PACKED is redefined, but the definitions are the same, so the gcc >>>
2007 Dec 31
2
point release?
Hello Esteemed Tent-pitchers, Can we get a point release of the current camping trunk? 1.5.1 maybe? I don''t know how stable trunk is, but there are lots of bugs that would be nice to get resolved. Particularly the ones involving the incorrect creation of the sessions table. Evan -- Evan Weaver Cloudburst, LLC
1999 Aug 18
1
Your message Re: Samba and printer comments (July 5 1999)
Yes unfortunately I do not have much luck recieving help from the SAMBA mailing list. After much playing I found something weird that was seemingly causing incorrect comments. Most printers would recieve the comment - "no entries" which originally I assumed to be the default comment given by Win95 when it could not get a proper comment. However I later found that this is not the case.