similar to: factor with numeric names

Displaying 20 results from an estimated 110 matches similar to: "factor with numeric names"

2010 Sep 15
1
Format Data Issue??
R Users, I am new to R and have tried to figure out how to automate this process instead of using excel. I have read in this dataframe into r with read.table. I need to reshape the data from the first table into the format of the second table. TractID StandID Species CruiseDate DBHClass TreesPerAcre Carbon Stand 1 Loblolly Pine 5/20/2010 10 1.2 Carbon Stand 1 Loblolly Pine
2004 Jan 17
3
Multiple groupedData plots in a postscript file using a loop
Hallo! I want to plot multiple grouped data in a postscript file using a loop. As I use a loop no plot (or just one empty plot) is generated. Here an example: library(nlme) data(Loblolly) # example data from nlme postscript("PSFile.ps") for (i in 1:1) # just as example { plot(Loblolly) } dev.off() Result: Just an empty PSFile.ps. (Withoput the loop it works. May anybody help? Karl
2011 Jan 19
2
xyplot question
Hi all, I had a weird problem with xyplot and I am wondering if anyone can help me figure out what's wrong here. Basically if I call xyplot() inside a function and I call quartz() after, then the previous xyplot() does not do anything. A short demo of the issue is like this: library(lattice) plot.trends <- function() { mat <- data.frame(cbind(rnorm(100), rnorm(100))) names(mat)
2002 Aug 28
2
sourcing a file with the plot.lme() function
I ran into a problem trying to make a plot from a file that's read using source. Basically, I have the following code in a file "plot.R" : library(nlme) data(Loblolly) fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc), data = Loblolly, fixed = Asym + R0 + lrc ~ 1, random = Asym ~ 1, start = c(Asym = 103, R0 = -8.5, lrc = -3.3))
2008 Mar 11
1
Problem comparing Akaike's AIC - nlme package
Hello, I am comparing models made with nlme functions and non-nlme functions, based on Akaike's AIC. The AIC values I get for exactly the same model formulation --for example a linear model with no random effects fit with gls and lm, respectively-- do not fit, although the values of the four model parameters are exactly the same. For example: m1 <- gls(height ~ age, data = Loblolly) m2
2011 Dec 21
1
Is there a way force hiding of all messages when calling library()?
For example, if I call "library(spam)", I would get messages like this Package 'spam' is loaded. Spam version 0.27-0 (2011-08-17). Type demo( spam) for some demos, help( Spam) for an overview of this package. Help for individual functions is optained by adding the suffix '.spam' to the function name, e.g. 'help(chol.spam)'. Attaching package: ?spam? The
2006 Sep 11
4
syntax of nlme
Hello, How do I specify the formula and random effects without a startup object ? I thought it would be a mixture of nls and lme. after trying very hard, I ask for help on using nlme. Can someone hint me to some examples? I constructed a try using the example from nls: #variables are density, conc and Run #all works fine with nls DNase1 <- subset(DNase, Run == 1 ) fm2DNase1 <- nls(
2004 Mar 23
1
nlme question
I have a need to call and pass arguments to nlme() from within another function. I use R version 1.8. I have found an apparent way to make this work, but I would appreciate some comments on whether this fix is really appropriate, or there is another way to do it that does not involve changing the source code. I don't have enough experience to start changing the sorurce code of a library
2004 Nov 07
1
rgl on Mac OS
Hi, It seems like a number of people on this list can install rgl but have problem loading it. I found myself in the same situation too. I have tried the workaround of removing /usr/X11R6/lib from DYLD_LIBRARY_PATH, but it doesn't seem to work for me, I am still getting the same error (that everyone else seems to get). Can anyone give me some ideas on what else to try? I have Mac OS 10.3.5,
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives demonstrations on what can be done using R? I downloadedR Langauage definition and An introduction to R but haven't found them overly useful. I'd really like to be able to follow some tutorials using a dataset or many datasets. The datasets I have available on R are Data sets in package 'datasets':
2006 Aug 24
2
my error with augPred
Dear all I try to refine my nlme models and with partial success. The model is refined and fitted (using Pinheiro/Bates book as a tutorial) but when I try to plot plot(augPred(fit4)) I obtain Error in predict.nlme(object, value[1:(nrow(value)/nL), , drop = FALSE], : Levels (0,3.5],(3.5,5],(5,7],(7,Inf] not allowed for vykon.fac > Is it due to the fact that I have unbalanced
2013 Feb 17
1
xtable nlme
Hola a todos Les consulto por un problema con xtable y nlme, tomando un ejemplo del manual de nlme para obtener los resultados en latex utilizando xtable, se puede utilizar el siguiente código, pero hay un problema y causa error. library(nlme) library(xtable) fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc), data = Loblolly, fixed = Asym + R0 + lrc ~ 1,
2011 Apr 26
1
splitting and reorganising a data.frame
Hey, i have a question about how to reorganize a data frame in the easiest way. my example: what would be the easiest way to bring a data.frame such like this: ---- nr height age Seed 1 1 4.51 3 301 2 15 10.89 5 301 3 29 28.72 10 301 4 43 41.74 15 301 5 57 52.70 20 301 6 71 60.92 25 301 7 2 4.55 3 303 8 16 10.92 5 303 9 30 29.07 10 303 10 44
2006 Oct 30
1
Random intercept-slope correlation (nlme)
Dear list members, I am working with a multilevel growth curve, that in its simplest form goes like follows: Yit = Ai + Bi t + eit (the error term is assumed to follow an AR(1) autorregressive process) One major topic in my research is the convergence in the values of Y over time. Thus, I am interested in the relationship between the random effects for the intercept and the slope, and I
2017 Apr 25
4
R-3.4.0 and recommended packages
Am Dienstag, 25. April 2017, 08:50:34 schrieb Dirk Eddelbuettel: > On 25 April 2017 at 14:58, G?ran Brostr?m wrote: > | hello, > | > | I just installed R-3.4.0 from scratch: > | > | $ sudo apt install r-base > | > | but when I try > | > | > library(survival, lib.loc = "/usr/lib/R/library") > | > fit <- coxph(Surv(exit, event) ~ x, data =
2004 Jul 26
0
Problem with a while loop embedded in a function.
Hello all. I have been working on a (fairly simple) function for way too long. I’ve really hit a wall and I was hoping someone might be able to point me in the right direction. I have (attempted) to create a function that has an embedded while loop. The while loop works fine by itself, however, when the while loop is embedded in the function, the function fails. I’m not sure why this
2010 Jan 06
0
lapack problem on Linux fedora 11
I need your help to make R works on my linux box, runing fedora 11. Few things on the machine and steps I did: 1. uname -a shows: Linux bagvapp 2.6.29.4-167.fc11.i586 #1 SMP Wed May 27 17:14:37 EDT 2009 i686 athlon i386 GNU/Linux 2. it has a gcc (version 4.4) RedHat's build 3. the g77 comes with the box does not work (R's configure tells it could not compile simple fortran code); so
2017 Apr 27
2
R-3.4.0 and recommended packages
Am Dienstag, 25. April 2017, 11:21:31 schrieb Dirk Eddelbuettel: > On 25 April 2017 at 16:11, Johannes Ranke wrote: > | This looks similar to what I got this morning when I tested my > | (unreleased) > | backport of R 3.4.0 to Debian jessie. My test was > | > | library(MASS) > | example(rlm) > | > | and there was an object that was not found. I am on a train on the way
2007 Apr 24
0
R 2.5.0 is released
I've rolled up R-2.5.0.tar.gz a short while ago. This is a development release which contains a number of new features. In particular: - Object name completion by integration of package 'rcompletion' by Deepayan Sarkar - New recommended package 'codetools' by Luke Tierney - New Rscript front-end, which enables shell-like R scripting also, a number of mostly minor
2007 Apr 24
0
R 2.5.0 is released
I've rolled up R-2.5.0.tar.gz a short while ago. This is a development release which contains a number of new features. In particular: - Object name completion by integration of package 'rcompletion' by Deepayan Sarkar - New recommended package 'codetools' by Luke Tierney - New Rscript front-end, which enables shell-like R scripting also, a number of mostly minor