similar to: SAS to R migration questions

Displaying 20 results from an estimated 4000 matches similar to: "SAS to R migration questions"

2006 Apr 26
5
accessing created_on causes type error
I assume that this is some newbie stupidity, but I haven''t found my way around this problem. I have an ActiveRecord object fetched from the database, and I need to evaluate the contents of the updated_on field. However, *any* attempt to access that data in the program results in a TypeError with the message ''no implicit conversion from nil to integer''. cust =
2010 Sep 09
1
syntax error, unexpected '<token>'
Hello list, getting warning : *syntax error, unexpected '<token>'* dialplan : exten => pbx,n,Macro(CheckNetworkProblems,${custID}) exten => pbx,n,NoOp(status = ${STATUS}) exten => pbx,n,GoToIf($["${STATUS}"="congestion"]?backup:nocongestion) CLI : [Sep 9 12:27:07] -- Executing [pbx at cust:15] NoOp("SIP/test13-0000002a",
2005 Sep 28
2
Summary of translation status
Dear R-devel & Translation Teams, In order to monitor the progress of the translation for the pt_BR team I wrote a script to summarize the status of the translations. It wasn't difficult to extend it to the other languages so I decided to set up a page with the summaries of the translation for all languages for which currently exist a translation.
2018 Feb 25
1
reshaping column items into rows per unique ID
Hi Allaisone, I took a slightly different approach but you might find this either as or more useful than your approach, or at least a start on the path to a solution you need. df1 <- data.frame(CustId=c(1,1,1,2,3,3,4,4,4),DietType=c("a","c","b","f","a","j","c","c","f"),
2013 Sep 02
1
R dataframe and looping help
HI, You may try this: dat1<- read.table(text=" CustID TripDate Store Bread Butter Milk Eggs 1 2-Jan-12 a 2 0 2 1 1 6-Jan-12 c 0 3 3 0 1 9-Jan-12 a 3 3 0 0 1 31-Mar-13 a 3 0 0 0 2 31-Aug-12 a 0 3 3 0 2 24-Sep-12 a 3 3 0 0 2 25-Sep-12 b 3 0 0 0 ",sep="",header=TRUE,stringsAsFactors=FALSE) dat2<- dat1[,-c(1:3)] res<- lapply(seq_len(ncol(dat2)),function(i)
2003 Oct 11
2
Problem in 'methods' package (PR#4525)
Full_Name: Fernando Henrique Ferraz Pereira da Rosa Version: 1.8.0 OS: Linux 2.4.21 Submission from: (NULL) (200.206.211.169) After installing R 1.8.0, the R DBI interface stopped working. I tracked it down as a problem in the 'methods' package, that comes in the default installation. Somehow the function '.valueClassTest' which is defined on package 'methods',
2010 Jun 05
1
Problem with GROUP()
Hello list, using asterisk 1.4.30 and trying GROUP() and GROUP_COUNT() for the first time... Having some troubles. This the dialplan (using a sub) : exten => s,n,Set(_custID=${custID}) exten => s,n,GROUP(${custID}) exten => s,n,NoOp(grouppcount = GROUP_COUNT(${custID})) exten => s,n,GoToIf($[ ${GROUP_COUNT(${custID})} > 2 ]?maxreached) The CLI shows : [Jun 5 16:06:26] --
2010 Mar 10
2
Using R in a corporate envinronment
Dear r-useRs, After a couple of years in a 'R exile' of sorts, I've recently changed jobs and my current employer (an American multinational in the food manufacturing industry) is much more open than my past employer (which wouldn't even want to hear about anything that didn't begin with SAS...). So, after my insistence corporate IT is now considering adopting R as part of our
2010 Mar 10
2
Using R in a corporate envinronment
Dear r-useRs, After a couple of years in a 'R exile' of sorts, I've recently changed jobs and my current employer (an American multinational in the food manufacturing industry) is much more open than my past employer (which wouldn't even want to hear about anything that didn't begin with SAS...). So, after my insistence corporate IT is now considering adopting R as part of our
2004 Apr 04
1
How to improve this code?
Hi all, I've got some functioning code that I've literally taken hours to write. My 'R' coding is getting better...it used to take days :) I know I've done a poor job of optimizing the code. In addition, I'm missing an important step and don't know where to put it. So, three questions: 1) I'd like the resulting output to be sorted on distance (ascending) and
2018 Feb 25
0
reshaping column items into rows per unique ID
I believe you need to spend time with an R tutorial or two: a data frame (presumably the "table" data structure you describe) can *not* contain "blanks" -- all columns must be the same length, which means NA's are filled in as needed. Also, 8e^5 * 7e^4 = 5.6e^10, which almost certainly will not fit into any local version of R (maybe it would in some server version --
2004 Sep 07
1
Contrast matrices for nested factors
Hi, I'd like to know if it's possible to specify different contrast matrices in lm() for a factor that is nested within another one. This is useful when we have a model where the nested factor has a different number of levels, depending on the main factor. Let me illustrate with an example to make it clearer. Consider the following data set: set.seed(1) y <-
2009 Jun 07
2
How do I construct a one matrix from another? (newbie)
Apologies if this is an obvious question but I am teaching myself R and the occasional push in the right direction is much appreciated? I have a data.frame containing data that looks like this CustID itemID 1 a 1 b 2 c 3 a 3 c I want to assemble the vector of all the items bought by a particular customer and can't quite see how to do it. What is the best
2004 Nov 16
5
Difference between two correlation matrices
Hi Now a more theoretical question. I have two correlation matrices - one of a set of variables under a particular condition, the other of the same set of variables under a different condition. Is there a statistical test I can use to see if these correlation matrices are "different"? Thanks Mick
2018 Feb 25
4
reshaping column items into rows per unique ID
Hi All I have a datafram which looks like this : CustomerID DietType 1 a 1 c 1 b 2 f 2 a 3 j 4 c 4 c 4 f And I would like to reshape this so I can
2017 Oct 09
1
Help RFM analysis in R (i want a code where i can define my own breaks instead of system defined breaks used in auto_RFM package)
Hi Hemant, Here is an example that might answer your questions. Please don't run previous code as it might not work. I define the break values as arguments to the function (rbreaks,fbreaks,mbreaks) If you want the breaks to work, make sure that they cover the range of the input values, otherwise you get NAs. # expects a three (or more) column data frame where # column 1 is customer ID,
2009 Jun 13
1
Portuguese translation problem (PR#13756)
Full_Name: Adriano Azevedo Filho Version: 2.9.0 OS: Windows Vista Submission from: (NULL) (201.68.79.62) The error message produced when the function name typed in the console is misspelled in the Portuguese translation. This is not a new issue but as it is around for sometime I've decided to report. As this is a frequent message when beginners start using R, it gives an unfortunate bad
2004 Dec 09
2
Mixed effects model help
I am attempting to set up a mixed effects model, with one factor fixed (put in as.factor, with three factor levels) and one factor random(put in as.factor, with four different batches) as well as the interactions. I have tried the lme function, but R continues to crash everytime I run it... My code is: model_lme(y~a,random=~b+a:b) Is this way off base? I just need to get F statistics to do
2004 Dec 10
1
lattice graphics empty in Sweave
Hello, I have problems using lattice graphics together with Sweave under Windows XP and R 2.0.0; 2.0.1 Patched; 2.1.0 devel respectively. Base graphics are o.k., but for lattice graphics empty files (.eps and .pdf) are generated. The only workaround I found was to write and read the respective figures explicitely using postscript() and includegraphics{}. Have I missed something to solve this
2004 Nov 21
1
Two factor ANOVA in lme
I want to specify a two-factor model in lme, which should be easy? Here's what I have: factor 1 - treatment FIXED (two levels) factor 2 - genotype RANDOM (160 genotypes in total) I need a model that tells me whether the treatment, genotype and interaction terms are significant. I have been reading 'Mixed effects models in S' but in all examples the random factor is not in the main