similar to: how to remove "." or replace it with NA?

Displaying 20 results from an estimated 50000 matches similar to: "how to remove "." or replace it with NA?"

2003 Oct 11
2
how to seperate R's input and output screen?
Dear all can anybady tell me how to seperate R's input and output screen?I mean just like SAS or some others, the commands does not mixed with results. thank you
2004 Nov 12
2
How to updating R to the newest version conveniently
Dear R users I have been using R for a while. However, I don't know what is the convenient way to update R to the newest version while keep all packages I previously downloaded and installed from CRAN, if updating all those packages the same will be even better. for the time being, I reinstall all those package evrytime after updating the version. Thank you. best regards yong
2004 Oct 30
2
How to plot PDF which is in the form of orthogonal polynomial
Dear all using the orthogonal polymial on a set of data, I get an approximate density which basically is in the form: exp(-polynomial), as you know, the parameters are the converged coeeficients. obviously, It is hard, if not impossible, to use the inverse CDF method to get a sample and then plot density. then how can I plot the approximated density in order to have a graphical comparision
2004 Mar 09
2
how to replace NaN in a vector
Hi, all a vector such as (1,2,4,-1,NaN,2,4,NaN) if try to replace all the NaN with a numerical value, what's the easiest way? thanks a lot best yong
2012 Nov 18
3
Replace <NA> with something else
I am reading some data into R from an Excel spreadsheet using read.csv. Some of the original data that comes into column 1 from the spreadsheet is text that says NA. The NA stands for north america. As it comes in, R converts the NA over to <NA>. What is the cleanest way to change the <NA> values to something else. In other words, get rid of the brackets ? Maybe convert <NA>
2004 Jan 25
3
how to keep functions while remove all other commands
Dear all: a quick question: I am used to apply rm(list=()) regularly to remove all old codes in preventing them creeping in current analysis.however, with that application, functions I wrote are also removed. please let me know how to keep the thing you want while remove those you don't. thank you best yong
2004 May 26
1
A data selection problem, suggestions highly appreciated
Hi, All I get following question: A data format like following: [Day time x y] Jan1 18:56:24 x1 y1 Jan1 18:56:25 x2 y2 Jan1 18:56:27 x3 y3 Jan1 18:56:28 x4 y4 Jan1 18:56:31 x5 y5 ..................... ..................... what I wanna do is to partion the time interval by unit of 5 seconds. and pick x,y corresponding to the last time within that interval. for the example above, suppose
2004 Feb 20
3
problem with abline for x.y
I'm trying to do a sunflowerplot of Galton's data, with both regression lines and data ellipses, and I must be doing something wrong, because the lines do not intersect at \bar{x}, \bar{y}. The problem is likely in the line for x.y, but I don't know how to specify that correctly. The data is read in grouped form( galton), and then ungrouped (galton2): galton <-
2019 Oct 24
1
[PATCH] virtio_ring: fix packed ring event may missing
On 2019/10/24 ??11:26, Liu, Yong wrote: > >> -----Original Message----- >> From: Jason Wang [mailto:jasowang at redhat.com] >> Sent: Tuesday, October 22, 2019 9:06 PM >> To: Liu, Yong <yong.liu at intel.com>; mst at redhat.com; Bie, Tiwei >> <tiwei.bie at intel.com> >> Cc: virtualization at lists.linux-foundation.org >> Subject: Re: [PATCH]
2010 Oct 06
1
what does this err mean and how to solve it? Error in file(file, ifelse(append, "a", "w"))
Dear List I am running a loop downloading ?web pages and save the html to a temporary file (use download.file() ) ?then read (using readLines) ?it in for processing; finally write useful info from each processed page to a unique file the problem is once the loop runs up to somewhere near ?5000, it will throw out an err like below and won't go further.
2003 Sep 25
3
ungrouping grouped data
I'm sure this is probably simple, but I can't find an answer... I have a data frame (Galton's data on heights of parents and children), in grouped form, parent child frequency 73.5 72.2 1 73.5 73.2 3 72.5 68.2 1 72.5 69.2 2 72.5 70.2 1 72.5 71.2 2 72.5 72.2 7 72.5 73.2 2 72.5 74.2 4 71.5 65.2 1 71.5 66.2 3 71.5 67.2 4 71.5 68.2 3 71.5 69.2 5 71.5 70.2 10 ... and need the ungrouped
2010 Mar 23
1
Conditional replacement of NA depending on value in the previous column
Dear R-helpers, I have a dataframe like this: ID X1 X2 X3 X4 X5 X6 49 1 1 1 0 NA NA 50 1 1 1 1 NA 1 I would like to convert a missing value (NA) that follows a 0 (zero) or another missing value (NA) into a 0 (zero). So, the above lines would be converted to: ID X1 X2 X3 X4 X5 X6 49 1 1 1 0 0 0 50 1 1 1 1 NA 1 I have been struggling with
2004 Feb 15
4
father and son heights
Faraway's book titled "Practical Regression and Anova using R", with full text available online at: http://cran.r-project.org/doc/contrib/Faraway-PRA.pdf refers to a data set, stat500, which compares midterm and final grades. It can be used to illustrate similar concepts. A google search for faraway.zip will locate the actual data. --- Date: Sun, 15 Feb 2004 10:37:08 -0800
2010 Aug 30
2
Read in a all-character file and specify field separator and records separator
Dear list I used to use python or awk do preliminary process and then feed into R. In some circumstances, the data transmission becomes quite a pain. I am wondering if there is a convenient way to read in R text file (not data, text file in common sense) and specify field separator and records separator, so the whole work can be reduced to one-stop shopping. or simply, is there one simple way to
2007 May 20
3
Why a multi column, tab delimited file has only one column after reading in with read.table specification sep="\t"
Dear all: I have a tab delimited file as following AGE WEIGHT PROTEIN ........ 6 20 3 ........ 8 39 4 ........ I tried to read it as following: data <- read.table(file,sep="\t",header=T); but there is only column for the data after reading in,: dim(data); [1] 200 1 the column name is "AGE...WEIGHT...........PROTEIN...." Any quick suggestion will be appreciated.
2009 Jan 29
3
bootstrapping in regression
Hi, Please apologize if my questions sounds somewhat 'stupid' to the trained and experienced statisticians of you. Also I am not sure if I used all terms correctly, if not then corrections are welcome. I have asked myself the following question regarding bootstrapping in regression: Say for whatever reason one does not want to take the p-values for regression coefficients from the
2012 Dec 15
3
How to speed up the for loop by releasing memeory
Dear list; How can I speed up the run of following code (illustrative) #======================================================================== con<-vector("numeric") for (i in 1:limit) { if(matched data for the ith item found) { if(i==1) {con<-RowOfMatchedData } else {con<-rbind(con,matchedData)} } }
2005 Apr 25
3
How to transform the date format as "20050425"
Dear R user, if the dates are in format as "20050425" i.e., Apr. 25 2004" can you suggest an easy way to transfom it to standard form as "2005-04-25" or "2004Apr25" or "2005/04/25" or any other format which is R recognizable? if there is no easy way to do that, can you let me know what is the function in R performing similiar function as the
2003 Oct 05
3
please help me on this problem
Dear all: I am totally new to R, actually, statistics software.I get two very simple, even stupid question: 1) where I should put the data file in order to use it , I tried to build a work dir in library( package:base) and save the text file (data) there, then, I use read.table(filename), not work; I tried the full path, still not work. I must have done something wrong. 2) is it possible to create
2011 Jan 26
2
a problem with is.na
Hello, I have observed the following odd behavior of "is.na( )" and hope someone can give me an explanation Example: X1=rep(1:2,5)[-1] X2=rep(1:5,rep(2,5))[-1] y= runif(9) y[3]=NA xtabs(y~x1+x2) Now xtabs(is.na(y)~x1+x2) says that cell 2,2 is NA x2 x1 1 2 1 0 0 2 0 1 3 0 0 4 0 0 5 0 0 Whereas xtabs(!is.na(y)~x1+x2) says that all but cell 1,1 and 2,2 are not NA x2