In my environment I have a data frame called Samples_1.txt.
From this data frame I need to get variable V1. My code doesn't work. Thanks!
sprintf("Samples_%s.txt", 1)$V1
Note: I need to do it in this way because I have the code into a for loop.
In my environment I have a data frame called Samples_1.txt.
From this data frame I need to get variable V1. My code doesn't work.
Note: I need to do it in this way because I have the code into a for loop.
sprintf("Samples_%s.txt", 1)$V1
__
R-help@r-pr
@ Sarah
Thanks a lot, paste does the job perfectly!
On 09/07/2014 17:46, Sarah Goslee wrote:
How about:
plot(dd$Sepal.Length, dd$Petal.Length, main=paste("These are the
levels:", paste(levels(dd$Species), collapse=", ")))
Thanks for the actual reproducible example!
Sarah
On Wed, Jul 9, 20
(iris$Code %in% sel, "red", "black"),
pch=ifelse(iris$Code %in% sel, 17, 1))
Cheers
On 30/05/2014 17:38, PIKAL Petr wrote:
Hi
-Original Message-
From: Beatriz [mailto:aguitatie...@hotmail.com]
Sent: Friday, May 30, 2014 10:08 AM
To: PIKAL Petr; R Help
Subject: Re:
ct.org] On Behalf Of Beatriz
Sent: Friday, May 30, 2014 9:37 AM
To: R Help
Subject: [R] Scatter plot selection points
Hi all,
I'd like to do a scatterplot where some of the values, out of a subset,
are plotted differently in color and shape.
I've worked around the following code but I don
Hi all,
I'd like to do a scatterplot where some of the values, out of a subset,
are plotted differently in color and shape.
I've worked around the following code but I don't manage to make it right.
Any help greatly appreciated!
# My data
dd <- iris
iris$Code <- 1:150
# A selection of my data
Dear R-users,
I'd be very greatful if you could help me with the following as after a
few tests I haven't still been able to get the right outcome.
I've got this data:
dd_1 <- data.frame(ID = c("1","2", "3", "4", "5"),
Class_a = c("a",NA, "a", NA, NA),
Class_b
ould be clarified.
Best wishes,
Bea
On 21/04/2014 15:17, Frede Aakmann Tøgersen wrote:
Hi Beatriz
Did you read the help for extract{raster} carefully?
Several things can be wrong.
1) First argument to extract is not a file name but a raster object.
2) In the loop you name an object extract as
Dear all,
I'm starting to work with loops and I'm stucked on something.
I've been searching and trying different possibilities but I don't get
to the solution.
I'd be very grateful if you could share any ideas that you think may help.
library("raster")
# All my variables are in the workspace
Hi Jorge,
Thanks so much! Exactly what I wanted. Finally I wrote:
for(i in 1976:1981){
PE.files_01_7681 <- paste("val_mapped_petpe_", 1976:i, "01.txt", sep="")
}
Cheers,
Bea
On 21/04/2014 10:46, Jorge I Velez wrote:
> Hi Beatriz,
>
> Try
>
&g
Dear all,
I'm trying to create a loop to select a series of files into my computer
but I haven't been successful until now. I've looked into different
possibilities but none has worked. I'd appretiate if you could help me
by providing me with some ideas.
Basically what I'd like to do is to
I've recently started using R for spatial data. I'd be really grateful
if you could could help me with this. Thanks!
Sorry I don't provide a reproducible example. Please ask me if you have
any questions about the data.
I've extracted data from a multidimensional netCDF file. This file had
lo
Hi all,
I'm trying to compute a mean on my data but I'm struggling with 2
things: 1. getting the right layout and 2. including the missing values
in the outcome.
#Input data:
Stock <- c("A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B")
Soil <- c("Blank", "Blank", "Control", "Control
ea
-Original Message-
From: Jose Iparraguirre
Sent: Wednesday, April 10, 2013 10:19 AM
To: Beatriz González Domínguez ; r-help-ow...@r-project.org ; R Help 1 ; R
Help 2
Subject: RE: [R] Boxplot Labels OK
Beatriz,
In this case, use the car package and run the following:
bp <- Box
Dear all,
I have just sent an enquiry but probably I hadnât expressed myself properly.
Could anyone help me with the following?
When I run the code on my data I get a boxplot with outliers identified by
numbers 200 & 201.
However, what I would like is to label these outliers with their corre
#Dear all,
#Could anyone help me with the following?
#DATA
num <- as.numeric(seq(100:125))
ave <- c(0.5, 1, 1.6, 2, 2, 2.3, 2.5, 2.4, 3, 3.2, 3.3, 4, 4.8, 3.5, 2.7, 3.1,
2.8, 3.5, 4.1, 2.0, 2.5, 2.1, 3.4, 2.5, 2.6, 7)
DATA <- data.frame(cbind(num, ave))
rm(num, ave)
#BOXPLOT
x11()
bp <- boxplot(
#Dear all,
#Could anyone help me with the following?
#DATA
num <- as.numeric(seq(100:125))
ave <- c(0.5, 1, 1.6, 2, 2, 2.3, 2.5, 2.4, 3, 3.2, 3.3, 4, 4.8, 3.5, 2.7, 3.1,
2.8, 3.5, 4.1, 2.0, 2.5, 2.1, 3.4, 2.5, 2.6, 7)
DATA <- data.frame(cbind(num, ave))
rm(num, ave)
#BOXPLOT
x11()
bp <- boxplot(
Dear all,
Could anyone help me with the following?
DATA <- data.frame(rbind(c("Red1", 1, 1, 1), c("Blue1", 1, 1, 1), c("Red2", 1,
1, 1), c("Red3", 1, 1, 1)))
colnames(DATA) <- c("A", "B","C", "D")
#Option 1
DATA <- DATA[-2, ] #Same result I would like to achieve with Option 2
#Option 2 - I wou
Dear all,
Iâm finding difficulties to normalize this data. Could you provide some input?
DATA:
c(0.000103113, 0.000102948, 0.000104001, 0.000103794, 0.000104628,
9.2765e-05, 9.4296e-05, 9.5025e-05, 9.4978e-05, 9.8821e-05, 9.7586e-05,
9.6285e-05, 0.00010158, 0.000100919, 0.000103535, 0.00010332
From: aguitatie...@hotmail.com
Sent: Friday, April 05, 2013 11:47 PM
To: r-help@r-project.org ; R Help
Subject: Reversing data transformation
Hi everybody,
I would be very grateful if you could give me your thoughts on the following
issue.
I need to perform Box-Cox (bcPowerÂÂ) transform
Hi everybody,
I would be very grateful if you could give me your thoughts on the following
issue.
I need to perform Box-Cox (bcPowerÂÂ) transformation on my data. To do this,
I calculated lambda using the function 'ÂÂpowerTransform'ÂÂ.
powerTransform(data)
However, I got an error mes
Hello,
I would like to perform a Box-Cox (âbcPowerâ) transformation on my data.
For this, I am determining lambda using the âpowerTransformâ function.
However, with one of my variables I get the following
Warning Message:
In estimateTransform(x, y, NULL, ...) :
Convergence failure: r
Hello,
I would like to perform a Box-Cox (âbcPowerâ) transformation on my data.
For this, I am determining lambda using the âpowerTransformâ function.
However, with one of my variables I get the following Warning Message:
In estimateTransform(x, y, NULL, ...) :
Convergence failure: ret
Hello,
I have done a scatterplot and now would like to add its regression line but it
does not show.
Below, the code I have used.
lm3 <- lm(data$S_pH_KCl2.5_BCx~data$B_OleicoPF_BCx_per)
plot(data$S_pH_KCl2.5_BCx, data$B_OleicoPF_BCx_per)
abline(lm3)
I have been able to do the complete operatio
Hi
Is there any function that I can use to calculate Cook's distance for an lme?
Beatriz de Francisco Mora
PhD Student
The Scottish Association for Marine Science
Scottish Marine Institute
Oban
PA37 1QA
Tel: 06131 559000 (switchboard)
Fax: 01631559001
E. beatriz.defranci...@sams.
, y,...){
panel.errbars(x,y,make.grid="none",ewidth=0.2,type="p",...)
panel.loess(x[resp.week.mean.rate$Treat=="8-380"],y[resp.week.mean.rate$Treat=="8-380"],span
= 5, degree = 1,lwd=2,...)
panel.loess(x[resp.week.mean.rate
, y,...){
panel.errbars(x,y,make.grid="none",ewidth=0.2,type="p",...)
panel.loess(x[resp.week.mean.rate$Treat=="8-380"],y[resp.week.mean.rate$Treat=="8-380"],span
= 5, degree = 1,lwd=2,...)
panel.loess(x[resp.week.mean.rate
ctually do?
this is just for me to understand and later maybe make my own functions. I am
assuming that g centers the error bars? but d?
Regards
Beatriz de Francisco Mora
PhD Student
The Scottish Association for Marine Science
Scottish Marine Institute
Oban
PA37 1QA
Tel: 06131 559000 (swit
704), lower = c(-52.86120694, -40.87446411,
10.57421563, 8.822042178, -26.03144161, -66.60447035, -29.30563327,
-110.3973761), fTreat = structure(c(1L, 2L, 3L, 4L, 1L, 2L,
3L, 4L), .Label = c("8-380", "8-750", "12-380", "12-750"), cla
704), lower = c(-52.86120694, -40.87446411,
10.57421563, 8.822042178, -26.03144161, -66.60447035, -29.30563327,
-110.3973761), fTreat = structure(c(1L, 2L, 3L, 4L, 1L, 2L,
3L, 4L), .Label = c("8-380", "8-750", "12-380", "12-750"), cla
Hello,
Have someone performed a bootstrap in a multiple-mediator model? I am trying to
compute a bootstrap in a multiple and multilevel mediation. Up top now, I have
developed bootstraps in random coeffient models, but I am very lost concerning
the mediation. Could someone to provide me some i
Dear all:
Is it possible to conduct a discriminant analysis in R with categorical and
continuous variables as predictors?
Beatriz
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo
Hi,
on response to the thread of february, I recently uploaded the package
alphahull, that computes the alpha-shape of a given sample of points
in the plane.
Regrets,
Bea
__
Beatriz Pateiro López
Departamento de Estatística e IO
Universidad de Santiago
33 matches
Mail list logo