similar to: Recode function car package erases previous values

Displaying 20 results from an estimated 400 matches similar to: "Recode function car package erases previous values"

2013 Aug 22
1
converting a summary table to survey database form
Hi! I am looking to choose a condom based on its pleasure score. I received some summarised data from 10 individuals: structure(list(Ramses = c(4, 4, 5, 5, 6, 3, 4, 4, 3, 4), Sheiks = c(5, 5, 6, 4, 7, 6, 4, 5, 6, 3), Trojans = c(7, 8, 7, 9, 6, 3, 2, 2, 2, 3), Unnamed = c(2, 1, 1, 3, 3, 4, 5, 4, 4, 3)), .Names = c("Ramses", "Sheiks", "Trojans", "Unnamed"),
2013 Jan 11
3
Using table to get frequencies of several factors at once
Hi, I have a dataframe with n columns, but I am only looking at five of them. And lots of rows, over 700. So I would like to find frequencies for each of the numeric columns (variables) using the table function. However, is there a fast way to produce a frequency table where the 5 rows represent the 5 numeric variables and the columns refer to the values (levels) of the respective numeric
2013 Apr 17
2
Problem with DateVisit-gives wrong year?
Hi I have the following factor of dates that I want to converted to Date class so I can extract the month > test.date [1] 14/05/2012 14/05/2012 14/05/2012 14/05/2012 14/05/2012 14/05/2012 [7] 14/05/2012 14/05/2012 14/05/2012 14/05/2012 201 Levels: 01/10/2012 01/11/2012 01/12/2012 02/07/2012 ... 28/09/2012 I use code below ntest.date<-as.Date(test.date,'%d/%m/%y') but the output
2013 Mar 28
1
question about attaching data
Hi I just would like to know, When I have a dataframe, like this one called 'dummy' And I attach it. Then I run my code. I then update the dataframe by making changes and I still call it 'dummy'. I run my code again. Now dummy is at position 1 and position 2 of the search path and if I run the code again, with another version of 'dummy' it updates and eventually my search
2012 Sep 04
3
Tendonitis and R users
Hello This request asks something beyond the technicalities of the R language, I would like to ask you wonderful people if you have ever suffered as programmers ( or de facto programmers like myself though I am a 'research assistant') from tendonitis and how you coped with it, i have golfer's elbow on both sides. Any resources? Pancho Mulongeni Namibia
2013 Jan 15
1
Removing an attached object
Dear All, I am a bit confused, I attached my data frame using 'attach(DATA)' Then I removed it using 'rm(DATA)' But for some reason it is still at position 2 at the search path search() [1] ".GlobalEnv" "DATA" "package:foreign" [4] "package:stats" "package:graphics" "package:grDevices" [7]
2012 Oct 17
2
Setting all rows of a certain level to NA in a factor
Hello everyone. My task is set certain levels (that is all rows of that level) as missing values in factor B20_A. Excuse the notation, it happens to be a question number in a survey. So I thought it would work easily by defining the levels and their labels using the 'factor' function. > levels(B20_A) [1] " " "5.6" "No " "Yes" #as you can see
2013 Feb 21
1
Commercial or not?
Hi All, Let's say someone uses an R package (prefer to not disclose which) that comes with two different distributions,the commercial and non-commercial license. Now the non commercial license has conditions,bit it never runs out. So if this person knows they should be using the commercial license, because they are not a student and are paid for their work , (ie they are outside the
2004 Jan 23
1
NFS re-export 64bit / 32bit locking issue?
Hi all, I've got kind of strange setup, wherein all of my data is on a big NFS server (RH linux 8.0 running the 2.4.18 kernel and nfs-utils 1.0.1-2.80) and my Samba 3.0.0 PDC server (RH linux 7.3 w/ 2.4.18 kernel, nfs-utils 0.3.3-6.73) mounts the NFS export with the following options: rw,vers=3,wsize=8192,rsize=8192,hard,intr This mounted partition is then re-exported to the windows users
2008 Nov 14
1
ParkandAnnounce?
In theory ParkAndAnnounce has a lot of usefulness, however, that we've had very little success with application... Our application is similiar to the local Walgreens pharmacy.. Dr. Calls in, selects the "Im a doctor with a prescription option"... call is parked, and announcement overhead is given.. "Doctor holding on ${EXTEN}" exten =>
2003 Dec 15
1
multiple ldap servers in bdc/pdc environment
Hi all, I'm setting up a number of samba DC's across several branch offices using the Samba 3.0.0 release's native LDAP support. I'd like to build some redundancy into my setup, such as having slave LDAP servers in case the master is down/unavailable. However, when I have multiple ldapsam entries in my smb.conf I get duplicate or triplicate users listed when performing a
2007 Oct 22
1
loess coefficients output
May I inquire about how to obtain the coefficients from a loess fit of multiple covariates? I have tried terms and coef, but it does not provide me with the coefficients to identify the terms of the entire regression equation. Many thanks Paul -- Paul R. Hutson, Pharm.D. Associate Professor UW School of Pharmacy 777 Highland Avenue Madison WI 53705-2222
2006 May 17
1
Example Syntax for if - then- and - else Statements
Hello R users, I am a fairly new R user, however, one of the problems I am having is the use of applying if-, and-, then-, else- statements in R against datasets & dataframe. Rtips mentions it, but without simple examples I am not quite sure what my syntax should look like. I am particularly interested in syntax that can be used with the transform function. for example if foo[,1] ==
2000 Sep 18
1
phantom(0) doesn't do what I expect it to [plotmath]
Hi, I'm trying to make a legend with a justified list of numbers, so I thought I would use phantom(0) to align the 3-digit numbers properly with the 4-digit ones: legend(x, y, xjust=1, yjust=1, lty=c(1,2,3,4,5), adj=c(0,0.5), legend=expression(phantom(0)*300*plain(K), phantom(0)*550*plain(K), phantom(0)*830*plain(K),
2009 Jul 24
1
Conditional sorting
Greetings! I am trying to figure out how to order a data frame by one variable conditioned on another. Here is an example of what I have: d <- data.frame(RUN = rep(1:3, each = 3), ID = 1:9, AUC = runif(9,1,100)) > d RUN ID AUC 1 1 70.2 1 2 86.5 1 3 20.1 2 4 74.3 2 5 53.6 2 6 67.6 3 7 99.9 3 8 47.3 3 9 41.3
2012 Oct 22
3
Any good R server-with connection examples
I want to connect R with HTML/PHP pages to take input from user,do some statistical processing on it & show results to HTML page again. I search on net,i got Rserve package,but examples are mainly for java langaure & not for PHP i am wondering how to connect it to PHP-Apache-MySQL Is there any good tutorial/video which will tell me how to do that ? At least tell me logical way how to
2010 Mar 24
1
R warning and error messages taking a long time and generating pop-up windows
Hi all, thanks for your help in advance. I was running some scripts and suddenly R began taking a very long time to process mundane errors, which I often generate since I am new to R...such as forgetting to add in my quote getOption(warn) Error in options(x) : object 'warn' not found Not only does the warning message print in the R console when it finally writes the error, but it also
2011 Feb 28
1
Robust variance estimation with rq (failure of the bootstrap?)
I am fitting quantile regression models using data collected from a sample of 124 patients. When modeling cross-sectional associations, I have noticed that nonparametric bootstrap estimates of the variances of parameter estimates are much greater in magnitude than the empirical Huber estimates derived using summary.rq's "nid" option. The outcome variable is severely skewed, and I am
2011 Sep 30
1
Odd gridding pattern when plotting
Hi, I'm no longer on the subscribing list, but was hoping to get my question posted.? Please inform if this is ok, although I am guessing you wont post with the image below.? If so, let me know and I will resend without the image. Thanks Hi, I just upgraded my system and my version of R all at once.? Upon running old code for heatmaps etc, I suddenly notice that there is an odd grid pattern
2014 Jan 28
5
NIS or not?
Hi all, We're getting to a point in our linux environment where it's starting to be cumbersome to keep shadow and passwd-files up-to-date for the users to login on each computer. Scripts can only get us so far. 8-/ I've looked a bit into central login systems for linux, and NIS and LDAP seem to be prevalent. NIS being the simpler-to-setup solution for small to medium networks as