Displaying 3 results from an estimated 3 matches for "oldvari".
Did you mean:
oldvar
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:
dataframe$newvariable[data$oldvariable=="X" | "Y" | "Z"]<-"group1"
I'd appreciate any suggestions. I've tried playing around...
2011 Jun 14
1
Renaming variables
Hi guys,
I checked previous posts and I saw similar questions have been answered;
they didn't help me solve my problem though. I am using R version 2.13.0
(2011-04-13), Platform: x86_64-pc-mingw32/x64 (64-bit) and I am having
difficulties renaming variables. I tried with this command:
names (oldvariable) <- 'new_variable'
and now when I type in oldvariable the new name pops out in form: [1]
"new_variable" BUT when I try typing in new_variable I get the message
Error: object 'new_variable' not found
I also tried with fix(mydata) command, but editor basically ope...
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?