Displaying 7 results from an estimated 7 matches similar to: "Renaming variables"
2008 Sep 19
2
Multiple logical operations in a subscript
Hello,
I would like to select cases using multiple logical operations (e.g. X
or Y or Z) without having to repeat the dataframe$variable within the
subscript. My working code (with a single logical operator) currently
looks like this:
dataframe$newvariable[data$oldvariable=="X"]<-"group1"
I thought this next line of code might do what I wanted, but it doesn't:
2012 Jul 25
1
reshaping data
Hi,
I am trying to reshape data from a long to wide format but have a specific
task that I cannot get to output properly.
# SAMPLE DATA;
id <- c(1,2,2,3,3,3)
time <-c(0,0,5, 0, 2, 10)
x <- rnorm(length(id))
long <- data.frame(id,time,x)
# To reshape, I would like to exclude 'id' values that have NO duplicate
(i.e., remove
# id=1 in this case). My attempts failed because the
2004 Sep 30
1
expand.model.frame gives "object not found"
Hello,
I am a (relatively) experienced programmer, but new to R.
I have a problem using R 1.9.1. I have fit some data using glm(), from
within a function:
formula = as.formula(paste(depvarname, "~", rhs), env=globalenv())
return (glm(formula, family=binomial(link=logit)))
I have now come back to the formula and want to add some more
variables to it. So I do:
2017 Nov 19
2
Changeing logarithms
Hi!
I'm using a large panel data, and now I have faced some difficulties with
my analysis. The predictors are not normally distributed and there are
quite many outliers (some of them are influential though).
I have tried to change the logarythm, but i'm not sure, how to do that. I
want also draw a plot picture in which logarythms of predictors x and y are
changed. How could I do that?
2016 Apr 27
0
R Script Template
The subject of your email is missing. Perhaps you need to read the Posting Guide (again?) about attachments. Embedding your example directly in the body of the email is generally more accessible in archives than attaching it.
--
Sent from my phone. Please excuse my brevity.
On April 27, 2016 1:14:17 PM GMT+01:00, G.Maubach at gmx.de wrote:
>Hi All,
>
>I am addressing this post to all
2016 Apr 27
2
R Script Template
Hi All,
I am addressing this post to all who are new to R.
When learing R in the last weeks I took some notes for myself to have code snippets ready for the data analysis process. I put these snippets
together as a script template for future use. Almost all of the given command prototypes are tested. The template script contains snippets for best practices and leaves out the commands that
2006 May 19
1
Need help with a test
Hi,
I have this controller method that I need to test:
def link_concept_to_client
concept_to_link = Concept.find(params[:concept_id])
# take all the variations for the concept
for variation in concept_to_link.variations
new_client_variation = ClientVariation.new
new_client_variation.client = session[:active_client]
new_client_variation.variation = variation