similar to: FW: recoding problem

Displaying 20 results from an estimated 300 matches similar to: "FW: recoding problem"

2011 May 24
4
writing dates to a file
Hi, I have attached the data files to this note. I use this code: library(zoo) z1 <- read.zoo("baltimorefludata.txt", format = "%m/%d/%Y", header = TRUE) z2 <- read.zoo("baltimorew.txt", format = "%Y%m%d", header = TRUE) z3<-merge(z1,z2) write.table(z3, "fluweatherdata_baltimore2.txt", sep="\t") R is writing the other data
2010 Jul 12
0
Error in storage.mode(test) <- "logical"
Hi There, I get the following error from the code pasted below: Error in storage.mode(test) <- "logical" : object 'HGBmt12_Natl_Ave_or_Facility' not found library(RODBC) library(car) setwd("c://temp//cms") a07.connect <- odbcConnectAccess2007("DFC.accdb") sqlTables(a07.connect) ##provides list of tables## dataset <-
2011 May 23
3
getting time series into r
Hi, I am trying to get the following two timeseries (these are small subsets of the whole thing) into R so I can merge them using zoo. Timeseries 1=[ Date Count 9/28/2003 1505 10/5/2003 1535
2010 Jul 20
3
If help
Hi Y'all, I have some data in a table with 2 columns. There are two values: "Reduction" and "No Reduction. " I am trying to make a new variable change which recode the combinations from column 1 and 2 into a single number. Here is a snippet from the table: [1,] "NoReduction" "NoReduction" [2,] "Reduction"
2011 Mar 16
5
R² for non-linear model
Dear List, how can I obtain the value of r suqared for a non-linear model? For linear models it can be found in the summary() of the model but for non-linear models I just don't know. Please help! Anna
2011 Oct 05
2
A question about R image function
Dear folks, I have a question about the image() function in R. I found the following link talking about this but the replies didn't help with my situations. http://r.789695.n4.nabble.com/question-on-image-function-td839275.html#a839276 To be simple, I will keep using the example in the above link. Suppose the data are like x y mcpvalue 0.4603578
2007 Nov 08
2
question on image() function?
Dear friends, My dataset is like the following: x y mcpvalue 0.4603578 0.6247629 1.001 0.4603715 0.6247788 1.001 0.4603852 0.6247948 1.001 0.4110561 0.5664841 0.995 The x and y variables are unsorted. I use the function image(x,y,mcpvalue) to generate a plot, but the error is that "increasing 'x' and
2011 Jul 12
7
FW: lasso regression
Hi, I am trying to do a lasso regression using the lars package with the following data (see attached): FastestTime WinPercentage PlacePercentage ShowPercentage BreakAverage FinishAverage Time7Average Time3Average Finish 116.90 0.14 0.14 0.29 4.43 3.29 117.56 117.77 5.00 116.23 0.29 0.43 0.14 6.14 2.14 116.84 116.80 2.00 116.41 0.00 0.14 0.29 5.71 3.71 117.24
2018 Jan 26
1
How to run mixed model with related independent variables
I've data that look like: Outcome V1_AA V1_EU V1_NA V2_AA V2_EU V2_NA 0 0.046 1.001 0.954 0.045 1.001 0.954 0 0.007 1 0.993 0.007 1 0.993 1 1.774 0.217 0.009 1.774 0.217 0.009 1 0.004 1.996 0 0.004 1.996 0 1
2013 Jan 25
1
Recoding variables (without recode() )
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130125/859c4520/attachment.pl>
2007 Jan 15
1
options("digits") and print.default()
Hello everyone, I use latex() (Hmisc) for report generation and thus have been affected by the problem with rounding decimals described, for example, in this post: http://thread.gmane.org/gmane.comp.lang.r.general/73287/focus=73287 In short, numbers often are printed with 15 or so decimals even if there far less significant digits. The problem has been confirmed by Frank Harrell and Thomas
2010 Apr 07
2
recoding variables-recode not working
Hi, I have numerical variable that I want to recode into categories '0' and '1 and more' and do analysis with that data. I have tried various of possibilities to do so, but I am sucked and nothing is working. recode(Q12, "0='A';1:30='B'") cut(Q12, breaks=c(0,1,30), lables=c('0', '1 and more')) cat(Q12, "0=0;1-33=1") What should
2011 Jul 22
1
Recoding Multiple Variables in a Data Frame in One Step
Hi, I can't for the life of me find how to do this in base R, but I'd be surprised if it's not possible. I'm just trying to replace multiple columns at once in a data frame. #load example data data(api) #this displays the three columns and eight rows i'd like to replace apiclus1[ apiclus1$meals > 98 , c( "pcttest" , "api00" , "sch.wide" ) ]
2011 Feb 13
2
Recoding using the memisc package
Dear All, I am trying to recode a variable using the functions provided by "memisc" package. Actually I am following the examples on page 9-10 of the vignette: -------------------------------------------------------------------------- d.fig <- within(d.fig,{ sev <- recode(sev, 1 -> 0.9, 2 -> 1.0, 3 -> 1.1, 4 ->
2000 Oct 10
1
Adding a new column to data frame (recoding)
Dear R users, I have a very simple question. What is the easiest way to recode data in one of the columns of a data frame and put it into a new column? For example, here is a simple data frame: var1 1 1 2 2 3 3 How do I add a new column to data - 'var2' in which I group values in 'var1', for example: var1 var2 1 1 4 2 2 4 3 3 5 It's got to
2018 May 23
0
Recoding variables in R
Thank you all for your help, it worked! Op 23 mei 2018 om 19:27 heeft marta azores <martazores at gmail.com<mailto:martazores at gmail.com>> het volgende geschreven: Try that code NewDF<-DF[!DF$Anxiolytics==1,] 2018-05-23 10:14 GMT+00:00 Lisa van der Burgh <lisavdburgh at hotmail.com<mailto:lisavdburgh at hotmail.com>>: Hi all, I have a very general question and I
2009 Aug 08
1
A problem with recoding agents calls via monitor
Hello everyone, I can not get the name of the recoding file of agents calls. I set agents.conf as following: ; Enable recording calls addressed to agents. It's turned off by default. recordagentcalls=yes ; ; The format to be used to record the calls (wav, gsm, wav49) ; By default its "wav". ;recordformat=gsm ; ; Insert into CDR userfield a name of the the created recording ; By
2005 Oct 31
1
Truncating with decoding/recoding
Hello all. Thanks for FLAC. It's served me well for the past few years. Is there a program out there to truncate a FLAC file without decoding/recoding it ? Preferably command-line (I already know at what point I want to truncate it). Thanks in advance. -- Andr? Majorel <URL:http://www.teaser.fr/~amajorel/> Do not use this account for regular correspondence. See the URL above for
2002 Jan 07
0
Recoding variable levels in R
>From: "Stuart Leask" <stuart.leask at nottingham.ac.uk> > >Hi there. When I wished to recode two variables in SPSS, I could use the >command RECODE: > >recode VAR1 VAR2 VAR3 etc. (1=0) (2=1) (3,MISSING=SYSMIS) (else=0). > >In R, I can 'hand-crank' each variable (using ifelse, or if the data is in a >matrix by logical tests, or no doubt numerous
2003 Jun 17
1
help recoding
hi R-listers, I would like some help recoding a variable. I have a dataframe 'cause' that translates between a set of codes: acc nds - - 1 2 3 4 5 8 ... ... the desired result for dataframe 'p': a - 1 5 5 would be: a b - - 1 2 5 8 5 9 I have tried: transform(p, b=cause$nds[cause$acc==p$a]) but for some reason it complains about the difference in length between the