Please I need help processing files with strings in R. All the files have two
patterns (thus,examine separately):
Pattern 1 (see file1 below): Delete Lines 1,2 & 4 in file1. Line 3 contains the
column names. Then find anything as.character and delete. Please do not delete
any values (e.g.
Many thanks, Petr.You solved my problem.AT.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
I have a list object in R with dataframe names as:
pav_DJF_histo.csvpav_DJF_rcp26_2040s.csv
pav_DJF_rcp26_2080s.csv
pav_DJF_rcp45_2040s.csvpav_DJF_rcp45_2080s.csv
pav_DJF_rcp85_2040s.csv pav_DJF_rcp85_2080s.csv
pav_JJA_histo.csv
pav_JJA_rcp26_2040s.csv pav_JJA_rcp26_2080s.csv
.
lst4 - lapply(lst4, function(x) {as.data.frame(t(iris1.csv))})
#Get the data.frames in the list to the global environment
list2env(lst4 ,.GlobalEnv)
Regards
On 17 February 2015 at 09:23, Zilefac Elvis via R-help
r-help@r-project.org wrote:
Hi All,I have a dataframe called 'means' as shown
via R-help
Sent: 17 February 2015 03:54
To: R. Help
Subject: [R] split dataframe to several dataframes in R
Hi All,I have a dataframe called 'means' as shown below:iris1.csv - iris
iris2.csv - iris names - c(iris1.csv, iris2.csv) dat - mget(names)
lst4 - lapply(dat, function(x) apply(x[,-5
Hi All,I have a dataframe called 'means' as shown below:iris1.csv - iris
iris2.csv - iris
names - c(iris1.csv, iris2.csv)
dat - mget(names)
lst4 - lapply(dat, function(x) apply(x[,-5], 2, mean))
# Build the new data frame
means - as.data.frame(do.call(rbind, lst4))
means$source - names(lst4)
Perfect! #
italic(symbol(\341)*T[min]*symbol(\361))
Thanks, Uwe.
Asong.
On 10.12.2014 04:49, Zilefac Elvis via R-help wrote:
Hi All,
Please, I would like to enclose T[min] using angle brackets in R.
I have tried something like:
mtext(text=expression(Winter(DJF)~daily~minimum~temperature
Hi,
I would like to add a dash (—) on a letter in R.
How can I add a dash on letter P in the following:
mtext(text=expression(Winter(DJF)~mean~daily~precipitation~italic(P)), side=3,
line=1, cex=1.3, col=black)
?plotmath could not provide an answer to my problem.
many thanks for your
I got the right answer:
mtext(text=expression(Winter(DJF)~mean~daily~precipitation~bar(italic(P))),
side=3, line=1, cex=1.3, col=black)
Thanks.
On Tuesday, December 9, 2014 1:28 PM, Zilefac Elvis zilefacel...@yahoo.com
wrote:
Hi,
I would like to add a dash (—) on a letter in R.
How can I
Hi All,
Please, I would like to enclose T[min] using angle brackets in R.
I have tried something like:
mtext(text=expression(Winter(DJF)~daily~minimum~temperature~bold((italic(symbol(\341)T[min]symbol(\361),
side=3, line=1, cex=1.3, col=black)
but did not succeed. I learnt that adobe-type
list.files(pattern=*.dat)
[1] new_example_01.dat new_example_02.dat new_example_03.dat
[4] new_example_04.dat new_example_05.dat new_example_06.dat
Is this what you are looking for? I hope this helps.
Chel Hee Lee
On 12/04/2014 09:44 PM, Zilefac Elvis via R-help wrote:
Hello,
I would like
)
[1] new_example_01.dat new_example_02.dat new_example_03.dat
[4] new_example_04.dat new_example_05.dat new_example_06.dat
Is this what you are looking for? I hope this helps.
Chel Hee Lee
On 12/04/2014 09:44 PM, Zilefac Elvis via R-help wrote:
Hello,
I would like to rename multiple
Hello,
I would like to rename multiple files in a directory. Filenames are read using:
lfile - list.files(pattern=rcp45_Daily_)
files - paste(paste(getwd(),lfile,sep=/), list.files(lfile),sep=/)# getwd
of these files
dput(lfile)
c(rcp45_Daily_Sim001.dat, rcp45_Daily_Sim002.dat)
- How can
:44 PM, Zilefac Elvis via R-help wrote:
Hello,
I would like to rename multiple files in a directory. Filenames are read
using:
lfile - list.files(pattern=rcp45_Daily_)
files - paste(paste(getwd(),lfile,sep=/), list.files(lfile),sep=/)#
getwd of these files
dput(lfile)
c
Hi All,
I have a tricky problem here.
The short code below plots some percentiles from a simulation. The percentiles
are indicated in different colors.
Problem:
- How can I fill the area under the curve using the same colors as for the
percentiles-1?
- Also, I would like the rainbow intensity
15 matches
Mail list logo