alf Of minikg
Sent: Wednesday, August 19, 2015 9:29 AM
To: r-help@r-project.org
Subject: [R] data format
Hi,
I have a dataset consisting of landmarks of each sample's coordinates as
given below.
landmarkX Y X Y X Y
P1 534 7
This is the kind of problem the package tidyR has been designed for.
> On 19 Aug 2015, at 16:29, minikg wrote:
>
> Hi,
>
> I have a dataset consisting of landmarks of each sample's coordinates as
> given below.
>
> landmark X Y X Y X Y
> P1 5
Hi,
I have a dataset consisting of landmarks of each sample's coordinates as
given below.
landmarkX Y X Y X Y
P1 534 7 26 7 32
P2 46 45 48 42 44 48
P3 73 45 72 44
Thanks Frede,it helped alot.
eliza
From: fr...@vestas.com
To: eliza_bo...@hotmail.com; r-help@r-project.org
Date: Sat, 14 Jun 2014 06:09:08 +0200
Subject: RE: [R] data format setting
Hi Eliza
To me it seems like that you're not thinking before you messing about with the
data befo
01:00)
Til: r-help@r-project.org
Emne: Re: [R] data format setting
Thanks dennis,
It worked but I had to do some simple modifications to get to the ultimate
format.
Now I have a list in the following format
$A
2004200520062007200820092010
..
...
...
..
...
$AY
1967
thout getting the format
>deteriorated?
>
>
>In any way, thank-you very much indeed.
>
>Eliza
>
>> Date: Fri, 13 Jun 2014 11:11:37 -0700
>> Subject: Re: [R] data format setting
>> From: djmu...@gmail.com
>> To: eliza_bo...@hotmail.com
>>
>> H
the format deteriorated?
In any way, thank-you very much indeed.
Eliza
> Date: Fri, 13 Jun 2014 11:11:37 -0700
> Subject: Re: [R] data format setting
> From: djmu...@gmail.com
> To: eliza_bo...@hotmail.com
>
> Hi:
>
> Maybe something like this:
>
> library(resh
?sort,
?unique, and
subset come to mind.
Clint BowmanINTERNET: cl...@ecy.wa.gov
Air Quality Modeler INTERNET: cl...@math.utah.edu
Department of Ecology VOICE: (360) 407-6815
PO Box 47600FAX:(360) 407-75
Dear R family,
I hope you all be doing great. I have a dataset of following format. The data
file is of the following format.
st year month day discharge
1 A 2004 1 1 6.752828
2 A 2004 1 2 7.602053
3 A 2004 1 3 5.583619
4 A 2004 1 4 5.019562
Hi elisa,
Try this:
mat1<-matrix(signif(c(1.200407,1.861941,1.560613,2.129241,2.047772,1.784105,1.777159,1.988596,2.163199,2.446993,3.593623,5.706672),digits=3),ncol=1)
list1<- list(mat1,mat1,mat1)
list2<-lapply(list1,function(x)
data.frame(date1=format(seq.Date(as.Date("1911.01.01",format="%Y
Hi,
Try this:
el<- read.csv("el.csv",header=TRUE,sep="\t",stringsAsFactors=FALSE)
elsplit<- split(el,el$st)
datetrial<-data.frame(date1=seq.Date(as.Date("1930.1.1",format="%Y.%m.%d"),as.Date("2010.12.31",format="%Y.%m.%d"),by="day"))
elsplit1<- lapply(elsplit,function(x)
data.frame(date1=as.Dat
Hello,
I want to do an unconstrained ordination to look at my plant community data
but don't know how to account for the fact I have multiple visits per site.
Do I need to look at each month separately?
My data set is of 30 field sites that I visited 5 times in the year and the
abundance of each
> x <- readLines(textConnection("T
+ TTTAG
+ TTAAC
+ GGATT
+ ACGTA"))
> closeAllConnections()
> paste(x, collapse = '')
[1] "AGTTAACGGATTACGTA"
>
On Thu, Jul 7, 2011 at 10:37 AM, albert coster
wrote:
> Dear all,
>
> I have a input file like following :
>
> T
> TTTAG
> TTAAC
> GGA
On Thu, Jul 7, 2011 at 4:37 PM, albert coster wrote:
> Dear all,
>
> I have a input file like following :
>
> T
> TTTAG
> TTAAC
> GGATT
> ACGTA
>
> How can I make a single vector with this like
> following: AGTTAACGGATTACGTA
>
?paste, specifically the collapse argument
Rainer
>
> B
Dear all,
I have a input file like following :
T
TTTAG
TTAAC
GGATT
ACGTA
How can I make a single vector with this like
following: AGTTAACGGATTACGTA
Best regards
Albert
[[alternative HTML version deleted]]
__
R-help@r-project.org
On Jul 8, 2010, at 4:41 PM, steve_fried...@nps.gov wrote:
hello,
I am trying to develop a triangle plot but am having difficultly
assigning
the row.names to the 3 columns in the data.frame
Here is what I've done,
attach(SoilVegHydro)
dim(SoilVegHydro)
129239
# now take 3 variable
hello,
I am trying to develop a triangle plot but am having difficultly assigning
the row.names to the 3 columns in the data.frame
Here is what I've done,
attach(SoilVegHydro)
dim(SoilVegHydro)
129239
# now take 3 variables from main data.frame for plotting
dat <- cbind.data.frame(TP,
Noah Silverman wrote:
Hi,
I have a process using svm from the e1071 library.
It's called a *package* which is probably installed in a *library* of
packages.
it works.
I want to try using the KSVM library instead. The same data used wiht
e1071 gives me an error with KSVM.
I guess y
Hi,
I have a process using svm from the e1071 library. it works.
I want to try using the KSVM library instead. The same data used wiht
e1071 gives me an error with KSVM.
My data is a data.frame.
sample code:
svm_formula <- formula(y ~ a + B + C)
svm_model <- ksvm(formula, data=train_data
Hello all,
I have a *.csv file that looks like this (actual file is orders of magnitude
larger):
site taxa no.ind meadow LMA 2 meadow LCY 1 meadow MSA 2 forest LMA 1
forest LCY 1 forest MSA 1 forest MSX 1
I am interested in, but have failed to create, code that efficiently
converts it to a si
Use read.zoo and aggregate.zoo from zoo and
months, hours and as.chron from chron.
Note that we must read in col 1 as character to ensure leading
zeros don't get dropped. There are two mph columns and it is
assumed you want both:
Lines <- "LST inch mphDeg DegF DegF%volts D
Does this do it for you:
> # quick and dirty -- remove the 'mm' from the data and then aggregate
> x$hours <- (x$LST %/% 100) * 100
> aggregate(x$mph, list(x$hours), mean)
Group.1x
1 50601 13.82500
2 506010100 17.55000
3 506010200 23.04167
4 506010300 22.0
>
>
You can also 'fi
Dear all-
I have a dataset (see a sample below - but the whole dataset is June
2005 - June 2008). The "LST" format is "YYMMDDHHmm" and I would like to
get the hourly average of the "mph" for the summer months (spanning all
years). I have been trying to use "aggregate" but am not having much
Hello,
maybe it is better if you copy an extract of your dataset file in the
message because the attached file did'nt seem to get through.
Margherita
2008/9/14 Ndoh Innocent (Holy) <[EMAIL PROTECTED]>
> Greetings dear friends.
> Please, I really find problems having the program read my datasets
Greetings dear friends.
Please, I really find problems having the program read my datasets (here
attached).
Have converted datasets to csv, imported but always not reaching the target.
Would be very happy if some one out can help me on time.
Thanks
Ndoh Mbue Innocent
International corporation of
There are many ways. A simple one is to use split() to divide your
'Value' column using your 'Label' column as index. For example,
# Create dataset
mydata=data.frame(Label=c('Good','Bad','Good','Good','Good','Bad','Bad'),
Value=c(10,12,15,18,12,15,10))
# Split the data
mydata=split(mydata$Valu
Here is how to read it in. Then you can run your analysis:
> x <- read.csv(textConnection("Label,Value
+ Good,10
+ Bad,12
+ Good,15
+ Good,18
+ Good,12
+ Bad,15
+ Bad,10"))
> x
Label Value
1 Good10
2 Bad12
3 Good15
4 Good18
5 Good12
6 Bad15
7 Bad10
On 10/
Hi,
How can I analyze the data collected in database formatting (with labels)
rather than splitted by individual columns (almost in excel)?
For example (comma separated data);
Label,Value
Good,10
Bad,12
Good,15
Good,18
Good,12
Bad,15
Bad,10
etc...
ks.test or chisq.test can be done.
Splitting th
Hello,
First of all, thanks everyone that reply to my questions and I sorry to
spend so many time to reply.
I'm find a way to treat this problem using the zoo package:
bbrass = scan("C:/Program Files/R/data
PTIN/bbrass_client_2471_pool_72644_percent_in_use_500_NA.dat")
regts.start = ISOdatetime(
29 matches
Mail list logo