similar to: Problems with scan() in a tab-sep .txt file with cells that have '///' (three frontslashes)

Displaying 20 results from an estimated 5000 matches similar to: "Problems with scan() in a tab-sep .txt file with cells that have '///' (three frontslashes)"

2007 Oct 15
2
Linear regression and slope from 1
Dear R-Users, I am new to R, so please excuse the ignorance. I have data: x (2.14, 2.41, 1.09, 0.17, 8.18) y (3.81, 5.13, 0.63, 0.75, 6.35) I would like to use simple linear regression and test 2 things: 1) slope of line of best fit is statistically different from 1 2) y-intercept is statically different from 0 Could anyone provide me with the R terminology to do this? Thanks so much, Dan
2007 Oct 31
2
R WinEdt on Windows vista
Hi! I was trying to install the RWinEdt library on a Windows Vista machine which had R 2.6.0, WinEdt 5.4 and the RWinEdt1.7.8.zip file in the library folder under the ...\R\2.6.0 directory. I am able to install fine form the local zip but I can't launch winedt from within R for some reason. > utils:::menuInstallLocal() package 'RWinEdt' successfully unpacked and MD5 sums checked
2005 Oct 11
4
Any way to add to data frame saved as .rData file?
Hi all, I've got a script that generates a few moderate-size data frames, and then puts them together into one big data frame at the end in order to write that data frame to disk, so that it may be re-opened later on... I'm trying to trim down memory requirements in this script, so I was wondering if there was any way to append to a data frame already saved on disk (just like
2011 Jun 14
0
Analyzing three-way contingency tables with many zero cells
Hi all, I am trying to analyze the following data. The first three columns are categorical variables (colors of three traits for a peripatus species) and the last column the count of individuals in each three-way classification. I wish to test if the three traits vary independently or if they are correlated across individuals, i.e. - this is a basic three way contingency table question.
2005 Apr 04
3
scan html: sep = "<td>"
Hi I try to import html text and I need to split the fields at each <td> or </td> entry How can I succeed? sep = '<td>' doens't yield the right result thanks for hints
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.
2005 Nov 17
1
Scan data from a .txt file
Hi all, Am trying to read data from a .txt file in such a way that i can access the column names too. For example, the data in the table.txt file is as below: Name Weight Height Gender Anne 150 65 F Rob 160 68 M George 180 65 M Greg 205 69 M i used the following commands: data<-scan("table.txt",list("",0,0,0),sep="") a<-data[[1]] b<-data[[2]]
2008 Jan 24
3
store variable as tab-del. txt-file
Hallo, how can I store a variable as a tab-delimited txt-file? I crated a variable with the following commands: > fit12<-lmFit(qrg[,1:2]) > t12<-toptable(fit12,adjust="fdr",number=25,genelist=qrg$genes[,1]) > t12 ID logFC t P.Value adj.P.Val B 522 PLAU_OP -6.836144 -8.420414 5.589416e-05 0.01212520 2.054965 1555 CD44_WIZ -6.569622
2005 Nov 17
2
[Rd] Scan data from a .txt file
[Re-directing to R-help, as this is more appropriate there.] I tried copying the snippet of data into the windows clipboard and tried it: > dat <- read.table("clipboard", header=T) > dat Name Weight Height Gender 1 Anne 150 65 F 2 Rob 160 68 M 3 George 180 65 M 4 Greg 205 69 M > str(dat) `data.frame': 4 obs.
2008 May 21
2
Search a string and modify it in a .txt file
Hi there, I use R and I would like to be able to modify a file .txt "init_file" like this one : # ---------------------------------------------------------------------------- # # Parameters A # ---------------------------------------------------------------------------- # # Parameter 1 PA1 = 15 # Parameter 2 PA2 = 3 # Parameter 3 PA3 = 2 #
2009 Dec 03
1
count number of empty cells in a table/matrix/data.frame
Hi everyone! This is a ridiculously simple problem, I just can't seem to find the solution! All I need is something equivalent to sum(is.na(x)) but instead of counting missing values, to count empty cells (with a value of 0). A naive attempt with is.empty didn't work :) Thanks! Maja Oh, and if the proposed solution would be to make all the empty cells into missing cells, that is
2011 Sep 21
1
identifying cells in data frames with the same value
Hi, I'm trying to find out if there is a command that tells me which cells in my data frame have the same value. I am looking at the results from an online survey, organized into a data frame with the following columns: SubjectNumber, WorkerID, Age. I know the one person must have taken the survey more than once, because there is one less level in the WorkerID column than there are rows in
2012 Aug 08
1
Coloring specific cells
Hi , I have a data frame XYZ. i want to color the cells where ever we find "G" it should be green,"Y" yellow,"R" red....etc and i want to send it from R to ppt.can any one help me on this. My data frame looks as below. XYZ: G Y R T G Y R T AA 0 0 0 0 AA 1 1 1 1 BB 0 0 0 0
2013 Apr 16
1
converting blank cells to NAs
You can use na.strings="" in read.table() or read.csv() library(stringr) vec1<-unlist(str_split(readLines(textConnection("3,7,11,,12,14,15,,17,18,19")),",")) ?vec1[vec1==""]<- NA ?vec1 # [1] "3"? "7"? "11" NA?? "12" "14" "15" NA?? "17" "18" "19" #or
2004 Mar 02
2
Import range of cells from Excel
Dear all, I would like to import a range of cells (e.g. F10:K234) from an Excel worksheet to R. I have looked for documentation on RODBC and RDCOMClient but I was not able to find enough information to solve my problem and all the examples I have seen were dealing with an entire worksheet, not a range of cells. Thanks, Jean-Noel Jean-Noel Candau INRA - Unit? de Recherches Foresti?res
2007 Nov 29
0
empty cells in ftable
hello when I enter: ftable(xtabs(cnt~jeo+slp+pcurv+asp+hey),data=dt) it gives a frequncy table. But some cells are empty. like this: 19 2 72 0 3 68 0 4 99 0 5 110 0 6 97 0 7 74 0 8 46 0
2020 Jul 01
2
no/empty NUMA cells on domain XML
Hi , I'm looking for a possibility to simulate a VM (to be used as a host) reporting no or empty NUMA <cells> in 'virsh capabilities'. 'virsh capabilities' usually reports single NUMA in the VMs, like <numa> <cell id='0' cpus='0-63' memory='16777216' unit='KiB'/> </numa> I appreciate if someone could advise Thank you
2008 Jun 24
2
How to solve empty cells in the contingency table?
Hi,Dear all R experts, I am trying to do the 2-way contingency table analysis by fitting the loglinear models. However, I found my table has several empty cells which are theoretically missing values.I have no idea of how to solve them coz we cannot compute the simulated p-value with zero marginals.Does someone have some suggestions? Please help me out, thanks a lot! Cheers, Yan
2006 Apr 11
1
type II and III Sum square whit empty cells
Dear all I need to run an anova from a factorial model y_{ijk}=\alpha_i+\beta_j+(\alpha\beta)_{ij}+e_{ijk} and calculate type II and III sums of square, but I have an empty cells, so anova function from package car fail. (I believe) y<-c(7,13,6,10,8,11,8,3,7,5,65) a<-as.factor(c(1,1,2,2,3,3,3,1,1,1,2)) b<-as.factor( c(rep(1,7),rep(2,4)) ) table(b,a) # cell (2,3) is empty
2005 Jun 06
1
Interleave cells with IP over ATM?
Anyone know if it''s possible to interleave two IP packets when using PPPoA and VC based lines? Can it be done with any PPPoE implementations? The goal is to reduce the delay when you have a high priority packet waiting, but a lower priority (large) packet already started going out ahead of this packet. I don''t want the overhead of much smaller MTU, which is the other way