similar to: sprintf() question

Displaying 20 results from an estimated 8000 matches similar to: "sprintf() question"

2012 Jul 27
2
How can I access an element of a string?
Dear Daniel and Jorge, Thank you very much and it does help. If I have a string "ABCD", how can I access the second element of the string "B"? Thanks, Miao 2012/7/27 Daniel Nordlund <djnordlund@frontier.com> > > -----Original Message----- > > From: r-help-bounces@r-project.org [mailto:r-help-bounces@r-project.org] > > On Behalf Of jpm miao
2009 Dec 18
2
how to combine multiple indicator variables in a single factor
Say I have a dataframe like this: df <- data.frame(cbind(c(1,0,0,1),c(0,1,0,0),c(0,0,1,0))) names(df) <- c('a','b','c') I would like to create a factor in a new column, where the factor values are taken from the column names, like this: > df2 a b c f 1 1 0 0 a 2 0 1 0 b 3 0 0 1 c 4 1 0 0 a How would I do this? Thanks, Dan Daniel Nordlund Bothell, WA USA
2009 Aug 24
6
Combining matrices
If I have two matrices like x <- matrix(rep(c(1,2,3),3),3) y <- matrix(rep(c(4,5,6),3),3) How can I combine them to get ? 1 1 1 4 4 4 1 1 1 5 5 5 1 1 1 6 6 6 2 2 2 4 4 4 2 2 2 5 5 5 2 2 2 6 6 6 3 3 3 4 4 4 3 3 3 5 5 5 3 3 3 6 6 6 The number of rows and the actual numbers above are unimportant, they are given so as to illustrate how I want to combine the matrices. I.e., I am looking for
2011 Feb 10
1
Revolution Analytics reading SAS datasets
Has anyone heard whether Revolution Analytics is going to release this capability to the R community? http://www.businesswire.com/news/home/20110201005852/en/Revolution-Analytics-Unlocks-SAS-Data Dan Daniel Nordlund Bothell, WA USA
2018 Feb 14
0
How to turn off warnings about class name conflicts
On 2/13/2018 11:47 PM, Ayhan yuksel wrote: > Hi, > > I am using two packages (quantmod and FRAPO) > > Quantmod and FRAPO both have a class names "zoo" > > R is displaying the following warning when I manipulate an object of class > zoo: > > Found more than one class "zoo" in cache; using the first, from namespace > 'quantmod' >
2010 Feb 11
2
SAS and RODBC
I am using R-2.10.1 binary from CRAN on a WinXP Pro system. I also use SAS v9.2 on the same box. I just started using the SAS ODBC driver that comes with version 9 of SAS. I have been able to set up an ODBC source for SAS datasets using the driver, and then with RODBC I am able to read a sample SAS dataset. > library(RODBC) > ch <- odbcConnect('sasodbc', believeNRows=FALSE)
2006 Oct 09
1
where "should" R be installed?
I am a new user of Linux (long time user of Windows) whose only training is from books, articles, and just playing with Linux. I have built and installed R from source, and also installed from RPMs (SuSE). I am wondering where in the file system experienced users of R and Linux typically install R. Are there any conventions, or any reasons to choose one location over another? I know that
2018 Feb 14
2
How to turn off warnings about class name conflicts
Hi, I am using two packages (quantmod and FRAPO) Quantmod and FRAPO both have a class names "zoo" R is displaying the following warning when I manipulate an object of class zoo: Found more than one class "zoo" in cache; using the first, from namespace 'quantmod' Also defined by ?FRAPO? The warning is displayed every time I manipulate a zoo object and becomes pretty
2012 Mar 13
1
suggestions for debugging problem with a package
I am trying to resolve a problem I am having with running the rattle package on two different Windows 7 x64 systems. It appears to be a problem with my two specific systems, because others on Windows 7 x64 systems aren't complaining about this problem. What I am looking for is a method for trying to determine the source of the problem. Here is what I am experiencing. I had Rattle running
2007 Jan 24
1
solving a structural equation model using sem or other package
I am trying to work my way through the book "Singer, JD and Willett, JB, Applied Longitudinal Data Analysis. Oxford University Press, 2003" using R. I have the SAS code and S-Plus code from the UCLA site (doesn't include chapter 8 or later problems). In chapter 8, there is a structural equation/path model which can be specified for the sem package as follows S <- cov(al2)
2006 Dec 13
1
Problem with tuned Rblas from CRAN with R-2.4.0
I encountered the following problem in R-2.4.0 for Windows binary downloaded from CRAN (data from R-help post by Ethan Johnsons). I was also using the contributed binary Rblas.dll for Intel P4 chip. The problem doesn't occur with the default Rblas.dll. x=c(3.05176E-05, 0.000457764, 0.003204346, 0.0138855, 0.04165649, 0.09164429, 0.1527405, 0.1963806, 0.1963806, 0.1527405, 0.09164429,
2007 Nov 22
1
problem updating packages on Ubuntu 7.10
I am running Ubuntu 7.10 and R-2.6.0, and I am having trouble updating packages. There appears to be a problem involving gfortran. For example, here is the output of an attempt to update the Hmisc package. * Installing *source* package 'Hmisc' ... ** libs gfortran -fpic -g -O2 -c cidxcn.f -o cidxcn.o gfortran -fpic -g -O2 -c cidxcp.f -o cidxcp.o gfortran -fpic -g -O2 -c
2007 Feb 28
3
Datamining-package rattle() Errors
Dear Group I have few errors while installing package rattle from CRAN i do the installing from the local zip files... I am using R 2.4.0 do i have to upgrade to R2.4.1 ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils:::menuInstallLocal() package 'rattle' successfully unpacked and MD5 sums checked updating HTML package descriptions > help(rattle) No
2012 Mar 23
4
Missing Windows binary for R-2.15RC?
Hi, The page http://cran.r-project.org/bin/windows/base/rtest.html has a link to: http://cran.r-project.org/bin/windows/base/R-2.15.0rc-win.exe However, clicking on that link gives a 404 "Object not found' error. FYI. Dan
2010 Mar 02
1
sem package and growth curves
I have been working through the book "Applied longitudinal data analysis: modeling change and event occurrence" by Judith D. Singer and John B. Willett. I have been working examples using SAS and also using it as an opportunity for learning to use R for statistical analysis. I ran into some difficulties in chapter 8 which deals with using structural equation modeling. I have tried to
2013 Apr 18
2
Multiple Multivariate regression in R with 50 independent variables
Hello all Is there a method/package in R in which I can do regressions for more than 50 independent variables ? Regards The woods are lovely, dark and deep But I have promises to keep And miles before I go to sleep And miles before I go to sleep ----- [[alternative HTML version deleted]]
2006 Jan 28
1
installation of R on Linux
R-users, I am new user of Linux (have been using Win XP Pro) and wanted to install R. Since I am just beginning to learn Linux I was wondering, where in the directory structure do users of Linux usually install R? Most of the instructions I have read simply say to untar the tarball where you want to install the program. Any suggestions would be welcome as to an appropriate place. I know I
2007 Jul 03
1
MatchIt package on Ubuntu 7.04 (Feisty Fawn)
UseRs, I tried to install the MatchIt package on Ubuntu 7.04. When loading required dependencies I got the following error message: Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/usr/local/lib/R/site-library/optmatch/libs/optmatch.so': /usr/local/lib/R/site-library/optmatch/libs/optmatch.so: cannot map zero-fill pages: Cannot
2010 Sep 13
1
relative risk regression with survey data
I have been asked to look at options for doing relative risk regression on some survey data. I have a binary DV and several predictor / adjustment variables. In R, would this be as "simple" as using the survey package to set up an appropriate design object and then running svyglm with family=binomial(log) ? Any other suggestions for covariate adjustment of relative risk
2009 Aug 28
1
names<- in data.frame (PR#13916)
Full_Name: Spinu Vitalie Version: 2.9.0 OS: Windows Submission from: (NULL) (130.115.113.15) In assignment of "zero length" names to data.frame: > tdf <- data.frame(rbind(c(1, 2), c(1, 2))) > names(tdf) <- c("", "") > tdf structure(c("1", "1"), class = "AsIs") structure(c("2", "2"), class =