Hi R users,
I am struggling to save the map with georeferenced (TIFF) that was imported
from google map. I would be very grateful with your input. How can I save this
image and reuse it when I need? I used the following code
library(ggmap)
library(mapproj)
map <- get_map(location = 'Europe',
the following code on your code
grid.arrange(PP[[1]],PP[[2]],PP[[3]])
But, as I mentioned above, I can get three separate images with its own legend
and X and Y axix
Thanks,
From: Ben Tupper
Sent: April 11, 2019 7:13 AM
To: Kristi Glover
Cc: r-help@r-project.org
He R users,
I have been struggling to plot a boundary map over the raster maps. I tried
using the following example, but the boundary map could not be displayed over
the three raster maps.
It works if we plot for a single raster. However when I want to plot the three
maps using "levelplot" and
.333 0.435
From: Jim Lemon
Sent: September 11, 2018 1:44 AM
To: Kristi Glover
Cc: r-help mailing list
Subject: Re: [R] loop for comparing two or more groups using bootstrapping
Hi Kristy,
Try this:
colname.mat<-combn(paste0("year",1:4),2)
samplenames
Hi R Users,
I was trying to create a figure with geom_ribbon. There is a function "fill",
but I want to make the shaded area with a gradient (increasing dark color
towards a central line, inserted of having a color). Is there any possibility?
In the given example, I want the colour with
w data and afetr adjusted
svymean(~api00, dstrat)
mean(apistrat$api00*apistrat$pw/100)
From: Anthony Damico <ajdam...@gmail.com>
Sent: January 1, 2017 8:00 AM
To: Kristi Glover
Cc: R-help
Subject: Re: [R] how to extract weighted data in "survey&
:07 AM
To: Kristi Glover
Cc: r-help@r-project.org
Subject: Re: [R] Rearranging sub-folders, how?
Hi Kristi,
I assume that B, C and D are not empty, otherwise the answer is trivial.
create a directory under B named D
move the contents of the old D to the new D
delete the directory E beneath the new D
Hi R user,
I wanted to change a column name with new one but it comes with "." where
there was space. Is there any way to keep my formate with space?
Here what I found
Images<-stack(imageA,imageB,imageC)
names(Images)[3]<-c("dif of AB")
head(Images)
It gives the column name of 3 as a
Dear R User,
I have a data with a mean and Standard Error (SE) but no sample size, I am
wondering whether I can compute the standard deviation (SD) with these
information. if possible, how much would be for the given example?
> mean<-0.098
> SE<-0.0006
Thanks,
[[alternative HTML
From: Boris Steipe <boris.ste...@utoronto.ca>
Sent: March 20, 2016 9:21 AM
To: Kristi Glover
Cc: R-help
Subject: Re: [R] Problem in selecting rows in R
Don't post in HTML, but thanks for providing dput() outout.
This code tries to follow your specifications, assuming by "time
Hi R Users,
Some individuals recorded multiple within a time period. But, I want to select
the row of last site within each time period for each individual. I spent a
substantial time, but no luck in selecting the rows. Would you give me a hint
for this one? I have a very large data set, but
te"), row.names = c(NA, -3L), class = "data.frame")
A$date<-factor(A$DATE, levels=c("t1","t2","t3"))
tmp <- split(A, A$Tag)
head(tmp)
tail(tmp)
tmp1 <- do.call(rbind, lapply(tmp, function(x){
tb <- table(A$date)
idx <- which(tb>0)
t
HI R user,
I was trying to reduce my independent variables before I run models. I have a
dependent variable as a present or TRUE only (no Absence or False) whereas I
have more than 20 independent variables but they are highly correlated. I was
trying to reduce the independent variables . I
a pair of sites.
If you look at the full example, dist() is used to calculate the
Euclidean distance as part of the MRM code.
Sarah
On Wed, Apr 8, 2015 at 1:49 PM, Kristi Glover kristi.glo...@hotmail.com
wrote:
Hi R Users,
I was trying to perfom multiple regression on resemblance
Hi R Users,
I was trying to perfom multiple regression on resemblance matrices (MRMs).
This technique in avaiable in ecodist package and looked at the example
data to know how I need to organize my data set. I think the data is distance
matrix but I was wondering the rows name. For example,
How to split a data table into multiple tables based on column (unique value)
and save them separately ?
For example:
dat-structure(list(name = structure(c(1L, 1L, 1L, 2L, 2L, 3L, 3L,
4L), .Label = c(A, B, C, D), class = factor), date = structure(c(6L,
7L, 8L, 1L, 2L, 3L, 4L, 5L), .Label =
Hi R user,
I am wondering whether I can perform a simple ANOVA analysis in the data in
which I have mean + SE (+- Standard Error) for several groups.
For this one, I calculated upper and lower confidence interval and made three
classes for each group (mean, upper and lower values). After
Hi R User, Would you suggest me on how I can build a pivot table using two
variables? I want to put text in the table instead of value. I have attached
an example data and the type of table (FinalTable) I was looking for. I am
looking for your suggestions. ThanksKG=dat-structure(list(tag =
Hi,
I am wondering how I can separate whether it is covariate or predictor in the
ANOVA analysis. For example
A-structure(list(Machine = c(1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L,
2L, 3L, 3L, 3L, 3L, 3L), Diameter = c(20L, 25L, 24L, 25L, 32L,
22L, 28L, 22L, 30L, 28L, 21L, 23L, 26L, 21L, 15L),
Hi R Users,
I was trying to determine whether I have enough samples and power in my
analysis. Would you mind to provide some hints?. I found a several packages
for power analysis but did not find any example data. I have two sites and each
site has 4 groups. I wanted to test whether there was
to be out of your depth.
Cheers,
Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom.
Clifford Stoll
On Sat, Nov 8, 2014 at 3:49 AM, Kristi Glover kristi.glo
is and is not.
http://www.stat.uiowa.edu/files/stat/techrep/tr378.pdf
Dennis
On Sat, Nov 8, 2014 at 11:25 AM, Kristi Glover
kristi.glo...@hotmail.com wrote:
Hi Bert, Thanks for the message. So far I know we can test whether my
sample size in my analysis is enough or not. It is also post hoc property
Dear R users,I wondering how I can import and extract the data of .txt format
to the format that is compatible with RMark package for further analysis. I
tried following example but did not work. Would you give any suggestions?
install.packages(RMark)library(RMark)
#Import table (inp format)
Dear R users,I wondering how I can import and extract the data of .txt format
to the format that is compatible with RMark package for further analysis. I
tried following example but did not work. Would you give any suggestions?
install.packages(RMark)library(RMark)
#Import table (inp format)
Dear R users,I wondering how I can import and extract the data of
.txt format to the format that is compatible with RMark package . I tried
following script to import and export. Importing was OK but did not work for
exporting. Would you give any suggestions?
Dear R User,
I was wondering how I can unstack my data. For example I have following data set
data-structure(list(siteS = structure(c(3L, 3L, 3L, 4L, 4L, 5L, 5L,
5L, 5L, 5L, 1L, 1L, 1L, 2L), .Label = c(11a, 12d, 1a, 2v,
6a), class = factor), species = structure(c(1L, 2L, 3L, 1L,
4L, 1L, 4L,
Hi R User,
I am wonedring how I can extract a part of objects from list.
For example
str(out1970)
List of 8
$ comm : num [1:16, 1:57] 1 1 1 1 1 1 1 1 1 1 ...
..- attr(*, dimnames)=List of 2
.. ..$ : chr [1:16] H_s5 H_s1 R_s2 H_s2 ...
.. ..$ : chr [1:57] Pimephales.promelas
Hi R User,
I was calculating a temperature (nestedness value) using nestedtemp and was
able to plot the temperature for each species and sites, but I could not
extract the information into table what is displayed in figure.
It must be simple but I could not extract. any suggestions?
Hi R users,
I was trying to plot with a fixed y with many independet variables. I tried
this loop but it did not work. any suggestions? I wanted to make 9 plots. This
is a just an example data.
dat1- as.data.frame(matrix(sample(1:20,100,replace=TRUE),ncol=10))
Hi R Users,
I was trying to select a sample with columns (measured data) by stratum. I was
able to select rows by stratum. But, I wanted to repeat this procedures 1000
and want to take an average from the 1000 times. I think it is different than
bootstraping since I wanted to select
Hi R User,
Would you give me some hints on how I can calculate bootstrapping mean+-SE for
each column based by group. I searched it but I could not get what I wanted.
For example I have these data set
data - as.data.table(list(x1 = runif(200), x2 = runif(200), group =
runif(200)0.5))
I wanted
Hi R User,
I was trying to convert a decimal value into integral (whole number). I used
round function but some of the cells have the value less than 0.5 and it
converted into 0. But I wanted these cell to have 1 instead of 0. Another way,
I could multiply by 10. But l did not want it because
Hi R users,
I have been struggling to select the equal number of samples from each strata.
I have the data collected in different years in different regions with
different sample size. Basically, I have two two conditions (year and region).
I wanted to make smaple sample size for both year and
Hi R Users,
I was struggling to overlay two graphs created from the two different dataset
using ggplot2. Furthermore, I could not join means of the box plots.
I tried this way but did not work. Any suggestions?
dat1-structure(list(site = c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L,
2L, 2L, 3L, 3L,
Hi R Users,
I was struggling to overlay two graphs created from the two different datasets
using ggplot2.I could not overlay two figures. I wanted to plot second graph
using second Y axis. but there was no provision.
Furthermore, I could not join means of the box plots.
I tried this way but
Hi R user,
I am just wondering how I can add Standard error bar in the interaction plot. I
used the following code but I don't know how i can edit this to put a started
error's bar on the mean.
Would you give me some hints? or do other packages provide the information
about plotting the SE
Hi R user,
I have been struggling to add number in front of text. It mus t be easy. but I
could not figure it out.
example
I have this data:
name value
central -10.91699497
western -10.16521404
upper -6.915860837
lower -6.546794281
southern -6.382722608
I want to following.
I was just wondering how to stack values of columns to rows. Would you give me
some idea how I can stack? I just want to stack columns 2 and 3 but not
column1. The column 1 is supposed to be repeated. I was able to stack using
stack but I could not repeat the column 1.
For example I have
Hi R user,
I was trying to put four figures in a row, in which value of Y axis are similar
but different in X axis. Therefore I wanted to put four figures in row.
To remove y axis for second, thrid and forth figures, I used [yaxt=n]. But, I
saw that tick mark of Y was found to be missing. I
Dear R User,
Would you give me some hints on why I could not predict using data. format'
data.
Here is the example:
ex-structure(list(env1 = c(182, 163.33, 443.02, 1240.16), env2 = c(1134,
550, 2111, 2523), env3 = c(24.53, 24.93, 24.71, 21.05), env4 = c(0.05,
0, 0, 0)), .Names = c(env1, env2,
, 2111, 2523), env3 = c(24.53, 24.93, 24.71, 21.05), env4 = c(0.05,
0, 0, 0)), .Names = c(env1, env2, env3, env4), row.names = c(NA,
-4L), class = data.frame)
mod-bioclim(ex)
pred-predict(mod, ex)
On Wed, Sep 4, 2013 at 10:02 AM, Kristi Glover
kristi.glo...@hotmail.com wrote:
Hi Rui
)
Hope this helps,
Rui Barradas
Em 04-09-2013 13:48, Kristi Glover escreveu:
Dear R User,
Would you give me some hints on why I could not predict using data. format'
data.
Here is the example:
ex-structure(list(env1 = c(182, 163.33, 443.02, 1240.16), env2 = c(1134,
550, 2111
Hi R Experts,
I was trying to develop model (bioclim, Domin) using a table data in 'dismo'
package. The data I have is at table format instead of images (stack of raster
images). I followed the procedures of dismo package to calculate the bioclim
but I could not figure it out how I can
Hi R user,
I am wondering how we can open the data file which have .WTG extension?
Thanks for your help
cheers,
KG
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
-project.org
I am wondering what .WTG files have to do with R.
Care to elaborate? (Suggestion: Read and follow the posting guide)
Cheers,
Bert
On Wed, Jul 17, 2013 at 11:48 AM, Kristi Glover
kristi.glo...@hotmail.com wrote:
Hi R user,
I am wondering how we can open the data file which
Hi R User,
I was trying to find a final model in the following example by using the
Boosted regression trees (GBM). The program gives the fitted values but I
wanted to calculate the fitted value by hand to understand in depth. Would you
give moe some hints on what is the final model for this
Hi R -Users
I am sorry for bothering you. I was wondering what script can work to calculate
an immigration and extinction from two tables (time 1 and time 2). I could
easily calculate them in the Excel for small data set, but I have very big
data set. so that I was wondering to use R for this
Hi R-User,
I am wondering how I can rearrange columns in a table in R. I do have very big
data set (4500 columns). I have given an example of the data set.
dput(dat)
structure(list(preV1001A1b = c(0.59, 0.3, 0.78, 0.43), preV15A1b = c(0.57,
0.62, 0.51, 0.95), preV2032A1b = c(0.4, 0.8, 0.24,
Hi R user,
I was trying to develop a model (logistic regression) for 4001 dependent
variables using 15 environmental variables (45000 rows); and then trying to use
the models to predict in future. I used following code but it took so much time
and consumed 100% of the PC memory. Even though-
one prediction at a time, write the
results to file, then the next.
Hope this helps,
Rui Barradas
Em 22-05-2013 15:20, Kristi Glover escreveu:
Hi R user,
I was trying to develop a model (logistic regression) for 4001 dependent
variables using 15 environmental variables (45000 rows
Hi R User,
I am wondering how I can extract the value and want to see the value in table.
Is there way?
suppose I do have image (raster package)
r
class : RasterLayer
dimensions : 192, 186, 35712 (nrow, ncol, ncell)
resolution : 0.5, 0.5 (x, y)
extent : -125, -32, -56, 40
Hi R-user,
I was trying to compute probability of species distribution using MaxEnt. the
MaxEnt uses only teh sites in which species present,
I tried to run but did not work, would you give me some hints?
I have given an example table and how I tried it.
# comprising the second argument of lapply()
L - lapply(vars, function(x) predFun(DF, x))
do.call(cbind, L) # cbind the results
Obviously untested, but it gives you an idea of how the game works.
Dennis
On Thu, May 16, 2013 at 2:48 PM, Kristi Glover
kristi.glo...@hotmail.com wrote:
Hi R-user
Hi R- User,
I am just wondering how I can make a loop to repeat multiple regression.
I do have more than 3000 dependent variables (example S1, S2..Sn) and put
in different columns but the explanatory variables are the same for all these
dependent variables. I have given an example below. In
Hi R-user,
I was trying to make a raster map with WGS84 projection in R, but I could not
make it. I found one data set in Google that data is almost the same format as
of mine. I wanted to make a raster map of temperature with 1 degree spatial
resolution for the global scale.
I could make it
Hi R-User
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Hi R-User
I was trying to make a raster map with WGS84 projection
in R, but I could not make it. I found one data set in Google that data
is almost the same format as of mine. I wanted to make a raster map of
temperature with 1 degree spatial resolution for the global scale.
I
could make
Hi R user,
Could you please give me some hints on how I can convert text in table format
in R?
I was doing model assessment using dismo package
for example:
bg - randomPoints(current, 500)
pvtest - data.frame(extract(current, occtest))
avtest - data.frame(extract(current, bg))
e2 =
Hi R User,
I calculated a correlation matrix and I was trying to give a same name for rows
and columns (heading) in the correlation matrix. But, I was not able to do so.
Would you mind let me know how I can assign the same name for the heading of
row and columns in the matrix?
I appreciate
Hi R- User
I have very big data set (5000 rows). I wanted to make classes based on a
column of that table (that column has the data which is continuous .) After
converting into different class, this class would be Unique ID. I want to run
regression for each ID.
For example I have a data set
Hi R User,
Would you give me your hand to standardize some columns in a matrix?
I have included the example table.
dput(test)
structure(list(X = c(1, 2, 3, 4, 5, 6), Y = c(4, 5, 6, 7, 8,
9), temp = c(0.818, 0.113, 0.256, 0.587, 0.955, 0.207), oxy = c(0.797,
0.487, 0.727, 0.128, 0.514,
it is not difficult but for me- it
is really taking time.
Thanks and waiting for your suggestions
sincerely,
Kristi Glover
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https
Hi R- USER,
I have been struggling to compute path analysis in R. I installed package sem
and I tried to run the analysis but could not get a diagram.
I have very big data set, here I just copied a sample of my data and I wanted
to see how I can do the path analysis and get the patch diagram
Hi R- User,I tried to load package adehabitat for R version 2.15.0. But, I got
error. even I download and save in local drive and tried to install from the
local file. but still i got the following errors
install.packages(adehabitat, repos='C:/adehabitat_1.8.10.tgz')
package adehabitat is
Hi R user,I am struggling to figure out on how I can calculate the average from
the two tables in R. Any one can help me? really your help would be grateful-
I am spending so much time to figure it out. It should not be so hard, I think.
I have very big data but I have created a hypothetical
Hi John , Petr and R users
I am sorry that my data was not readable formate in the last email. Again I am
trying to send it. hope this time, that table can be readable.As I mentioned
earlier that I was struggling to figure out on how I can calculate the average
from the two tables in R. Any
Hi R-usuar,
I still find the table is not in readable formate. I now forwarded the
email.hope it works. I sent it to my account . It was perfect- but when I sent
it to R help- then it comes with unreadable formate. This is my last try. If
not, then I will try to do in Excel manually. cheers,
oppps, Now I used 'dput' function. Again I am sending. I am so sorry for
inconvenience.
HI R userI am sorry that my data was not readable formate in the last email.
Agin I am trying to send it. hope this time, that table can be readable.As I
mentioned earlier that I was struggling to figure
Hi R user,
I finally able to send you the table in
readable format. I have seen that some of you do send tables in email
when asking questions, but why i could not send. Any way
some of you helped me to send you the example table in a readable format.
now,
I want to concentrate on my
Hi R user,
I finally able to send you the table in
readable format. I have seen that some of you do send tables in email
when asking questions, but why i could not send. Any way
some of you helped me to send you the example table in a readable format.
now,
I want to concentrate on my
Hi R user,
I saw some errors in the dat1.
The correct dat1 is
dat1 - structure(list(X = structure(1:4, .Label = c(Plot1,
Plot2, plot3, plot4), class = factor), speciesX = c(1L, 0L, 0L, 1L),
speciesY =
c(0L, 1L, 0L, 0L), speciesZ = c(1L, 1L, 0L, 1L), speciesXX = c(1L, 0L, 1L,
0L)), .Names =
Hi R user,
I could not combine two tables. Would any one help me on how I can combine with
following example tables?
T1
X Y Z XX
A 1 5 9 13
B 2 6 10 14
C 3 7 11 15
D 4 8 12 16
T2
X Y XX
a 1 4 7
b 2 5 8
c 3 6 9
I want to get the following table
cT
X Y XX
A 1 5 13
B 2 6 14
C
columns
Date: Wed, 9 May 2012 21:47:48 -0400
On May 9, 2012, at 9:21 PM, Kristi Glover wrote:
Hi R user,
I could not combine two tables. Would any one help me on how I can
combine with following example tables?
You do realize that tables in R are not dataframes. They are a type
Hello R User,
I was trying to display r.squared and p value in table from regression, but I
could not display these parameters in the table (matrix)
for example
individual - c(1,1,6,8,8,9,9,9,12,12)
day - c(4,17,12,12,17,3,9,22,13,20)
condition - c(0.72, 0.72, 0.67, 0.73, 0.76, 0.65, 0.68,
me: tal.gal...@gmail.com | 972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
--
On Sun, Apr 29, 2012 at 9:04 AM, Kristi Glover
Hi everyone, I am writing this to get your help. I have a big data set and I
wanted to do multiple regression and repeat this process several timesfor
example (data)where y: dependent variables ; number of columns are 5, nrow =
1800y temp, preci, growing season days, max temp, min temp
76 matches
Mail list logo