Displaying 20 results from an estimated 33 matches for "delim2".
Did you mean:
delim
2005 May 31
1
read.delim2 regarding "#"
Hello R experts:
When I tried to read my data into R, it does not take
# sign
A subset of Exp.txt is:
Experiment name assay id Varname
(A1)DBA TPA 6h/DBA Acetone rep1(A1) #3 4090 A90C1
(A2)DBA TPA 6h/DBA Acetone rep2(A2) #3 4091 A91C1
The command is:
Exp <- read.delim2("Exp.txt",check.names=F,as.is=T)
It is excuted but gave me all the NAs. Can you all
drop me a hint?
Thanks in advance.
Kevin
2003 May 25
0
surprising behaviour of "bgroup": sets all in greek letters (PR#3099)
...========================
(diff'ed to R-1.7.0 patched (2003-05-25))
> diff -u ./plotmath.old ./r-patched/src/main/plotmath.c
--- ./plotmath.old 2003-05-25 17:47:23.000000000 +0200
+++ ./r-patched/src/main/plotmath.c 2003-05-25 17:49:38.000000000 +0200
@@ -2075,10 +2075,12 @@
delim2 = DelimCode(expr, CADDDR(expr));
bbox = RenderElement(CADDR(expr), 0);
dist = max(bboxHeight(bbox) - axisHeight, bboxDepth(bbox) +
axisHeight);
- bbox = RenderDelim(delim1, dist + extra, draw);
+ if (delim1 != '.')
+ bbox = RenderDelim(delim1, dist + extra, draw);...
2013 Jul 20
1
Error read.csv
Siguiendo la sugerencia de Velez Jorge use read.delim2, lee y crea el
objeto pero al intentar visualizarlo me da el error:
> form<-read.delim2("ASSEUsr1.csv", header=T, sep=";")
> form
Error: C stack usage is too close to the limit
Olvideo decir que corro R con Rstudio en Ubuntu 13.04
Gracias
El 19 de julio de 2013 15:...
2011 Sep 09
2
NMDS plot and Adonis (PerMANOVA) of community composition with presence absence and relative intensity
...he environment, I can produce a plot
but don't understand how to interpret it and I get an error message. Then I
want to make a PerMANOVA analysis comparing the different treatments with
each other.
I tried to look at similar problems but I get error messages.
Any ideas?
#NMDS
step1<-read.delim2("day20.txt", row.names=1)
library(clusterSim)
step2<-data.Normalization(step1,type="n10")
step3<-asin(sqrt(step2))*57.3
step4<-t(step3)
library(vegan)
step5<-data.matrix(vegdist(step4,method="bray"))
step6<-metaMDS(step5, autotransform=FALSE)
plot(step5)...
2004 Nov 10
1
Loading some function at R startup
Dear R-users,
I've built these functions usefell for me to
import/export data from/to Excel:
importa.da.excel<-function(){read.delim2("clipboard",
dec=",")
## questa funzione consente di importare dati da Excel
in R
## selezionare in Excel le celle che contengono i
dati,
## compresi in nomi delle colonne
## Autore: Vito Ricci email:vito_ricci at yahoo.com
## Data di creazione: 09/11/04
}
esporta.in.excel<...
2008 Mar 22
2
intraday OHLC plot
...le eurusd2.csv):
"Date (GMT)" "Open" "High" "Low" "Last"
17-03-2008 00:00:00 1,5764 1,5766 1,5747 1,5750
17-03-2008 00:05:00 1,5749 1,5750 1,5741 1,5744
17-03-2008 00:10:00 1,5745 1,5762 1,5741 1,5749
> library("tseries")
> raw=read.delim2("eurusd2.csv")
> date.d=strptime(raw$Date..GMT,"%d-%m-%Y %H:%M:%S")
> x=ts(data=c(raw$Open,raw$High,raw$Low,raw$Last),c="mts")
> plotOHLC(x)
Fehler in if ((!is.mts(x)) || (colnames(x)[1] != "Open") ||
(colnames(x)[2] != :
Fehlender Wert, wo...
2006 Jan 20
4
read.table with ":" in column names (PR#8511)
...ames(gomat)[1]
[1] "GO:0000002"
Which means that ":" is transformed into a "." !! This seems like Excel when it
is trying to guess what I am really ment (and turning 1/1/1 into 1-1-2001).
Furthermore, I found the following quite strange as well:
> gomat2<-read.delim2("test.txt",header=FALSE)
> gomat2[1,1:2]
V1 V2
1 GO:0000051 GO:0000280
> as.character(gomat2[1,1:2])
[1] "8" "2"
> as.character(gomat2[1,1])
[1] "GO:0000051"
I have found a way to work around it, but I am wandering what's happ...
2010 Apr 01
3
reading excel into R
Dear all,
I am new R user and I am sure that this question has been asked quite often
and I have also googled it and read about it! I understood that in order to
read excel sheet into R you need to open it and saved it as csv or text, is
this true? or you can use read.delim2 and read.csv2 to do this without the
following error
> dat <- read.csv2(file="C:\\Dokumente und
Einstellungen\\Cheba\\Desktop\\Rtemp\\ Results2010.xls",header = TRUE)
Warnmeldung:
In read.table(file = file, header = header, sep = sep, quote = quote, :
unvollständige letzte Zeile...
2011 Jul 29
2
converting factor to numeric gives "NAs introduced by coercion"
Hi,
I have a dataframe that I imported from a .txt file by:
skogTemp <- read.delim2("Skogaryd_shoot_data.txt", header=TRUE, fill=TRUE)
and the data are factors, how can avoid factors from the beginning? Although
the file contains both characters and numbers.
I tried to convert some of the columns from factor to numeric and as I
understood it you can not use only as.num...
2023 Feb 28
1
Generic Function read?
Dear R-Users,
I noticed that *read* is not a generic function. Although it could
benefit from the functionality available for generic functions:
read = function(file, ...) UseMethod("read")
methods(read)
?# [1] read.csv???? read.csv2??? read.dcf???? read.delim read.delim2?
read.DIF???? read.fortran
?# [8] read.ftable? read.fwf???? read.socket? read.table
The users would still need to call the full function name. But it seems
useful to be able to find rapidly what formats can be read; including
with other packages (e.g. for Excel, SAS, ... - although most packag...
2013 Jul 19
4
Error read.csv
Estimados
Tengo un archivo CSV con 1.200.000 registros separados por ";" y cuando
quiero abrirlo me da el siguiente error:
form<-read.csv("Usr1.csv" , sep=';' , na.strings = "NA", header=T)
Mensajes de aviso perdidos
In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
entrada inválida encontrada en la conexión de entrada
2009 Feb 25
1
Realtime database function help
Hello Everyone!
According to voip-info.org the correcy syntax for the realtime function is:
REALTIME(family|fieldmatch[|value[|delim1[|delim2]]]) on read
REALTIME(family|fieldmatch|value|field) on write
It seems from the syntax that it is only possible to retrieve a full
row according to the value of only of column. This translates in SQL
language as Select * from family where fieldmath = value.
Is there any way to have more control o...
2010 Oct 27
3
How do I read multiple rows of different lengths?
Hi,
I have a data file with hundreds of rows, with every first, second, third,
and fourth line representing a set of numbers for row names x, y, fit, and
residuals, respectively. However, any given group of these lines might be
from 10 to 20000 values long.
When I try
fits=read.delim2("test")
Error in read.table(file = file, header = header, sep = sep, quote = quote,
:
more columns than column names
When I try
fits=readLines("test")
it reads the data, but doesn't separate it into values:
> head(fits)
[1] "1\t30049\t30204\tsegment_4\t35\t.&quo...
2010 Oct 26
3
stripping #s in a text file prior to reading into table or dataframe
I'm importing a lot of text tables of data (from Latent Gold) that includes
hashes in some of the column names ("Cluster#1", "Cluster#2", etc.). Is
there an easy way to strip the offending hashes out before pushing the text
into a table or data frame? I thought I'd use gsub, e.g., but can't figure
out how to read in a text file without reading it into a table or
2002 Apr 26
7
spreadsheet data import
Hi colleages!
I want to import data from ms-excel and other spreadsheet formats (lotus, etc). Does exist any way to do it within
R? The main problem is that many spreadsheet data use comma as decimal separator and not the point as needed in R
(and many software for Linux), so importing data first as a tab separated values does not solve this problem.
Thanks,
Tom?s Revilla
2010 Dec 10
1
importing date vector with read.table
Hi,
I understand this should be an easy task but I am still struggling a bit to
read a .txt file with a date vector. My code is as below:
data<-read.table(file.choose(),header=TRUE,sep="\t",dec=",",colClasses=c("Date","numeric","numeric","numeric"))
But I am getting an error:
Error in charToDate(x) :
character string is not in a
2011 Jun 28
0
renaming multiple columns + interpolating temperature series
...ast managed to read in multiple files:
filenames <- list.files(path=getwd())
numfiles <- length(filenames)
for (all_temp in c(1:numfiles)) {
filenames[all_temp] <- paste(filenames[all_temp],sep="")
assign(gsub("[.]ASC$","temp",filenames[all_temp]),read.delim2(filenames[all_temp],
fileEncoding="ISO-8859-15", skip = 4))
}
Now I want to change the column names on the fly within the above loop. How?
I only found out for one file:
colnames(w01_10temp) <- c("date", "time", "temp", "na")
I want then t...
2008 Jun 02
2
more columns that column names
Hello to everyone,
I have gotten my file to print to screen but when I use read.table I am getting an error message that
says there are" more columns than column names."This is a file that was not created by me so I am
not sure how to investigate and solve this problem.I looked in the help file and it suggested an auxilliary function called count.fieldsThe code that was used was:
2012 Jan 11
0
Error in charToDate(x)
...es. I've read from
a csv file, the following way:
csv-file like:
Date,Open,High,Low,Close,Volume
2011-08-11 03:00:00,1.41758,1.42205,1.41625,1.42174,8974
...
2011-08-12 04:00:00,1.42175,1.42413,1.42067,1.42172,7229
...
2011-12-30 05:00:00,1.42173,1.42341,1.42062,1.42171,6703
...
raw<- read.delim2("~/R/Data/EURUSD60.csv",header=TRUE,sep=",")
stripday<-strptime(raw$DATE,format="%Y%m%d")
fxdata<-data.frame(stripday,raw)
write.table(fxdata,"~/R/Data/EURUSD60.csv",quote=FALSE,sep=",",row.names=FALSE)
EURUSD<-as.xts(read.zoo("~/R...
2008 Aug 27
2
problems formating scientific collaboration data
Hello all and thanks in advance for any help or direction. I have
co-authorship data that looks like:
Paper Author Year
1 SmithKK JonesSD 2008
2 WallaceAR DarwinCA 1999
3 HawkingS 2003
I would like:
Paper Author Year
1 SmithKK 2008
1 JonesSD 2008
2