Displaying 20 results from an estimated 4000 matches similar to: "write.csv covert Åland to <c5>land"
2020 Oct 20
0
write.csv covert Åland to <c5>land
Hi there,
Why the same string is displayed in different form?
> abc[,1]
[1] "?land" "Afghanistan"
> abc
name
1 <c5>land
2 Afghanistan
And more...
> dput(abc, "aa.txt")
> dget("aa.txt")
name
1 <c5>land
2 Afghanistan
> dget("aa.txt")[,1]
[1] "<c5>land"
2020 Oct 20
1
write.csv covert Åland to <c5>land
It looks like an encoding problem.
It works fine for me with R encoding set to UTF-8
Here is part of my sessionInfo() results
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
I would suggest issuing the command
sessionInfo()
and seeing what your encoding is.
On Tue, 20 Oct 2020 at 08:22,
2020 Oct 20
1
write.csv covert Åland to <c5>land
You don't say, but I'd guess you're using Windows. In your code page,
the character ? is probably not representable. At some point in the
sequence of operations involved in printing the dataframe R puts the
string into the native encoding, and since that's impossible on your
system, it substitutes the <c5> instead. The fact that you can
sometimes display it is because
2020 Oct 20
2
write.csv covert Åland to <c5>land
On 2020/10/20 17:23, Dr Eberhard W Lisse wrote:
> ?file.write()
>
> look for fileEncoding?
>
> el
>
There is no file.write(). I have tried fileEncoding = "utf8" and
"latin1" in write.csv(). However, it does not have effect. The output is
is <U+00C5>land or <c5>land.
Best,
Jinsong
> On 20/10/2020 11:13, Jinsong Zhao wrote:
>> Hi
2020 Oct 20
0
write.csv covert Åland to <c5>land
?file.write()
look for fileEncoding?
el
On 20/10/2020 11:13, Jinsong Zhao wrote:
> Hi there,
>
> I tried to export the names of country to a csv file with write.csv(). In the resulted file, ?land was coverted to <c5>land. Is there any way could prevent this happening? Thanks!
>
>> abc
> [1] "?land"
>> write.table(abc, file = "")
>
2020 Oct 20
0
write.csv covert Åland to <c5>land
Apologies,
I meant
?write.table()
el
On 20/10/2020 12:38, Jinsong Zhao wrote:
> On 2020/10/20 17:23, Dr Eberhard W Lisse wrote:
>> ?file.write()
>>
>> look for fileEncoding?
>>
>> el
>>
>
> There is no file.write(). I have tried fileEncoding = "utf8" and
> "latin1" in write.csv(). However, it does not have effect. The
2008 Oct 24
7
combining data from different datasets
Hi,
I have two tables:
> iso
continent code code3 codenum country
1 EU AD AND 20 Andorra, Principality of
2 AS AE ARE 784 United Arab Emirates
3 AS AF AFG 4 Afghanistan, Islamic Republic of
4 NA AG ATG 28 Antigua and Barbuda
5 NA AI AIA 660
2008 Sep 03
2
(no subject)
Hi,
I am getting accumulated data from PostgreSQL, ie for every day in
which a condition is true I get the number (count) of cases. Starting
date is 2008-01-01 and end day the last day for which the condition
is true (which is not necessarily today).
I obviously do not get records (dates) with count = 0, in other words
this is not a complete list of every day since 2008-01-01.
Now I want I plot
2008 Sep 09
4
Compiling date
Hi,
I have following kind of dataset (all are dates) in my Excel sheet.
09/08/08
09/05/08
09/04/08
09/02/08
09/01/08
29/08/2008
28/08/2008
27/08/2008
26/08/2008
25/08/2008
22/08/2008
21/08/2008
20/08/2008
18/08/2008
14/08/2008
13/08/2008
08/12/08
08/11/08
08/08/08
08/07/08
However I want to use R to compile those data to make all dates in same format. Can anyone please tell me any automated way
2008 Oct 05
3
"Update in Mac OS"
Dear R-ers,
I'm using R 2.7.1 Mac OS. What is the best way for update to 2.7.2 to
keep my previous libraries?
Fredrik
########################
Fredrik Lundgren
fredrik.bg.lundgren at gmail.com
Obs! Ny adress och mail
Engelbrektsgatan 31
582 21 Link?ping
013 - 47 30 117
0706 - 86 39 29
Sommarhus: Ljungn?s 158
380 30 Rockneby
0480 - 650 98
2008 Oct 11
2
Copyright Symbol
How do I put a copyright symbol (C) (or ?) into a plot?
title/sub or legend.
And/or somewhere to the bottom right of the image.
greetings, el
2008 Oct 07
4
R and computer heat
Hi,
I noticed the temperature of my laptop rises sharply during execution of a
long R script that generates several hundred plots, all of them saved to
files. No screen output. Temps reached above 90 Celsius degrees in the box
and above 80 C deg in the processor. The machine turns on cooler at maximum
speed and exhaled air is really hot. Tried similar operations (batch
graphic and music
2010 Dec 02
6
Filter data
Hello,
I understand that question is probably stupid, but ...
I have data (polity IV index)
"country","year","democ","autoc","polity","polity2"
"1","Afghanistan ",1800,1,7,-6,-6
"2","Afghanistan ",1801,1,7,-6,-6
"3","Afghanistan
2019 Feb 19
2
Cambiar el formato de datos
Después del "gather()" puedes hacer un "arrange()" que es una ordenación. Y
dentro de "arrange()" le indicas la variable por la que ordenas (no hacen
falta comillas)...
Lo ordenará alfabéticamente.
Saludos,
Carlos Ortega
www.qualityexcellence.es
El mar., 19 feb. 2019 a las 13:47, Antonio Rodriguez Andres (<
antoniorodriguezandres70 en gmail.com>) escribió:
2011 Aug 16
3
invalid multibyte string at '<a0>'
Hi
I have a problem reading files from Windows... these files have, instead
of NA on last column. special ending '<a0>' which makes problem... This
problem does not appear while reading the same file in Windows!
Try:
read.csv("http://dl.dropbox.com/u/6113358/prob.csv")
Could you please tell me if you also have this problem? I have tried
either by cleaning the file on
2011 Jun 16
1
Merging rows in a dataframe
Hi R Help list
I'm looking to visualise US foreign aid 1946-2009 and I have the dataset for this. The trouble is it's a bit too complex and I need to simply it
I want to merge all of the rows with the same country together and add up the individual totals to make one total figure per country per year
Below is an example of the kind of data. The real dataset has 2447 rows and covers 63
2020 Oct 15
1
Dplyr question
Hi All,
Trying to get familiar with dplyr so I have a basic question:
How to summarise sum(Values) per species, maintaining Code column (each species has a Code):
Species Values Code
1 Acanthocybium solandri 33 LC
2 Makaira nigricans 20 VU
3 Makaira nigricans 20 VU
4. Makaira nigricans
2009 Mar 29
2
if does not covert raw to logical (PR#13630)
Full_Name: Wacek Kusnierczyk
Version: 2.8.0 and 2.10.0 r48242
OS: Ubuntu 8.04 Linux 32 bit
Submission from: (NULL) (80.202.30.36)
The following raises an error:
if (as.raw(1)) 1
# error: unimplemented type 'raw' in 'asLogical'
However, ?'if' says:
"
Arguments:
cond: A length-one logical vector that is not 'NA'. Conditions of
length
2009 Jan 09
1
shake rattle() and roll
Graham,
nice package this :-)-O.
It was easy to set up MySQL but I struggled immensely to get the stock
ODBC working with PostgreSQL (8.3), which has been discussed on the
mailing list before (Prof Brian):
Warning messages:
1: In odbcDriverConnect(st, ...) :
[RODBC] ERROR: Could not SQLDriverConnect
2: In odbcDriverConnect(st, ...) : ODBC connection failed
aka (DBD::ODBC in Perl)
Missing
2018 Jan 19
1
Web scraping different levels of a website
Hey Ilio,
I revisited the previous code i posted to you and fixed some things.
This should let you collect as many studies as you like, controlled by
the num_studies arg.
If you try the below url in your browser you can see that it returns a
"simpler" version of the link you posted. To get to this you need to
hit F12 to open Developer Tools --> go to Network tab and click on the