search for: fd9ns01

Displaying 11 results from an estimated 11 matches for "fd9ns01".

Did you mean: dns01
2005 Jun 29
3
return NA
A<-c(1,2,NA,7,5) B<-c(3,4,1,4,1) C<-c(6,5,6,NA,9) D<-c(8,7,4,6,2) df1<-cbind(A,B,C,D) for(i in seq(1,ncol(df1)-1, by=2)) { ifelse(df1[,i]=="NA",df1[,i+1]=="NA",df1[,] ) } Tried several variations but none worked. I wish to find any NA's in column's 1 or 3 and change the numerical value to the right of the " NA"'s . In this case I
2005 May 24
2
Missing Data Line Type?
I have a general question. Is there a setting that can be used for a multiple line type? The situation is that I want a solid line between x and y points but if the y point is missing, I want a dashed line type to the next point. In other words, if point 1 to 2 exists, make that line solid, otherwise, make it dashed up to the next existing x/y point. Additionally, what plot type would you
2005 Jun 10
2
Default Format for Dates?
Is there anyway to preset date formats? I have a date from a cover.dbf that is shown as this: > cover$FINALREPOR [1] "2003-06-24" The numeric value in cover$FINALREPOR is 12227. I'd rather not create another vector to hold the properly formatted date. When I put this in a WordPerfect merge, I want the date to be June 24, 2003. I could take care of the problem in a
2005 May 31
1
Add Columns and Order for Rbind?
I am using rbind to add one list with one row to another master list. The problem is that not all columns exist in both lists. What methods would you recommend to reorder one list based on the column names of another? If both sets have the same order and columns, I can then use rbind. I can live with columns being added to the master list set it makes the task easier using something like
2005 May 13
3
List and Column Names in a Function?
In this simple function, how can I pass strings for index and column names to the function? I've posted this type of question before and received no response. Maybe this example will be easier to understand and troubleshoot. ds <- function(myds, vec) {myds[[vec]]*2} ds1 <- c(X=list(1:10), Y=list(11:20)) ds(get("ds1"),get("Y")) khobson at odot.org Kenneth Ray
2005 Jun 07
1
Function inside tapply
I'm new to R and not an experienced writer of programs, which may help explain my question. I wish to create a table or data frame which contains the quantiles of the columns in the data frame DF. I wish to produce a table T where T[1] shows me the quantiles of column DF[1] right up through the entirety of DF. Tried several approaches with limited success. This looked like the best
2005 Jun 17
1
Data comparison
Question : Is it possible to create a function, using a for ifelse function, inside sapply, to compare the values in one data frame to a set of upper and lower limits in another data frame, same number of columns., Take the values which meet the requirements "TRUE" and create a new data frame or table containing the filtered data? Can you give me a shove in the correct direction?
2005 Apr 29
2
Windows List of Folders?
For windows, how can I list only the folders in some folder? I was thinking that dir() and file.info() with isdir==TRUE being something that might work. These folders or directories are numerically named with no dot extension names or other characters. Typically, these are 3132, 3334, ... Here is what I tried. The last line is where I need more work. pData="C:/Myfiles/R/Data/" setwd
2005 Apr 29
0
Windows list of Folders
Hi Kenneth: I tried: list.files(path="c:\\pctexv4\\samples") and that worked just fine. Hope this helps! Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu From: khobson at fd9ns01.okladot.state.ok.us Subject: [R] Windows List of Folders? X-BeenThere: r-help at stat.math.ethz.ch For windows, how can I list only the folders in some folder? I was thinking that dir() and file.info() with isdir==TRUE being something that might work. These folders or directories are nume...
2005 Jun 23
1
Stop Warnings for Invalid Factor Level, NAs generated?
How can I stop the following warning from occuring? invalid factor level, NAs generated in: "[<-.factor"(`*tmp*`, iseq, value = structure(1, .Label = "12", class = "factor")) The Label messages are for "5", "8", "12" and "46". I want the NAs to be generated as needed. Is this causing R to slow down by generating the warning
2005 Apr 22
2
Hoaglin Outlier Method
I am a new user of R so please bear with me. I have reviewed some R books, FAQs and such but the volume of material is great. I am in the process of porting my current SAS and SVS Script code to Lotus Approach, R and WordPerfect. My question is, can you help me determine the best R method to implement the Hoaglin Outlier Method? It is used in the Appendix A and B of the fo llowing link.