similar to: Warning: as.numeric reorders factor data

Displaying 20 results from an estimated 5000 matches similar to: "Warning: as.numeric reorders factor data"

2002 Dec 12
3
y axis on hist
Hi: The y axis on the hist function seems to set its limits oddly. sometimes, it covers the full range of the data and sometimes it stops one major tick short. I have had this behavior with a variety of data sets, and it can easily be reproduced by just running the following several times: hist(rnorm(100000)) I have tried explicitly setting ylim to the range of values produced by rnorm
2002 Dec 12
2
Problem with dyn.load in R1.6.1
I've been successfully using a dll via dyn.load() with R1.6.0 for Windows, but when I try it under R1.6.1 it manages to crash the program completely. Has there been a change in how R1.6.1 handles dynamic loading? I couldn't spot any such changes in the documentation. This problem occurred on two different machines, and both run the code under R1.6.0 without a problem. Rob Hyndman
2002 Nov 22
2
Need help with pipe()
Hello. I have an R program that calls gawk (GNU Awk 3.06 for Windows) from within pipe() to preprocess a large file before it is read into a data frame with read.table(). I've recently upgraded from Win98SE to WinXP, and have also upgraded from R1.5.0 to R1.6.1 over the past month or so. This program worked before the upgrade(s), but now fails. I observe the following sort of behavior with
2003 Apr 11
2
bug in read.table (PR#2764)
Hi, there might be a bug in read.delim (also read.table) in R.1.6.2. I included the correct input done in R1.6.1 first, then the wrong input in R1.6.2. The discrepancies are highlighted in red. Michael Man ####### correct input in R1.6.1 ########################## > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386,
2002 Nov 30
3
About building R1.6.1 on Cygwin
Hello. For building REmbeddedPostgres in Omegat project(http://www.omegahat.org/RSPostgres/) requiring PostgresSQL's libs, I've tried to build R1.6.1 on Cygwin following the instruction of http://www.stats.ox.ac.uk/pub/Rtools/ since full-spec PostgresSQL running on Windows can run only on Cygwin environment, However I've got following error messages. make -C front-ends Rpwd
2003 Mar 14
6
length() misbehaving?
I'm having a weird problem with length(), in R1.6.1 under windows2000. I have a dataframe called byyr, with ten columns, the first of which is named cnd95. summary(byyr) shows that byyr$cnd95 contains the factor level "tr" 66 times. Also, when I enter byyr$cnd95 at the command line, I can count 66 "tr" elements in the resulting vector. However, when I enter n95trt <-
2002 Nov 30
2
pch as single character
Dear friends - using windows xp and R1.6.1 when doing x <- 12 as.character(x) [1] "12" plot(1,2,pch=as.character(x)) the interesting point is marked with: 1 whereas I would like to see 12. In par() is specified under pch: Either an integer specifying a symbol or a single character to be used as the default in plotting points How is that overridden ? Best wishes Troels --------------
2003 Mar 14
1
Fw: length() misbehaving?: More
With the problem below, I've discoved that n95trt<-length(byyr$cnd95[byyr$cnd95=="tr"&!is.na(byyr$cnd95)]) does give me the correct count for the number of "tr" entries. (The same behavior occurs for the "c" level of the cnd95 factor.) It appears that byyr$cnd95=="tr" is finding both "tr" AND NA entries. Is this a bug, or is it to be
2003 Jan 13
1
Rprofile.site assignments occur in base package (PR#2448)
Not sure whether this is a feature or bug -- but it does not appear to be documented. R1.6.1 on Windows NT 4.00.1381 Objects assigned in the Rprofile.site file (e.g. foo<-'something') are put into package:base not .GlobalEnv on startup. Objects assigned in the .Rprofile file are put into .GlobalEnv. This doesn't seem consistent to me. The objects exist in base only for the
2003 Jan 03
3
save bug (PR#2418)
My apologies if these are known -- I'm new to R (moved over from S-Plus). All on Windows NT GUI, R1.6.1 and associated packages. 1. save(x) gives the following error message: Error in save(x) : `file' must be non-empty string According to the save() help file, the empty string is the default. 2. In the file>Display file GUI menu, if you try to display a file that is in use by
2002 Dec 23
1
Strange axis labels?
Moi! I'm trying to add a rather long label to a y-axis, and it's so long that it won't fit into one line. However, things get strange when I try and split it over 2 lines. The problem seems to be the plus/minus symbol, which means I have to use expression(). I'm using R1.6.1 on Windoze 2000. As an example: thing1 <- expression(paste("log odds of survival probability (
2002 Nov 20
2
restart
Dear group I use "restart" in part of my code, in a way that's not easily changed to "try". As I convert code from R1.5.0 to R1.6.1, I'm getting ugly messages; the help system says to contact r-devel, so here I am. This one's a bit complicated-- sorry! The context is inside a debugger (I have an R and S debugger that offers stand-alone code windows, line numbered
2017 Jun 20
2
Help with the plot function
Dear friends, I have the following dataframe: YEAR <- c(1996 , 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 ) T_MAR <- c(2.8, 6.5, 5.4,2.4, 4, 4.1, 3, 4.4, 4.5) T_APR <- c(5.7, 7.8, 7.7, 4.6, 4.7, 6.2,5.7, 5.9, 7) T_MAY <- c(7, 8.8, 10, 6, 5.5, 7.6, 8.5, 7.3, 10.2) BUD <- c(87, 98, 93, 85, 89, 91, 87, 92, 92) BUD_SE <- c(3.6, 2, 2.4, 4, 2.4, 2.4, 4, 2.4, 3) g1 <-
2017 Jun 20
2
Help with the plot function
Hi, Bert: Yes, I studied the functions you suggested, but I didn't get to adapt it to my example whose reproducible code I sent in my first email. Here it is the code of the functions I studies: ## par par(mfrow = c(2, 3)) par(cex = 0.6) par(mar = c(3, 3, 0, 0), oma = c(1, 1, 1, 1)) for (i in 1:6) { plot(1, 1, type = "n") mtext(letters[i], side = 3, line = -1, adj = 0.1, cex =
2017 Dec 26
2
Rscript fails with some packages (for example, h5)
Consider this script (with h5 installed): $ cat test.R library(h5) name <- tempfile() f <- h5file(name) file.remove(name) $ Rscript test.R Error in initialize(value, ...) : cannot use object of class "character" in new(): class "H5File" does not extend that class Calls: h5file -> new -> initialize -> initialize Execution halted $ /usr/lib64/R/bin/R --slave
2017 Jun 20
2
Help with the plot function
I'm trying to recreate a graph similar to the last one found on this link: https://sites.ualberta.ca/~lkgray/uploads/7/3/6/2/7362679/6c_-_line_plots_with_error_bars.pdf The difference is that I want budbreak on the top, and the temperatures at the bottom. I tried to set par before each graph and include lines, with no avail. Thanks, Bert. Andre On Mon, Jun 19, 2017 at 7:41 PM, Bert Gunter
2017 Jun 20
1
Help with the plot function
Dear all, I found the last example of this link ( https://sites.ualberta.ca/~lkgray/uploads/7/3/6/2/7362679/6c_-_line_plots_with_error_bars.pdf) very similar to the one I need to make for my paper, and I think I got what I wanted by applying some of the suggestions of this mail list. Here it is the code I devised (maybe there will be further improvements from the list): YEAR <- c(1996 ,
2017 Jun 20
0
Help with the plot function
Hi You are quite close. With slight modification of your code: par(mfrow = c(2, 1)) par(cex = 0.6) par(mar = c(0, 0, 0, 0), oma = c(4, 4, 0.5, 0.5)) par(tcl = -0.25) par(mgp = c(2, 0.6, 0)) plot(BUD~YEAR, type="o", ann=F, axes=F, pch=19, ylim=c(60,100),data=g1) axis(4, las=2) mtext("Bud Break (Julian Day)", side=4, padj=4) arrows(g1$YEAR,g1$BUD, g1$YEAR,g1$BUD + g1$BUD_SE,
2017 Jun 20
0
Help with the plot function
See ?layout ?split.screen ?par (the mfrow and mfcol values) depending exactly on what you want to do and how you want to do it. Essentially, these all allow you to make separate plots at different regions of the device. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in
2007 Jun 08
13
Errror on update after Model.rebuild_index
Hi I use Ferret 0.11.4 and the latest stabel version of the acts_as_ferret plugin. To the issue. if I do Model.rebuild_index and after that try to update one of my objects of that Model I get: File Not Found Error occured at <except.c>:117 in xpop_context Error occured in fs_store.c:329 - fs_open_input tried to open