similar to: Convert numeric value to POSIXct

Displaying 20 results from an estimated 6000 matches similar to: "Convert numeric value to POSIXct"

2004 Jul 27
1
lattice.device in loop
Hi, I am having problems creating a pdf file of a lattice graph. Things work fine for a single image, but I am having trouble using the commands in a loop. To illustrate by example This works with both ps and pdf files. dat = list(x= 1:10, y = 1:10) trellis.device(postscript, file = "/d1/pocernic/test.ps") xyplot(y~x, data = dat) dev.off() This does not. It produces a very
2003 Dec 19
2
generic/method consistency
Hi, I realize the answer is very likely in the section Generic functions and methods (or Adding new generics), but I'm not clear what to do with the following. Running R CMD check, I get the following warnings for my generic functions. Does this mean I need the argument * checking generic/method consistency ... WARNING leps: function(x, ...) leps.default: function(x, pred, titl,
2004 Mar 04
2
lattice, different plotting symbols
Hi, I am trying to plot different variables from a data.frame using lattice's xyplot using code like that below. How do I specify a symbol and color for the variable 'prob' and different one's for 'll.prob'? Thanks, Matt xyplot( prob + ll.prob ~ time.eff |stat.id + time.out ,data = OUT, allow.multiple = TRUE, layout = c(6,3), as.table = TRUE ,
2004 Jul 28
2
lattice variable by page
Hi, Using lattice's xyplot, is it possible to specify a variable to group plots by page. For example, if I have xyplot(y~x|A*B*C) could I get a page created for each unique value in variable C ? I am hoping to avoid having pages with the same strip above each plot on a page. Thanks, M Matt Pocernich NCAR - Research Applications Program 303-497-8312
2002 Dec 09
2
netcdf
Hello, I have been having difficulties opening netcdf files using the netcdf library. I am able to successfully open the file and I can determine the names and size. However, when I try to read it I receive an error. Reading the documentation, I am wondering if this might be due to a difference between netcdf version 2 and more recent netcdf format? I've tried using different values for the
2004 Oct 04
0
verfication package announcement
The verification package has recently been posted to CRAN. This package was initially developed by people in the Verification Group at the National Center for Atmospheric Research to verfiy and study weather models and forecasts. It has been written in general terms to be applicable to other fields of study. Functions include receiver operating characteristic curves attribute diagrams
2004 Oct 04
0
verfication package announcement
The verification package has recently been posted to CRAN. This package was initially developed by people in the Verification Group at the National Center for Atmospheric Research to verfiy and study weather models and forecasts. It has been written in general terms to be applicable to other fields of study. Functions include receiver operating characteristic curves attribute diagrams
2005 Sep 22
2
Survey of ROC AUC / wilcoxon test functions
Hi, I was lately debugging parts of my 'colAUC' function in caTools package, and in a process looked into other packages for calculating Areas Under ROC Curves (AUC). To my surprise I found at least 6 other functions: * wilcox.test * AUC from ROC package, * performance from ROCR package, * auROC from limma package, * ROC from Epi package, * roc.area from verification
2003 Jun 06
1
layout problem
Hello, I have a question about using the layout command within a function. I've written function that uses layout to create a figure from 2 plots. This works fine to create a figure. When I use par(mfrow = c(2,2)) to create multiple plots, it seems that the layout command resets the mfrow parmeter. Is there a way for me to avoid this problem? For example practice<- function() {
2000 Mar 17
2
Windows Memory
I'm sure this question is answered in the help file, but likely I'm not reading it corrected. Running windows version 1.00.0, loading a table (35K rows by 10 columns) from Excel using the read.table command I receive the following message. Error: cons memory (350000 cells) exhausted See "help(Memory)" on how to increase the number of cons cells. >From reading the
2001 Feb 10
3
Scatterplot - symbols coded by factor
Hi - I would like to create a scatterplot with the symbols coded by a factor in each record. Is their a better way than what I have used below? I attempted to use the plot.factor, but cannot force it to make a scatterplot instead of boxplots. I have considerd making a function with a 'for' statement for each level of the factor. Is there a better way for when I am dealing with more
2002 Nov 11
3
Wind roses
Are there any R function or packages that generate wind roses? These are ``star''-like plots that summarize the frequency, direction and magnigude of windspeeds. Thanks, Matt -- Matt Pocernich University of Colorado - Denver Department of Mathematics -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2001 Nov 07
2
Filtering data
Hello, I am having difficulty filtering data. I am working with flow data collected at a stream gage. For each record, I have a date and flow value. I have filtered this data to only include days when flow values exceed a given threshold. Here is my problem. Within this subset of data, I often have several consecutive days above the threshold. From this group of days, I wish to select the
2009 Oct 24
2
ifelse
When I run this code from an R-script: ddd = 360 + round ( atan2(-u,-v) / d2r ) print(class(ddd)) print(ddd) ifelse ( ddd>360, ddd-360, ddd ) print(ddd) I get this output: [1] "numeric" [1] 461 213 238 249 251 [1] 461 213 238 249 251 Why does ifelse not change the 461 to 101? I recreated the vector ddd and ran the same ifelse code
2010 Nov 30
2
xyplot : superimposed 2 groups in different panels
Hello, I would like to plot the following xyplot : for each date of fff (1 date per panel), bbb=f(aaa) for the two groups (ddd=1 and ddd=2) superimposed. I can do it by group (see below) but not together. I looked at http://lmdvr.r-forge.r-project.org/figures/figures.html but I haven't found what I was looking for (to be honest, I haven't understood all the examples). Any help will be
2013 Oct 27
2
numeric data being interpreted as a factor -trouble with reading data into a dataframe in R
Hello. trying to do one of the simplest actions -read in data into R. I don't know why the FBfollowers column is being read as a factor and also if I use as.numeric on it, it looks really strange and actually complety alters the data. I am attaching the data set here called ddd.csv I used data=read.csv("ddd.csv",header=TRUE) fb=data$FBfollowers fb fb=as.numeric(fb) fb Thnxs in
2000 Feb 02
1
Placing a varialbe within a text statement.
I have a simple question. On a plot, I would like to place text containing a calculated value. What is the format? For example. I would like the following text to appear on a plot. The average temperature is 23.1 degrees. I'm guessing the command is text( x, y, "The average temperature is " %variable name% "degrees") Thanks, Matt Pocernich -------------- next part
2000 Nov 29
1
Step function
I am having problem using the step function for a linear regression model. I've created an initial model containing only the intercept. Then using the step function, I've selected three variables to be considered for the model. > x0.lm<- lm(MEDV~1, data = x) > > anova(x0.lm) Analysis of Variance Table Response: MEDV Df Sum Sq Mean Sq F value Pr(>F)
2000 Jan 26
1
data.frame[1,1]<- differs from data.frame[[1]][1]<- (PR#403)
I observed the following difference: > ddd <- data.frame(a=1:3, b=1:3) # assignment of 'X' silently ignored > ddd[1,1] <- 'X' > is.factor(ddd[[1]]) [1] FALSE > ddd a b 1 1 1 2 2 2 3 3 3 # assignment of 'X' not ignored > ddd[[1]][1] <- 'X' > is.factor(ddd[[1]]) [1] TRUE > ddd a b 1 X 1 2 2 2 3 3 3 Regards > version
2023 Jan 17
6
[Bug 3523] New: standard output file descriptor was set with: O_NONBLOCK, but restore with flag: 0
https://bugzilla.mindrot.org/show_bug.cgi?id=3523 Bug ID: 3523 Summary: standard output file descriptor was set with: O_NONBLOCK, but restore with flag: 0 Product: Portable OpenSSH Version: 9.1p1 Hardware: Other OS: Linux Status: NEW Severity: normal Priority: P5