similar to: extracting the names of the dataframe and variables in aov or lm

Displaying 20 results from an estimated 800 matches similar to: "extracting the names of the dataframe and variables in aov or lm"

2003 Apr 02
19
Combining the components of a character vector
Dear Help, Suppose I have a character vector. x <- c("Bob", "loves", "Sally") I want to combine it into a single string: "Bob loves Sally" . paste(x) yields: paste(x) [1] "Bob" "loves" "Sally" The following function combines the character vector into a string in the way that I want, but it seems somewhat inelegant.
2002 Dec 20
2
vectorizing test for equality
Dear R Help, I am trying to create a boolean vector that is TRUE whenever a particular value occurs in a numeric vector, and FALSE otherwise. For example, suppose that > y <- c(5, 2, 4, 3, 1) > y [1] 5 2 4 3 1 and suppose that I want to find where 3 occurs in y. Then, the following yields the solution: > y == 3 [1] FALSE FALSE FALSE TRUE FALSE My problem arises when the
2002 Apr 23
3
Subsetting by a logical condition and NA's
I have run into a general problem with subsetting of which the following is a simple example. Suppose that x <- c(5, NA, 7, 5, NA, 3) y <- c(1, 2, 3, 4, 5, 6) I want to extract the values of y for which x = 5, but y[x==5] yields > y[x==5] [1] 1 NA 4 NA I find that y[!is.na(x) & x==5] yields the desired result: > y[!is.na(x) & x==5] [1] 1 4 but I am wondering whether
2006 Feb 24
2
converting character matrix to a dataframe
Dear R-Help, Suppose I have a character matrix, e.g., (ch.mat <- matrix(c('a','s','*','f','w','*','k','*','*','f','i','o'), ncol=3)) When I convert 'ch.mat' to a dataframe, the columns are converted to factors: (d1 <- data.frame(ch.mat)) mode(d1[,1]) is.factor(d1[,1]) To prevent
2002 Dec 22
4
pasting "\" into character strings
Dear R-Help, I'm using R version 1.6.0 on a Windows computer. I am trying to create a function that, among other things, constructs strings that refer to Windows files, e.g., I might want to construct a string like 'c:\work\part1.txt'. I have found that the following does not work. > paste("c:", "\", "work", "\", "part1.txt",
2002 Apr 19
4
Multidimensional scaling
A student of mine wants to use R to do some nonmetric multidimensional scaling. According to the R FAQ, there's a package called pcurve that computes multidimensional scaling solutions, but I was not able to locate it the contrib page (I am a Windows user with R version 1.4.1). Can anyone tell me whether it is possible to do nonmetric multidimensional scaling with R, and if so, how? John
2001 Oct 31
3
t.test
Dear R-users, I am learning to use R 1.3.1 on a Pentium running Windows '98. I'm puzzled that several statistical procedures, t.test and chisq.test, do not appear to be available on R version 1.3.1. For example, if I type "t.test", I get the reply, "Object "t.test" not found". Is there a package that I have to load in order to have access to these
2002 Oct 10
2
Environment variables under Windows
Greetings, I have a question pertaining to the concept of "environment variables" that is mentioned in the R documentation for "Startup" and also in the discussion of the Windows configuration of R in the recent book "An Introduction to R" authored by Venables, Smith, and the R Development Core Team (referred to as VS in this message). The Startup documentation and
2003 Oct 14
0
Job notice at the University of Washington
UNIVERSITY OF WASHINGTON FACULTY POSITION IN QUANTITATIVE PSYCHOLOGY The Department of Psychology seeks to fill a position in Quantitative Psychology at the tenure-track assistant professor level. In exceptional circumstances, appointment at the Associate Professor or Professor level may be considered for candidates who offer extraordinary opportunities to further the University's
2002 Apr 23
0
Summary: Multidimensional scaling
I sent a query to R-Help about the availability of nonmetric multidimensional scaling (MDS) algorithms in R. I would like to thank Tony Rossini, Jonathan Baron, Sundar Dorai-Raj, and Brian Ripley for helpful replies. The gist of the replies is that isoMDS in the MASS library provides Kruskal's method for nonmetric MDS, sammon in the MASS library provides Sammon's nonlinear mapping method
2004 Apr 05
0
studentized deleted residuals and NA's
Dear R-Help, I am using the studres function from the MASS package to compute studentized deleted residuals in a oneway anova. I'm having trouble interpreting the results in situations where a factor level has only one observation. Sometimes studres yields an NaN and sometimes it produces a numeric value for cases where a factor level has only one observation. I would think it should
2005 Oct 25
3
error from make: gcc -shared -L/usr/local/lib64 ... relocation R_X86_64_32...
I hope someone can point me, a newcomer to building R as well as 64-bit R, in a useful direction. I have a dual Opteron 275 box running RedHat EL4. I ran configure successfully, and, then, get the following error while running make: make[4]: Entering directory `/tmp/R-2.2.0/src/modules/lapack' g77 -fPIC -g -O2 -ffloat-store -c dlamc.f -o dlamc.lo g77 -fPIC -g -O2 -c dlapack0.f -o
2004 Jun 10
1
Failure to compile on Itanium
I am trying to compile R on an Itanium machine running Red Hat 7.2 and gcc version 2.96. The build fails with the following symptoms: g77 -fPIC -g -O2 -c cmplx.f -o cmplx.lo g77 -fPIC -g -O2 -c cmplxblas.f -o cmplxblas.lo gcc -shared -L/usr/local/lib -o libRlapack.so dlapack0.lo dlapack1.lo dlapack2.lo dlapack3.lo cmplx.lo cmplxblas.lo -L/usr/local/lib
2006 Jan 13
1
Problems installing R 2.2.1
We are trying to install R2.2.1 on a IBM P655 Cluster, SuSE LE 9.1 We are using gcc v 3.3.3 and we are getting this error on make g77 -fPIC -g -O2 -ffloat-store -c dlamc.f -o dlamc.lo g77 -fPIC -g -O2 -c dlapack0.f -o dlapack0.lo g77 -fPIC -g -O2 -c dlapack1.f -o dlapack1.lo g77 -fPIC -g -O2 -c dlapack2.f -o dlapack2.lo g77 -fPIC -g -O2 -c dlapack3.f -o dlapack3.lo g77 -fPIC -g
2001 Oct 01
1
What is an error bu21? (PR#1106)
Hi everyone, I have just tried to compile R 1.3.1 on the following platform: R is now configured for mips-sgi-irix6.5 Source directory: . Installation directory: /usr/local C compiler: gcc -g -O2 C++ compiler: g++ -g -O2 FORTRAN compiler: g77 -g -O2 X11 support: yes Gnome support: no Tcl/Tk support:
2002 Apr 18
1
Problem compiling on HP-UX 10.20
I am having a problem compiling R on an HP-UX 10.20 system using gcc/g77 compiler. It appears to compile without problems until it gets to the lapack module and I get the following error: gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -D_HPUX_SOURCE -fPIC -O2 -c Lapack.c -o Lapack.lo g77 -fPIC -O2 -c double.f -o double.lo g77 -fPIC -O2 -c cmplx.f
2014 Oct 18
2
[LLVMdev] Performance regression on ARM
On Sun, Oct 19, 2014 at 6:45 AM, Joerg Sonnenberger <joerg at britannica.bec.de > wrote: > On Sun, Oct 19, 2014 at 06:31:24AM +0700, C Bergström wrote: > > I apologize that I haven't been able to follow this thread entirely, but > if > > someone gives me a Fortran testcase I can check what Fortran+llvm would > do > > currently and maybe give more feedback.
2004 Jan 20
3
Changing workspace from within an R session
Hello R-users, is it possible to navigate from one workspace to the other from within an R session or does one has to close R and restart it from the directory where resides the desired workspace? For example from Splus I have this little function, see at the end, which I used all the time to navigate between valid Splus directories. I find this particularly usefull when I develop new
2011 Mar 31
2
ANCOVA for linear regressions without intercept
Hello R experts I have two linear regressions for sexes (Male, Female, Unknown). All have a good correlation between body length (response variable) and head length (explanatory variable). I know it is not recommended, but for a good practical reason (the purpose of study is to find a single conversion factor from head length to body length), the regressions need to go through the origin (0
2002 Dec 11
1
residuals: lm and glm
Dear list members, I would like to know the difference in outputs and calculation processes between residuals.glm(object, type="response") and residuals.lm(object). For above-ground biomass estimation of trees, I estimated parameters of an allometric equation (ln y = b0 + b1*ln x) using glm as follows: fm <- glm(Ws~log(Wb), family=quasi(link="log",